public class SampledStatisticsImpl extends SchedulerListenerSupport implements SampledStatistics, JobListener, SchedulerListener
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(JobDetail jobDetail)
|
void |
jobDeleted(String jobName,
String groupName) |
void |
jobExecutionVetoed(JobExecutionContext context)
Called by the
when a
was about to be executed (an associated
has occurred), but a vetoed it's
execution. |
void |
jobScheduled(Trigger trigger)
|
void |
jobToBeExecuted(JobExecutionContext context)
|
void |
jobWasExecuted(JobExecutionContext context,
JobExecutionException jobException)
|
void |
shutdown() |
getLog, jobDeleted, jobPaused, jobResumed, jobsPaused, jobsResumed, jobUnscheduled, schedulerError, schedulerInStandbyMode, schedulerShutdown, schedulerShuttingdown, schedulerStarted, schedulerStarting, schedulingDataCleared, triggerFinalized, triggerPaused, triggerResumed, triggersPaused, triggersResumed
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
jobDeleted, jobPaused, jobResumed, jobsPaused, jobsResumed, jobUnscheduled, schedulerError, schedulerInStandbyMode, schedulerShutdown, schedulerShuttingdown, schedulerStarted, schedulerStarting, schedulingDataCleared, triggerFinalized, triggerPaused, triggerResumed, triggersPaused, triggersResumed
public void shutdown()
shutdown
in interface SampledStatistics
public void clearStatistics()
public long getJobsCompletedMostRecentSample()
getJobsCompletedMostRecentSample
in interface SampledStatistics
public long getJobsExecutingMostRecentSample()
getJobsExecutingMostRecentSample
in interface SampledStatistics
public long getJobsScheduledMostRecentSample()
getJobsScheduledMostRecentSample
in interface SampledStatistics
public String getName()
JobListener
Get the name of the JobListener
.
getName
in interface JobListener
public void jobScheduled(Trigger trigger)
SchedulerListener
jobScheduled
in interface SchedulerListener
jobScheduled
in class SchedulerListenerSupport
public void jobExecutionVetoed(JobExecutionContext context)
JobListener
Called by the
when a Scheduler
was about to be executed (an associated JobDetail
has occurred), but a Trigger
vetoed it's
execution.
TriggerListener
jobExecutionVetoed
in interface JobListener
JobListener.jobToBeExecuted(JobExecutionContext)
public void jobToBeExecuted(JobExecutionContext context)
JobListener
Called by the
when a Scheduler
is about to be executed (an associated JobDetail
has occurred).
Trigger
This method will not be invoked if the execution of the Job was vetoed
by a
.
TriggerListener
jobToBeExecuted
in interface JobListener
JobListener.jobExecutionVetoed(JobExecutionContext)
public void jobWasExecuted(JobExecutionContext context, JobExecutionException jobException)
JobListener
Called by the
after a Scheduler
has been executed, and be for the associated JobDetail
Trigger
's
triggered(xx)
method has been called.
jobWasExecuted
in interface JobListener
public void jobAdded(JobDetail jobDetail)
SchedulerListener
jobAdded
in interface SchedulerListener
jobAdded
in class SchedulerListenerSupport
Copyright 2001-2019, Terracotta, Inc.