agave-notifications/notifications-core/src/main/java/org/iplantc/service/notification/queue/runnable/NotificationWorkQueue.java
/**
	 * Stops the work queue and, if necessary, the Quartz scheduler. Note that this will 
	 * only stop the scheduler named in the properties file used to initialized this 
	 * work queue. Other schedulers will remain untouched.
	 * @throws NotificationException
	 */
Stops the work queue and, if necessary, the Quartz scheduler. Note that this will
only stop the scheduler named in the properties file used to initialized this
work queue. Other schedulers will remain untouched.
Stops the work queue and if necessary the Quartz scheduler . Note that this will only stop the scheduler named in the properties file used to initialized this work queue . Other schedulers will remain untouched .
public void stop() throws NotificationException {
		try {
			if (getScheduler() != null) {
				getScheduler().shutdown(false);
			}
			else {
				throw new NotificationException("Failed to start existing work queue. "
						+ "No scheduler has been initialized");
			}
		}
		catch (SchedulerException e) {
			throw new NotificationException("Failed to stop existing work queue.", e);
		}
		finally {
			JndiSetup.close();
		}
	}
public void stop ( ) throws NotificationException { try { if ( getScheduler ( ) != null ) { getScheduler ( ) . shutdown ( false ) ; } else { throw new NotificationException ( "Failed to start existing work queue. " + "No scheduler has been initialized" ) ; } } catch ( SchedulerException e ) { throw new NotificationException ( "Failed to stop existing work queue." , e ) ; } finally { JndiSetup . close ( ) ; } }
Stops the work queue and, if necessary, the Quartz scheduler.
Stops the work queue and if necessary the Quartz scheduler .