Package com.netflix.genie.web.events
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 Summary
ConstructorDescriptionJobNotificationMetricPublisher
(io.micrometer.core.instrument.MeterRegistry registry) Constructor. -
Method Summary
-
Constructor Details
-
JobNotificationMetricPublisher
public JobNotificationMetricPublisher(io.micrometer.core.instrument.MeterRegistry registry) Constructor.- Parameters:
registry
- metrics registry
-
-
Method Details
-
onApplicationEvent
- Specified by:
onApplicationEvent
in interfaceorg.springframework.context.ApplicationListener<JobStateChangeEvent>
-