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 JobFinishedSNSPublisher
jobFinishedSNSPublisher(SNSNotificationsProperties properties, io.micrometer.core.instrument.MeterRegistry registry, com.amazonaws.services.sns.AmazonSNS snsClient, DataServices dataServices)
Create aJobFinishedSNSPublisher
unless one exists in the context already.JobNotificationMetricPublisher
jobNotificationMetricPublisher(io.micrometer.core.instrument.MeterRegistry registry)
Create aJobNotificationMetricPublisher
which publishes metrics related to to job state changes notifications.JobStateChangeSNSPublisher
jobNotificationsSNSPublisher(SNSNotificationsProperties properties, io.micrometer.core.instrument.MeterRegistry registry, com.amazonaws.services.sns.AmazonSNS snsClient)
Create aJobStateChangeSNSPublisher
unless one exists in the context already.PersistedJobStatusObserver
persistedJobStatusObserver(GenieEventBus genieEventBus)
CreatePersistedJobStatusObserver
if one does not exist.
-
-
-
Method Detail
-
persistedJobStatusObserver
@Bean @ConditionalOnMissingBean(PersistedJobStatusObserver.class) public PersistedJobStatusObserver persistedJobStatusObserver(GenieEventBus genieEventBus)
CreatePersistedJobStatusObserver
if 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 aJobNotificationMetricPublisher
which 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 aJobStateChangeSNSPublisher
unless 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 aJobFinishedSNSPublisher
unless one exists in the context already.- Parameters:
properties
- configuration propertiesregistry
- the metrics registrysnsClient
- the Amazon SNS clientdataServices
- TheDataServices
instance to use- Returns:
- a
JobFinishedSNSPublisher
-
-