Class NotificationsAutoConfiguration
- java.lang.Object
- 
- com.netflix.genie.web.spring.autoconfigure.events.NotificationsAutoConfiguration
 
- 
 @Configuration @EnableConfigurationProperties(SNSNotificationsProperties.class) public class NotificationsAutoConfiguration extends java.lang.Object Beans related to external notifications.- Since:
- 4.0.0
 
- 
- 
Constructor SummaryConstructors Constructor Description NotificationsAutoConfiguration()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description JobFinishedSNSPublisherjobFinishedSNSPublisher(SNSNotificationsProperties properties, io.micrometer.core.instrument.MeterRegistry registry, com.amazonaws.services.sns.AmazonSNS snsClient, DataServices dataServices)Create aJobFinishedSNSPublisherunless one exists in the context already.JobNotificationMetricPublisherjobNotificationMetricPublisher(io.micrometer.core.instrument.MeterRegistry registry)Create aJobNotificationMetricPublisherwhich publishes metrics related to to job state changes notifications.JobStateChangeSNSPublisherjobNotificationsSNSPublisher(SNSNotificationsProperties properties, io.micrometer.core.instrument.MeterRegistry registry, com.amazonaws.services.sns.AmazonSNS snsClient)Create aJobStateChangeSNSPublisherunless one exists in the context already.PersistedJobStatusObserverpersistedJobStatusObserver(GenieEventBus genieEventBus)CreatePersistedJobStatusObserverif one does not exist.
 
- 
- 
- 
Method Detail- 
persistedJobStatusObserver@Bean @ConditionalOnMissingBean(PersistedJobStatusObserver.class) public PersistedJobStatusObserver persistedJobStatusObserver(GenieEventBus genieEventBus) CreatePersistedJobStatusObserverif one does not exist.- Parameters:
- genieEventBus- the genie event bus
- Returns:
- a PersistedJobStatusObserver
 
 - 
jobNotificationMetricPublisher@Bean @ConditionalOnMissingBean(JobNotificationMetricPublisher.class) public JobNotificationMetricPublisher jobNotificationMetricPublisher(io.micrometer.core.instrument.MeterRegistry registry) Create aJobNotificationMetricPublisherwhich publishes metrics related to to job state changes notifications.- Parameters:
- registry- the metrics registry
- Returns:
- a JobNotificationMetricPublisher
 
 - 
jobNotificationsSNSPublisher@Bean @ConditionalOnProperty(value="genie.notifications.sns.enabled", havingValue="true") @ConditionalOnMissingBean(JobStateChangeSNSPublisher.class) public JobStateChangeSNSPublisher jobNotificationsSNSPublisher(SNSNotificationsProperties properties, io.micrometer.core.instrument.MeterRegistry registry, com.amazonaws.services.sns.AmazonSNS snsClient)Create aJobStateChangeSNSPublisherunless one exists in the context already.- Parameters:
- snsClient- the Amazon SNS client
- properties- configuration properties
- registry- the metrics registry
- Returns:
- a JobStateChangeSNSPublisher
 
 - 
jobFinishedSNSPublisher@Bean @ConditionalOnProperty(value="genie.notifications.sns.enabled", havingValue="true") @ConditionalOnMissingBean(JobFinishedSNSPublisher.class) public JobFinishedSNSPublisher jobFinishedSNSPublisher(SNSNotificationsProperties properties, io.micrometer.core.instrument.MeterRegistry registry, com.amazonaws.services.sns.AmazonSNS snsClient, DataServices dataServices)Create aJobFinishedSNSPublisherunless one exists in the context already.- Parameters:
- properties- configuration properties
- registry- the metrics registry
- snsClient- the Amazon SNS client
- dataServices- The- DataServicesinstance to use
- Returns:
- a JobFinishedSNSPublisher
 
 
- 
 
-