Class HttpNotificationService
java.lang.Object
org.apache.nifi.components.AbstractConfigurableComponent
org.apache.nifi.bootstrap.notification.AbstractNotificationService
org.apache.nifi.bootstrap.notification.http.HttpNotificationService
- All Implemented Interfaces:
NotificationService,ConfigurableComponent
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AtomicReference<okhttp3.OkHttpClient> static final Stringstatic final Stringstatic final PropertyDescriptorstatic final PropertyDescriptorstatic final PropertyDescriptorstatic final PropertyDescriptorstatic final PropertyDescriptorstatic final PropertyDescriptorstatic final PropertyDescriptorstatic final PropertyDescriptorstatic final PropertyDescriptorstatic final PropertyDescriptorstatic final PropertyDescriptorprivate static final List<PropertyDescriptor> private final AtomicReference<String> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static TlsConfigurationprotected PropertyDescriptorgetSupportedDynamicPropertyDescriptor(String propertyDescriptorName) protected List<PropertyDescriptor> protected voidinit(NotificationInitializationContext context) voidnotify(NotificationContext context, NotificationType notificationType, String subject, String message) Notifies the configured recipients of some eventMethods inherited from class org.apache.nifi.bootstrap.notification.AbstractNotificationService
getIdentifier, initializeMethods inherited from class org.apache.nifi.components.AbstractConfigurableComponent
customValidate, equals, getPropertyDescriptor, getPropertyDescriptors, hashCode, onPropertyModified, toString, validateMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.nifi.components.ConfigurableComponent
getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validate
-
Field Details
-
NOTIFICATION_TYPE_KEY
- See Also:
-
NOTIFICATION_SUBJECT_KEY
- See Also:
-
PROP_URL
-
PROP_CONNECTION_TIMEOUT
-
PROP_WRITE_TIMEOUT
-
PROP_TRUSTSTORE
-
PROP_TRUSTSTORE_TYPE
-
PROP_TRUSTSTORE_PASSWORD
-
PROP_KEYSTORE
-
PROP_KEYSTORE_TYPE
-
PROP_KEYSTORE_PASSWORD
-
PROP_KEY_PASSWORD
-
SSL_ALGORITHM
-
httpClientReference
-
urlReference
-
supportedProperties
-
-
Constructor Details
-
HttpNotificationService
public HttpNotificationService()
-
-
Method Details
-
getSupportedPropertyDescriptors
- Overrides:
getSupportedPropertyDescriptorsin classAbstractConfigurableComponent
-
getSupportedDynamicPropertyDescriptor
- Overrides:
getSupportedDynamicPropertyDescriptorin classAbstractConfigurableComponent
-
init
- Overrides:
initin classAbstractNotificationService
-
createTlsConfigurationFromContext
private static TlsConfiguration createTlsConfigurationFromContext(NotificationInitializationContext context) -
notify
public void notify(NotificationContext context, NotificationType notificationType, String subject, String message) throws NotificationFailedException Description copied from interface:NotificationServiceNotifies the configured recipients of some event- Parameters:
context- the context that is relevant for this notificationnotificationType- the notification typesubject- the subject of the messagemessage- the message to be provided to recipients- Throws:
NotificationFailedException
-