com.atlassian.confluence.schedule.listeners
Class ScheduledJobsListener

java.lang.Object
  extended by com.atlassian.confluence.schedule.listeners.ScheduledJobsListener
All Implemented Interfaces:
org.quartz.JobListener

public class ScheduledJobsListener
extends Object
implements org.quartz.JobListener

Listens for changes (from Quartz) in the activity of job being managed and records they're status / history.


Constructor Summary
ScheduledJobsListener(ScheduledJobDao scheduledJobDAO, ManagedScheduledJobRegistry jobRegistry, ScheduleJobStatusManager statusManager)
           
 
Method Summary
 String getName()
           
 void jobExecutionVetoed(org.quartz.JobExecutionContext context)
           
 void jobToBeExecuted(org.quartz.JobExecutionContext context)
           
 void jobWasExecuted(org.quartz.JobExecutionContext context, org.quartz.JobExecutionException jobException)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScheduledJobsListener

public ScheduledJobsListener(ScheduledJobDao scheduledJobDAO,
                             ManagedScheduledJobRegistry jobRegistry,
                             ScheduleJobStatusManager statusManager)
Method Detail

getName

public String getName()
Specified by:
getName in interface org.quartz.JobListener

jobToBeExecuted

public void jobToBeExecuted(org.quartz.JobExecutionContext context)
Specified by:
jobToBeExecuted in interface org.quartz.JobListener

jobExecutionVetoed

public void jobExecutionVetoed(org.quartz.JobExecutionContext context)
Specified by:
jobExecutionVetoed in interface org.quartz.JobListener

jobWasExecuted

public void jobWasExecuted(org.quartz.JobExecutionContext context,
                           org.quartz.JobExecutionException jobException)
Specified by:
jobWasExecuted in interface org.quartz.JobListener


Copyright © 2003-2012 Atlassian. All Rights Reserved.