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 void
clearStatistics()
Clears the collected statistics.long
getJobsCompletedMostRecentSample()
long
getJobsExecutingMostRecentSample()
long
getJobsScheduledMostRecentSample()
java.lang.String
getName()
Get the name of theJobListener
.void
jobAdded(JobDetail jobDetail)
void
jobDeleted(java.lang.String jobName, java.lang.String groupName)
void
jobExecutionVetoed(JobExecutionContext context)
Called by the
when aScheduler
was about to be executed (an associatedJobDetail
has occurred), but aTrigger
vetoed it's execution.TriggerListener
void
jobScheduled(Trigger trigger)
void
jobToBeExecuted(JobExecutionContext context)
void
jobWasExecuted(JobExecutionContext context, JobExecutionException jobException)
void
shutdown()
-
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:
shutdown
in interfaceSampledStatistics
-
clearStatistics
public void clearStatistics()
Clears the collected statistics. Resets all counters to zero
-
getJobsCompletedMostRecentSample
public long getJobsCompletedMostRecentSample()
- Specified by:
getJobsCompletedMostRecentSample
in interfaceSampledStatistics
-
getJobsExecutingMostRecentSample
public long getJobsExecutingMostRecentSample()
- Specified by:
getJobsExecutingMostRecentSample
in interfaceSampledStatistics
-
getJobsScheduledMostRecentSample
public long getJobsScheduledMostRecentSample()
- Specified by:
getJobsScheduledMostRecentSample
in interfaceSampledStatistics
-
getName
public java.lang.String getName()
Description copied from interface:JobListener
Get the name of the
JobListener
.- Specified by:
getName
in interfaceJobListener
-
jobScheduled
public void jobScheduled(Trigger trigger)
Description copied from interface:SchedulerListener
- Specified by:
jobScheduled
in interfaceSchedulerListener
- Overrides:
jobScheduled
in classSchedulerListenerSupport
-
jobExecutionVetoed
public void jobExecutionVetoed(JobExecutionContext context)
Description copied from interface:JobListener
Called by the
when aScheduler
was about to be executed (an associatedJobDetail
has occurred), but aTrigger
vetoed it's execution.TriggerListener
- Specified by:
jobExecutionVetoed
in interfaceJobListener
- See Also:
JobListener.jobToBeExecuted(JobExecutionContext)
-
jobToBeExecuted
public void jobToBeExecuted(JobExecutionContext context)
Description copied from interface:JobListener
Called by the
when aScheduler
is about to be executed (an associatedJobDetail
has occurred).Trigger
This method will not be invoked if the execution of the Job was vetoed by a
.TriggerListener
- Specified by:
jobToBeExecuted
in interfaceJobListener
- See Also:
JobListener.jobExecutionVetoed(JobExecutionContext)
-
jobWasExecuted
public void jobWasExecuted(JobExecutionContext context, JobExecutionException jobException)
Description copied from interface:JobListener
Called by the
after aScheduler
has been executed, and be for the associatedJobDetail
Trigger
'striggered(xx)
method has been called.- Specified by:
jobWasExecuted
in interfaceJobListener
-
jobAdded
public void jobAdded(JobDetail jobDetail)
Description copied from interface:SchedulerListener
- Specified by:
jobAdded
in interfaceSchedulerListener
- Overrides:
jobAdded
in classSchedulerListenerSupport
-
jobDeleted
public void jobDeleted(java.lang.String jobName, java.lang.String groupName)
-
-