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