agave-monitors/monitors-core/src/main/java/org/iplantc/service/monitor/queue/MonitorQueueSchedulingPlugin.java
/**
     * <p>
     * Called during creation of the <code>Scheduler</code> in order to give
     * the <code>SchedulerPlugin</code> a chance to initialize.
     * </p>
     * 
     * @throws org.quartz.SchedulerConfigException
     *           if there is an error initializing.
     */

Called during creation of the Scheduler in order to give
the SchedulerPlugin a chance to initialize.

@throws org.quartz.SchedulerConfigException
if there is an error initializing.
Called during creation of the Scheduler in order to give the SchedulerPlugin a chance to initialize . @throws org . quartz . SchedulerConfigException if there is an error initializing .
@Override
	public void initialize(String name, Scheduler scheduler)
	throws SchedulerException
	{
		this.scheduler = scheduler;
		 if (scheduler != null && org.iplantc.service.common.Settings.isDrainingQueuesEnabled()) {
		     scheduler.shutdown(false);
		 }
	}
@ Override public void initialize ( String name , Scheduler scheduler ) throws SchedulerException { this . scheduler = scheduler ; if ( scheduler != null && org . iplantc . service . common . Settings . isDrainingQueuesEnabled ( ) ) { scheduler . shutdown ( false ) ; } }
<p>
 Called during creation of the <code>Scheduler</code> in order to give
 the <code>SchedulerPlugin</code> a chance to initialize.
<p > Called during creation of the <code > Scheduler< / code > in order to give the <code > SchedulerPlugin< / code > a chance to initialize .
// turn off the scheduler so we can release the threads if the queues are disabled // in this service or worker.