Class JobNotificationMetricPublisher

java.lang.Object
com.netflix.genie.web.events.JobNotificationMetricPublisher
All Implemented Interfaces:
EventListener, org.springframework.context.ApplicationListener<JobStateChangeEvent>

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

    • JobNotificationMetricPublisher

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

    • onApplicationEvent

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