Package org.quartz.core
Class SampledStatisticsImpl
- java.lang.Object
-
- org.quartz.listeners.SchedulerListenerSupport
-
- org.quartz.core.SampledStatisticsImpl
-
- All Implemented Interfaces:
SampledStatistics,JobListener,SchedulerListener
public class SampledStatisticsImpl extends SchedulerListenerSupport implements SampledStatistics, JobListener, SchedulerListener
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearStatistics()Clears the collected statistics.longgetJobsCompletedMostRecentSample()longgetJobsExecutingMostRecentSample()longgetJobsScheduledMostRecentSample()java.lang.StringgetName()Get the name of theJobListener.voidjobAdded(JobDetail jobDetail)voidjobDeleted(java.lang.String jobName, java.lang.String groupName)voidjobExecutionVetoed(JobExecutionContext context)Called by thewhen aSchedulerwas about to be executed (an associatedJobDetailhas occurred), but aTriggervetoed it's execution.TriggerListenervoidjobScheduled(Trigger trigger)voidjobToBeExecuted(JobExecutionContext context)voidjobWasExecuted(JobExecutionContext context, JobExecutionException jobException)voidshutdown()-
Methods inherited from class org.quartz.listeners.SchedulerListenerSupport
getLog, jobDeleted, jobPaused, jobResumed, jobsPaused, jobsResumed, jobUnscheduled, schedulerError, schedulerInStandbyMode, schedulerShutdown, schedulerShuttingdown, schedulerStarted, schedulerStarting, schedulingDataCleared, triggerFinalized, triggerPaused, triggerResumed, triggersPaused, triggersResumed
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.quartz.SchedulerListener
jobDeleted, jobPaused, jobResumed, jobsPaused, jobsResumed, jobUnscheduled, schedulerError, schedulerInStandbyMode, schedulerShutdown, schedulerShuttingdown, schedulerStarted, schedulerStarting, schedulingDataCleared, triggerFinalized, triggerPaused, triggerResumed, triggersPaused, triggersResumed
-
-
-
-
Method Detail
-
shutdown
public void shutdown()
- Specified by:
shutdownin interfaceSampledStatistics
-
clearStatistics
public void clearStatistics()
Clears the collected statistics. Resets all counters to zero
-
getJobsCompletedMostRecentSample
public long getJobsCompletedMostRecentSample()
- Specified by:
getJobsCompletedMostRecentSamplein interfaceSampledStatistics
-
getJobsExecutingMostRecentSample
public long getJobsExecutingMostRecentSample()
- Specified by:
getJobsExecutingMostRecentSamplein interfaceSampledStatistics
-
getJobsScheduledMostRecentSample
public long getJobsScheduledMostRecentSample()
- Specified by:
getJobsScheduledMostRecentSamplein interfaceSampledStatistics
-
getName
public java.lang.String getName()
Description copied from interface:JobListenerGet the name of the
JobListener.- Specified by:
getNamein interfaceJobListener
-
jobScheduled
public void jobScheduled(Trigger trigger)
Description copied from interface:SchedulerListener- Specified by:
jobScheduledin interfaceSchedulerListener- Overrides:
jobScheduledin classSchedulerListenerSupport
-
jobExecutionVetoed
public void jobExecutionVetoed(JobExecutionContext context)
Description copied from interface:JobListenerCalled by the
when aSchedulerwas about to be executed (an associatedJobDetailhas occurred), but aTriggervetoed it's execution.TriggerListener- Specified by:
jobExecutionVetoedin interfaceJobListener- See Also:
JobListener.jobToBeExecuted(JobExecutionContext)
-
jobToBeExecuted
public void jobToBeExecuted(JobExecutionContext context)
Description copied from interface:JobListenerCalled by the
when aScheduleris about to be executed (an associatedJobDetailhas occurred).TriggerThis method will not be invoked if the execution of the Job was vetoed by a
.TriggerListener- Specified by:
jobToBeExecutedin interfaceJobListener- See Also:
JobListener.jobExecutionVetoed(JobExecutionContext)
-
jobWasExecuted
public void jobWasExecuted(JobExecutionContext context, JobExecutionException jobException)
Description copied from interface:JobListenerCalled by the
after aSchedulerhas been executed, and be for the associatedJobDetailTrigger'striggered(xx)method has been called.- Specified by:
jobWasExecutedin interfaceJobListener
-
jobAdded
public void jobAdded(JobDetail jobDetail)
Description copied from interface:SchedulerListener- Specified by:
jobAddedin interfaceSchedulerListener- Overrides:
jobAddedin classSchedulerListenerSupport
-
jobDeleted
public void jobDeleted(java.lang.String jobName, java.lang.String groupName)
-
-