Class 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 Detail

      • StatisticsJobListener

        public StatisticsJobListener()
    • Method Detail

      • getName

        @Nonnull
        @Nonempty
        public String getName()
        Specified by:
        getName in interface com.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:
        jobToBeExecuted in interface com.helger.quartz.IJobListener
      • jobExecutionVetoed

        public void jobExecutionVetoed​(@Nonnull
                                       com.helger.quartz.IJobExecutionContext aContext)
        Specified by:
        jobExecutionVetoed in interface com.helger.quartz.IJobListener
      • jobWasExecuted

        public void jobWasExecuted​(@Nonnull
                                   com.helger.quartz.IJobExecutionContext aContext,
                                   com.helger.quartz.JobExecutionException aJobException)
        Specified by:
        jobWasExecuted in interface com.helger.quartz.IJobListener