JobDetail jobDetail, int triggerInstCode) {
log.debug("Completing Job: " + trigger.getFullName());
String jobKey = JobWrapper.getJobNameKey(jobDetail.getName(),
jobDetail.getGroup());
GetAttributesResult jobresult = amazonSimpleDb
.getAttributes(new GetAttributesRequest(jobDomain, jobKey)
.withConsistentRead(new Boolean(true)));
JobDetail job = null;
try {
job = jobDetailFromAttributes(jobresult.getAttributes());
if (job.isStateful()) {
// TODO: Implement support for stateful jobs
}
} catch (Exception e) {
log.error(
"Could not complete job for Trigger: "
+ trigger.getFullName(), e);
}
String triggerKey = TriggerWrapper.getTriggerNameKey(trigger);
GetAttributesResult result = amazonSimpleDb
.getAttributes(new GetAttributesRequest(triggerDomain,
triggerKey).withConsistentRead(new Boolean(true)));
TriggerWrapper tw = null;
try {
tw = triggerFromAttributes(result.getAttributes());
} catch (Exception e) {
log.error("Could not find Trigger: " + trigger.getFullName(), e);
}
// It's possible that the job is null if: