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());