Class JobNotificationMetricPublisher

  • All Implemented Interfaces:
    java.util.EventListener, org.springframework.context.ApplicationListener<JobStateChangeEvent>

    public class JobNotificationMetricPublisher
    extends java.lang.Object
    implements org.springframework.context.ApplicationListener<JobStateChangeEvent>
    Listens to job status changes and publishes metrics.
    Since:
    4.0.0
    • Constructor Detail

      • JobNotificationMetricPublisher

        public JobNotificationMetricPublisher​(io.micrometer.core.instrument.MeterRegistry registry)
        Constructor.
        Parameters:
        registry - metrics registry
    • Method Detail

      • onApplicationEvent

        public void onApplicationEvent​(JobStateChangeEvent event)
        Specified by:
        onApplicationEvent in interface org.springframework.context.ApplicationListener<JobStateChangeEvent>