public class NiFiAtlasHook extends org.apache.atlas.hook.AtlasHook implements LineageContext
addMessage(HookNotification) and commitMessages() should be used serially from a single thread.| Modifier and Type | Field and Description |
|---|---|
private NiFiAtlasClient |
atlasClient |
private List<org.apache.atlas.model.notification.HookNotification> |
messages |
static String |
NIFI_SOURCE |
static String |
NIFI_USER |
ATLAS_HOOK_FAILED_MESSAGES_LOG_DEFAULT_NAME, ATLAS_NOTIFICATION_ASYNCHRONOUS, ATLAS_NOTIFICATION_ASYNCHRONOUS_KEEP_ALIVE_TIME_MS, ATLAS_NOTIFICATION_ASYNCHRONOUS_MAX_THREADS, ATLAS_NOTIFICATION_ASYNCHRONOUS_MIN_THREADS, ATLAS_NOTIFICATION_ASYNCHRONOUS_QUEUE_SIZE, ATLAS_NOTIFICATION_FAILED_MESSAGES_FILENAME_KEY, ATLAS_NOTIFICATION_LOG_FAILED_MESSAGES_ENABLED_KEY, ATLAS_NOTIFICATION_MAX_RETRIES, ATLAS_NOTIFICATION_RETRY_INTERVAL, atlasProperties, CLUSTER_NAME_KEY, CONF_METADATA_NAMESPACE, DEFAULT_CLUSTER_NAME, notificationInterface, source| Constructor and Description |
|---|
NiFiAtlasHook() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMessage(org.apache.atlas.model.notification.HookNotification message) |
void |
close() |
void |
commitMessages() |
(package private) NotificationSender |
createNotificationSender() |
(package private) List<org.apache.atlas.model.notification.HookNotification> |
getMessages() |
String |
getMessageSource() |
void |
setAtlasClient(NiFiAtlasClient atlasClient) |
public static final String NIFI_USER
public static final String NIFI_SOURCE
private NiFiAtlasClient atlasClient
private final List<org.apache.atlas.model.notification.HookNotification> messages
public void setAtlasClient(NiFiAtlasClient atlasClient)
public void addMessage(org.apache.atlas.model.notification.HookNotification message)
addMessage in interface LineageContextpublic String getMessageSource()
getMessageSource in class org.apache.atlas.hook.AtlasHookpublic void commitMessages()
public void close()
NotificationSender createNotificationSender()
List<org.apache.atlas.model.notification.HookNotification> getMessages()
Copyright © 2024 Apache NiFi Project. All rights reserved.