Class StatisticsJobListener
- java.lang.Object
-
- com.helger.schedule.quartz.listener.StatisticsJobListener
-
- All Implemented Interfaces:
com.helger.quartz.IJobListener
public class StatisticsJobListener extends Object implements com.helger.quartz.IJobListener
A Quartz job listener that handles statistics for job executions. It handles vetoed job executions as well as job executions.- Author:
- Philip Helger
-
-
Constructor Summary
Constructors Constructor Description StatisticsJobListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()protected StringgetStatisticsName(com.helger.quartz.IJobExecutionContext aContext)voidjobExecutionVetoed(com.helger.quartz.IJobExecutionContext aContext)voidjobToBeExecuted(com.helger.quartz.IJobExecutionContext aContext)voidjobWasExecuted(com.helger.quartz.IJobExecutionContext aContext, com.helger.quartz.JobExecutionException aJobException)
-
-
-
Method Detail
-
getName
@Nonnull @Nonempty public String getName()
- Specified by:
getNamein interfacecom.helger.quartz.IJobListener
-
getStatisticsName
@Nonnull @Nonempty protected String getStatisticsName(@Nonnull com.helger.quartz.IJobExecutionContext aContext)
-
jobToBeExecuted
public void jobToBeExecuted(@Nonnull com.helger.quartz.IJobExecutionContext aContext)
- Specified by:
jobToBeExecutedin interfacecom.helger.quartz.IJobListener
-
jobExecutionVetoed
public void jobExecutionVetoed(@Nonnull com.helger.quartz.IJobExecutionContext aContext)
- Specified by:
jobExecutionVetoedin interfacecom.helger.quartz.IJobListener
-
jobWasExecuted
public void jobWasExecuted(@Nonnull com.helger.quartz.IJobExecutionContext aContext, com.helger.quartz.JobExecutionException aJobException)
- Specified by:
jobWasExecutedin interfacecom.helger.quartz.IJobListener
-
-