Exemplo n.º 1
0
 public void afterCompletion(int status) {
   if (exception == null) {
     return;
   }
   // after the transaction rolled back,
   // execute this job exception handler object as a command with
   // the command service so that this gets done in a separate
   // transaction
   log.debug("starting new transaction for handling job exception");
   commandService.execute(this);
   log.debug("completed transaction for handling job exception");
 }
 protected Date getNextDueDate() {
   CommandService commandService = jobExecutor.getCommandExecutor();
   Command<Date> getNextDueDate = jobExecutor.getNextDueDateCommand();
   return commandService.execute(getNextDueDate);
 }
Exemplo n.º 3
0
 public String deploy() {
   return commandService.execute(new DeployCmd(this));
 }
 protected Collection<Long> acquireJobs() {
   CommandService commandService = jobExecutor.getCommandExecutor();
   Command<Collection<Long>> acquireJobsCommand = jobExecutor.getAcquireJobsCommand();
   return commandService.execute(acquireJobsCommand);
 }