Class MetricsJobListener

java.lang.Object
org.quartz.listeners.JobListenerSupport
ch.tocco.nice2.metrics.impl.task.MetricsJobListener
All Implemented Interfaces:
org.quartz.JobListener

@Component @Order(10000) public class MetricsJobListener extends org.quartz.listeners.JobListenerSupport
This service is eagerly loaded at startup and observes all tasks executed by the TaskSchedulingService and collects metrics if necessary.
  • Field Details

  • Constructor Details

  • Method Details

    • getName

      public String getName()
    • jobToBeExecuted

      public void jobToBeExecuted(org.quartz.JobExecutionContext context)
      Specified by:
      jobToBeExecuted in interface org.quartz.JobListener
      Overrides:
      jobToBeExecuted in class org.quartz.listeners.JobListenerSupport