コード例 #1
0
 @Override
 public void jobWasExecuted(JobExecutionContext arg0, JobExecutionException arg1) {
   if (arg0 instanceof Service) {
     Service service = (Service) arg0.getJobDetail().getJobDataMap().get("service");
     LOOGER.info(
         "{}:{} execution completed", service.getHost().getHostname(), service.getServiceName());
   }
 }
コード例 #2
0
 @Override
 public void jobToBeExecuted(JobExecutionContext arg0) {
   if (arg0 instanceof Service) {
     Service service = (Service) arg0.getJobDetail().getJobDataMap().get("service");
     LOOGER.info(
         "{}:{} to be executed", service.getHost().getHostname(), service.getServiceName());
   }
 }