public class SampledStatistics extends Object implements ISampledStatistics, IJobListener, ISchedulerListener
| Modifier and Type | Method and Description |
|---|---|
void |
clearStatistics()
Clears the collected statistics.
|
long |
getJobsCompletedMostRecentSample() |
long |
getJobsExecutingMostRecentSample() |
long |
getJobsScheduledMostRecentSample() |
String |
getName()
Get the name of the
JobListener. |
void |
jobAdded(IJobDetail jobDetail)
Called by the
when a
has been added. |
void |
jobExecutionVetoed(IJobExecutionContext context)
Called by the
when a
was about to be executed
(an associated has occurred), but a
vetoed it's execution. |
void |
jobScheduled(ITrigger trigger)
Called by the
when a
is scheduled. |
void |
jobToBeExecuted(IJobExecutionContext context)
Called by the
when a
is about to be executed
(an associated has occurred). |
void |
jobWasExecuted(IJobExecutionContext context,
JobExecutionException jobException)
Called by the
after a
has been executed, and be
for the associated Trigger's triggered(xx) method
has been called. |
void |
shutdown() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitjobDeleted, jobPaused, jobResumed, jobsPaused, jobsResumed, jobUnscheduled, schedulerError, schedulerInStandbyMode, schedulerShutdown, schedulerShuttingdown, schedulerStarted, schedulerStarting, schedulingDataCleared, triggerFinalized, triggerPaused, triggerResumed, triggersPaused, triggersResumedpublic static final String NAME
public void shutdown()
shutdown in interface ISampledStatisticspublic void clearStatistics()
public long getJobsCompletedMostRecentSample()
getJobsCompletedMostRecentSample in interface ISampledStatisticspublic long getJobsExecutingMostRecentSample()
getJobsExecutingMostRecentSample in interface ISampledStatisticspublic long getJobsScheduledMostRecentSample()
getJobsScheduledMostRecentSample in interface ISampledStatisticspublic String getName()
IJobListener
Get the name of the JobListener.
getName in interface IJobListenerpublic void jobScheduled(ITrigger trigger)
ISchedulerListenerIScheduler when a
IJobDetail is scheduled.jobScheduled in interface ISchedulerListenerpublic void jobExecutionVetoed(IJobExecutionContext context)
IJobListener
Called by the when a
IScheduler was about to be executed
(an associated IJobDetail has occurred), but a
ITrigger vetoed it's execution.
ITriggerListener
jobExecutionVetoed in interface IJobListenerIJobListener.jobToBeExecuted(IJobExecutionContext)public void jobToBeExecuted(IJobExecutionContext context)
IJobListener
Called by the when a
IScheduler is about to be executed
(an associated IJobDetail has occurred).
ITrigger
This method will not be invoked if the execution of the Job was vetoed by a
.
ITriggerListener
jobToBeExecuted in interface IJobListenerIJobListener.jobExecutionVetoed(IJobExecutionContext)public void jobWasExecuted(IJobExecutionContext context, JobExecutionException jobException)
IJobListener
Called by the after a
IScheduler has been executed, and be
for the associated IJobDetailTrigger's triggered(xx) method
has been called.
jobWasExecuted in interface IJobListenerpublic void jobAdded(IJobDetail jobDetail)
ISchedulerListenerIScheduler when a
IJobDetail has been added.jobAdded in interface ISchedulerListenerCopyright © 2016–2021 Philip Helger. All rights reserved.