public class JobFinishedSNSPublisher extends java.lang.Object implements org.springframework.context.ApplicationListener<JobStateChangeEvent>
Modifier and Type | Class and Description |
---|---|
protected static class |
com.netflix.genie.web.events.AbstractSNSPublisher.EventType
Types of event.
|
Modifier and Type | Field and Description |
---|---|
protected SNSNotificationsProperties |
properties |
protected io.micrometer.core.instrument.MeterRegistry |
registry |
Constructor and Description |
---|
JobFinishedSNSPublisher(com.amazonaws.services.sns.AmazonSNS snsClient,
SNSNotificationsProperties properties,
JobPersistenceService jobPersistenceService,
io.micrometer.core.instrument.MeterRegistry registry,
com.fasterxml.jackson.databind.ObjectMapper mapper)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
onApplicationEvent(JobStateChangeEvent event) |
protected void |
publishEvent(com.netflix.genie.web.events.AbstractSNSPublisher.EventType eventType,
java.util.HashMap<java.lang.String,java.lang.Object> eventDetailsMap) |
protected final SNSNotificationsProperties properties
protected final io.micrometer.core.instrument.MeterRegistry registry
public JobFinishedSNSPublisher(com.amazonaws.services.sns.AmazonSNS snsClient, SNSNotificationsProperties properties, JobPersistenceService jobPersistenceService, io.micrometer.core.instrument.MeterRegistry registry, com.fasterxml.jackson.databind.ObjectMapper mapper)
snsClient
- Amazon SNS clientproperties
- configuration propertiesjobPersistenceService
- job persistence serviceregistry
- metrics registrymapper
- object mapperpublic void onApplicationEvent(JobStateChangeEvent event)
onApplicationEvent
in interface org.springframework.context.ApplicationListener<JobStateChangeEvent>
protected void publishEvent(com.netflix.genie.web.events.AbstractSNSPublisher.EventType eventType, java.util.HashMap<java.lang.String,java.lang.Object> eventDetailsMap)