@ Nonnull public static IScheduler getScheduler ( final boolean bStartAutomatically ) { try { // Don't try to use a name - results in NPE final IScheduler aScheduler = s_aSchedulerFactory . getScheduler ( ) ; if ( bStartAutomatically && ! aScheduler . isStarted ( ) ) aScheduler . start ( ) ; return aScheduler ; } catch ( final SchedulerException ex ) { throw new IllegalStateException ( "Failed to create" + ( bStartAutomatically ? " and start" : "" ) + " scheduler!" , ex ) ; } }
Get the underlying Quartz scheduler