05-05-2014 11:43 AM
public Object execute(CommandContext commandContext) {
if(this.jobId==null){
LOGGER.error("no job id given");
throw new IllegalArgumentException();
}
JobEntity job = Context
.getCommandContext()
.getJobEntityManager()
.findJobById(jobId);
job.setLockOwner(null);
Date date = Calendar.getInstance().getTime();
date.setTime(date.getTime()+TEN_MN_IN_MS);
job.setLockExpirationTime(date);
job.setDuedate(date);
if(LOGGER.isDebugEnabled()){
LOGGER.debug("Job "+jobId+" has been delayed to "+date.getTime());
}
if(exception != null) {
job.setExceptionMessage(exception.getMessage());
job.setExceptionStacktrace(getExceptionStacktrace());
}
return null;
}
05-27-2014 04:44 AM
05-27-2014 04:52 AM
05-27-2014 05:01 AM
05-30-2014 04:33 AM
06-02-2014 10:47 AM
06-04-2014 04:41 PM
06-11-2014 06:07 AM
06-17-2014 06:19 AM
06-17-2014 11:44 AM
06-27-2014 08:31 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.