|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 | |
---|---|
void |
clearStatistics()
Clears the collected statistics. |
long |
getJobsCompletedMostRecentSample()
|
long |
getJobsExecutingMostRecentSample()
|
long |
getJobsScheduledMostRecentSample()
|
String |
getName()
Get the name of the JobListener . |
void |
jobAdded(JobDetail jobDetail)
Called by the
Scheduler when a
JobDetail
has been added. |
void |
jobDeleted(String jobName,
String groupName)
|
void |
jobExecutionVetoed(JobExecutionContext context)
Called by the
Scheduler when a
JobDetail
was about to be executed (an associated
Trigger
has occurred), but a
TriggerListener vetoed it's
execution. |
void |
jobScheduled(Trigger trigger)
Called by the
Scheduler when a
JobDetail
is scheduled. |
void |
jobToBeExecuted(JobExecutionContext context)
Called by the
Scheduler when a
JobDetail
is about to be executed (an associated
Trigger
has occurred). |
void |
jobWasExecuted(JobExecutionContext context,
JobExecutionException jobException)
Called by the
Scheduler after a
JobDetail
has been executed, and be for the associated Trigger 's
triggered(xx) method has been called. |
void |
shutdown()
|
Methods inherited from class org.quartz.listeners.SchedulerListenerSupport |
---|
getLog, jobDeleted, jobPaused, jobResumed, jobsPaused, jobsResumed, jobUnscheduled, schedulerError, schedulerInStandbyMode, schedulerShutdown, schedulerShuttingdown, schedulerStarted, 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, 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 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
Called by the
Scheduler
when aJobDetail
is scheduled.- Specified by:
jobScheduled
in interfaceSchedulerListener
- Overrides:
jobScheduled
in classSchedulerListenerSupport
jobExecutionVetoed
public void jobExecutionVetoed(JobExecutionContext context)
- Description copied from interface:
JobListener
Called by the
Scheduler
when aJobDetail
was about to be executed (an associatedTrigger
has occurred), but aTriggerListener
vetoed it's execution.- Specified by:
jobExecutionVetoed
in interfaceJobListener
jobToBeExecuted
public void jobToBeExecuted(JobExecutionContext context)
- Description copied from interface:
JobListener
Called by the
Scheduler
when aJobDetail
is about to be executed (an associatedTrigger
has occurred).This method will not be invoked if the execution of the Job was vetoed by a
TriggerListener
.- Specified by:
jobToBeExecuted
in interfaceJobListener
jobWasExecuted
public void jobWasExecuted(JobExecutionContext context, JobExecutionException jobException)
- Description copied from interface:
JobListener
Called by the
Scheduler
after aJobDetail
has been executed, and be for the associatedTrigger
'striggered(xx)
method has been called.- Specified by:
jobWasExecuted
in interfaceJobListener
jobAdded
public void jobAdded(JobDetail jobDetail)
- Description copied from interface:
SchedulerListener
Called by the
Scheduler
when aJobDetail
has been added.- Specified by:
jobAdded
in interfaceSchedulerListener
- Overrides:
jobAdded
in classSchedulerListenerSupport
jobDeleted
public void jobDeleted(String jobName, String groupName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2001-2011, Terracotta, Inc.