Package com.netflix.genie.web.events
Class JobStateChangeSNSPublisher
java.lang.Object
com.netflix.genie.web.events.JobStateChangeSNSPublisher
- All Implemented Interfaces:
EventListener
,org.springframework.context.ApplicationListener<JobStateChangeEvent>
public class JobStateChangeSNSPublisher
extends Object
implements org.springframework.context.ApplicationListener<JobStateChangeEvent>
Publishes Amazon SNS notifications for fine-grained job state changes.
- Since:
- 4.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final SNSNotificationsProperties
protected final io.micrometer.core.instrument.MeterRegistry
-
Constructor Summary
ConstructorsConstructorDescriptionJobStateChangeSNSPublisher
(software.amazon.awssdk.services.sns.SnsClient snsClient, SNSNotificationsProperties properties, io.micrometer.core.instrument.MeterRegistry registry, com.fasterxml.jackson.databind.ObjectMapper mapper) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
protected void
publishEvent
(com.netflix.genie.web.events.AbstractSNSPublisher.EventType eventType, HashMap<String, Object> eventDetailsMap) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.context.ApplicationListener
supportsAsyncExecution
-
Field Details
-
properties
-
registry
protected final io.micrometer.core.instrument.MeterRegistry registry
-
-
Constructor Details
-
JobStateChangeSNSPublisher
public JobStateChangeSNSPublisher(software.amazon.awssdk.services.sns.SnsClient snsClient, SNSNotificationsProperties properties, io.micrometer.core.instrument.MeterRegistry registry, com.fasterxml.jackson.databind.ObjectMapper mapper) Constructor.- Parameters:
snsClient
- Amazon SNS clientproperties
- configuration propertiesregistry
- metrics registrymapper
- object mapper
-
-
Method Details
-
onApplicationEvent
- Specified by:
onApplicationEvent
in interfaceorg.springframework.context.ApplicationListener<JobStateChangeEvent>
-
publishEvent
-