agave-notifications/notifications-core/src/main/java/org/iplantc/service/notification/queue/runnable/NotificationWorkQueue.java
/**
	 * Create and initialize a Quartz scheduler to handle the work processing
	 * using the properties defined in the named {@code propertiesFile}.
	 * 
	 * @param propertiesFile
	 * @throws NotificationException
	 */
Create and initialize a Quartz scheduler to handle the work processing
using the properties defined in the named  propertiesFile.

@param propertiesFile
@throws NotificationException
Create and initialize a Quartz scheduler to handle the work processing using the properties defined in the named propertiesFile . @param propertiesFile @throws NotificationException
private void initScheduler(String propertiesFile) 
	throws NotificationException 
	{
		StdSchedulerFactory schedulerFactory = new StdSchedulerFactory();
		Scheduler scheduler = null;
	    try {
	    	Properties props = loadPropertiesFromDisk(propertiesFile);
	    	props.setProperty("org.quartz.threadPool.threadCount", String.valueOf(Settings.MAX_NOTIFICATION_TASKS + 1));
	    	setProperties(props);
	        schedulerFactory.initialize(props);
	        scheduler = schedulerFactory.getScheduler(props.getProperty("org.quartz.scheduler.instanceName"));
		    setScheduler(scheduler);
	    }
	    catch (IOException e) {
	    	throw new NotificationException("Failed to load properties from " + propertiesFile, e);
	    }
	    catch (SchedulerException e) {
	        throw new NotificationException("Failed to initialize NewNotificationWorkQueue scheduler", e);
	    }
	}
private void initScheduler ( String propertiesFile ) throws NotificationException { StdSchedulerFactory schedulerFactory = new StdSchedulerFactory ( ) ; Scheduler scheduler = null ; try { Properties props = loadPropertiesFromDisk ( propertiesFile ) ; props . setProperty ( "org.quartz.threadPool.threadCount" , String . valueOf ( Settings . MAX_NOTIFICATION_TASKS + 1 ) ) ; setProperties ( props ) ; schedulerFactory . initialize ( props ) ; scheduler = schedulerFactory . getScheduler ( props . getProperty ( "org.quartz.scheduler.instanceName" ) ) ; setScheduler ( scheduler ) ; } catch ( IOException e ) { throw new NotificationException ( "Failed to load properties from " + propertiesFile , e ) ; } catch ( SchedulerException e ) { throw new NotificationException ( "Failed to initialize NewNotificationWorkQueue scheduler" , e ) ; } }
Create and initialize a Quartz scheduler to handle the work processing
 using the properties defined in the named {@code propertiesFile}.
Create and initialize a Quartz scheduler to handle the work processing using the properties defined in the named { @code propertiesFile } .