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 Summary
Constructors Constructor Description NotificationsAutoConfiguration()
-
Method Summary
All 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 clientproperties- configuration propertiesregistry- 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 propertiesregistry- the metrics registrysnsClient- the Amazon SNS clientdataServices- TheDataServicesinstance to use- Returns:
- a
JobFinishedSNSPublisher
-
-