@Test public void testStop_noManager() throws Exception { this.scheduler.manager = null; this.scheduler.stop(); Assert.assertNull( this.scheduler.dmListener ); Assert.assertNull( this.scheduler.scheduler ); }
public void stop() throws Exception { this.logger.info( "Roboconf's scheduler is stopping..." ); if( this.manager != null ) { this.manager.listenerDisappears( this.dmListener ); this.dmListener = null; } if( this.scheduler != null ) { this.scheduler.shutdown(); this.scheduler = null; } }
RoboconfScheduler implements IScheduler { public void stop() throws Exception { this.logger.info( "Roboconf's scheduler is stopping..." ); if( this.manager != null ) { this.manager.listenerDisappears( this.dmListener ); this.dmListener = null; } if( this.scheduler != null ) { this.scheduler.shutdown(); this.scheduler = null; } } }
RoboconfScheduler implements IScheduler { public void stop() throws Exception { this.logger.info( "Roboconf's scheduler is stopping..." ); if( this.manager != null ) { this.manager.listenerDisappears( this.dmListener ); this.dmListener = null; } if( this.scheduler != null ) { this.scheduler.shutdown(); this.scheduler = null; } }  }
RoboconfScheduler implements IScheduler { public void stop() throws Exception { this.logger.info( "Roboconf's scheduler is stopping..." ); if( this.manager != null ) { this.manager.listenerDisappears( this.dmListener ); this.dmListener = null; } if( this.scheduler != null ) { this.scheduler.shutdown(); this.scheduler = null; } }  void start(); void stop(); void setManager( Manager manager ); @Override void loadJobs(); @Override List<ScheduledJob> listJobs(); @Override String saveJob( String jobId, String jobName, String cmdName, String cron, String appName ); @Override void deleteJob( String jobId ); @Override ScheduledJob findJobProperties( String jobId ); }
RoboconfScheduler implements IScheduler { public void stop() throws Exception { this.logger.info( "Roboconf's scheduler is stopping..." ); if( this.manager != null ) { this.manager.listenerDisappears( this.dmListener ); this.dmListener = null; } if( this.scheduler != null ) { this.scheduler.shutdown(); this.scheduler = null; } }  void start(); void stop(); void setManager( Manager manager ); @Override void loadJobs(); @Override List<ScheduledJob> listJobs(); @Override String saveJob( String jobId, String jobName, String cmdName, String cron, String appName ); @Override void deleteJob( String jobId ); @Override ScheduledJob findJobProperties( String jobId );  }