Class PrometheusJobListener

  • All Implemented Interfaces:
    EventListener, org.jbpm.executor.AsynchronousJobListener

    public class PrometheusJobListener
    extends Object
    implements org.jbpm.executor.AsynchronousJobListener
    • Field Detail

      • numberOfRunningJobs

        protected static final io.prometheus.client.Gauge numberOfRunningJobs
      • numberOfJobsScheduled

        protected static final io.prometheus.client.Counter numberOfJobsScheduled
      • numberOfJobsExecuted

        protected static final io.prometheus.client.Counter numberOfJobsExecuted
      • numberOfJobsCancelled

        protected static final io.prometheus.client.Counter numberOfJobsCancelled
      • jobDuration

        protected static final io.prometheus.client.Summary jobDuration
      • numberOfJobsRetrying

        protected static final io.prometheus.client.Gauge numberOfJobsRetrying
      • numberOfJobsErrored

        protected static final io.prometheus.client.Counter numberOfJobsErrored
    • Constructor Detail

      • PrometheusJobListener

        public PrometheusJobListener()
    • Method Detail

      • beforeJobScheduled

        public void beforeJobScheduled​(org.jbpm.executor.AsynchronousJobEvent event)
        Specified by:
        beforeJobScheduled in interface org.jbpm.executor.AsynchronousJobListener
      • afterJobScheduled

        public void afterJobScheduled​(org.jbpm.executor.AsynchronousJobEvent event)
        Specified by:
        afterJobScheduled in interface org.jbpm.executor.AsynchronousJobListener
      • beforeJobExecuted

        public void beforeJobExecuted​(org.jbpm.executor.AsynchronousJobEvent event)
        Specified by:
        beforeJobExecuted in interface org.jbpm.executor.AsynchronousJobListener
      • afterJobExecuted

        public void afterJobExecuted​(org.jbpm.executor.AsynchronousJobEvent event)
        Specified by:
        afterJobExecuted in interface org.jbpm.executor.AsynchronousJobListener
      • beforeJobCancelled

        public void beforeJobCancelled​(org.jbpm.executor.AsynchronousJobEvent event)
        Specified by:
        beforeJobCancelled in interface org.jbpm.executor.AsynchronousJobListener
      • afterJobCancelled

        public void afterJobCancelled​(org.jbpm.executor.AsynchronousJobEvent event)
        Specified by:
        afterJobCancelled in interface org.jbpm.executor.AsynchronousJobListener