Ejemplo n.º 1
0
 /** 关闭调度器. */
 public void shutdown() {
   try {
     monitorService.close();
     statisticsService.stopProcessCountJob();
     scheduler.shutdown();
   } catch (final SchedulerException ex) {
     throw new JobException(ex);
   }
 }
Ejemplo n.º 2
0
 private void registerElasticEnv() {
   listenerManager.startAllListeners();
   leaderElectionService.leaderElection();
   configService.persistJobConfiguration();
   serverService.persistServerOnline();
   serverService.clearJobStopedStatus();
   statisticsService.startProcessCountJob();
   shardingService.setReshardingFlag();
   monitorService.listen();
 }