@Tags(value={"provenance","lineage","tracking","site","site to site"}) @CapabilityDescription(value="Publishes Provenance events using the Site To Site protocol.") @Stateful(scopes=LOCAL, description="Stores the Reporting Task\'s last event Id so that on restart the task knows where it left off.") @Restricted(restrictions=@Restriction(requiredPermission=EXPORT_NIFI_DETAILS,explanation="Provides operator the ability to send sensitive details contained in Provenance events to any external system.")) public class SiteToSiteProvenanceReportingTask extends AbstractSiteToSiteReportingTask
| Modifier and Type | Field and Description |
|---|---|
(package private) static AllowableValue |
BEGINNING_OF_STREAM |
private ProvenanceEventConsumer |
consumer |
(package private) static AllowableValue |
END_OF_STREAM |
(package private) static PropertyDescriptor |
FILTER_COMPONENT_ID |
(package private) static PropertyDescriptor |
FILTER_COMPONENT_ID_EXCLUDE |
(package private) static PropertyDescriptor |
FILTER_COMPONENT_NAME |
(package private) static PropertyDescriptor |
FILTER_COMPONENT_NAME_EXCLUDE |
(package private) static PropertyDescriptor |
FILTER_COMPONENT_TYPE |
(package private) static PropertyDescriptor |
FILTER_COMPONENT_TYPE_EXCLUDE |
(package private) static PropertyDescriptor |
FILTER_EVENT_TYPE |
(package private) static PropertyDescriptor |
FILTER_EVENT_TYPE_EXCLUDE |
(package private) static PropertyDescriptor |
START_POSITION |
ALLOW_NULL_VALUES, DESTINATION_URL_PATH, LAST_EVENT_ID_KEY, RECORD_WRITER, recordSchema, siteToSiteClient, TIMESTAMP_FORMAT| Constructor and Description |
|---|
SiteToSiteProvenanceReportingTask() |
| Modifier and Type | Method and Description |
|---|---|
private void |
addField(javax.json.JsonObjectBuilder builder,
javax.json.JsonBuilderFactory factory,
String key,
Collection<String> values,
Boolean allowNullValues) |
private static void |
addField(javax.json.JsonObjectBuilder builder,
javax.json.JsonBuilderFactory factory,
String key,
Map<String,String> values,
Boolean allowNullValues) |
private static javax.json.JsonArrayBuilder |
createJsonArray(javax.json.JsonBuilderFactory factory,
Collection<String> values) |
protected List<PropertyDescriptor> |
getSupportedPropertyDescriptors() |
void |
onScheduled(ConfigurationContext context) |
void |
onTrigger(ReportingContext context) |
void |
onUnscheduled() |
private javax.json.JsonObject |
serialize(javax.json.JsonBuilderFactory factory,
javax.json.JsonObjectBuilder builder,
ProvenanceEventRecord event,
DateFormat df,
String componentName,
String processGroupId,
String processGroupName,
String hostname,
URL nifiUrl,
String applicationName,
String platform,
String nodeIdentifier,
Boolean allowNullValues) |
addField, addField, addField, addField, getClient, getData, sendData, setup, shutdown, verifygetControllerServiceLookup, getIdentifier, getLogger, getName, getNodeTypeProvider, getSchedulingPeriod, init, initialize, setComponentInfocustomValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, toString, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitisStatefulgetPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validatestatic final AllowableValue BEGINNING_OF_STREAM
static final AllowableValue END_OF_STREAM
static final PropertyDescriptor FILTER_EVENT_TYPE
static final PropertyDescriptor FILTER_EVENT_TYPE_EXCLUDE
static final PropertyDescriptor FILTER_COMPONENT_TYPE
static final PropertyDescriptor FILTER_COMPONENT_TYPE_EXCLUDE
static final PropertyDescriptor FILTER_COMPONENT_ID
static final PropertyDescriptor FILTER_COMPONENT_ID_EXCLUDE
static final PropertyDescriptor FILTER_COMPONENT_NAME
static final PropertyDescriptor FILTER_COMPONENT_NAME_EXCLUDE
static final PropertyDescriptor START_POSITION
private volatile ProvenanceEventConsumer consumer
public SiteToSiteProvenanceReportingTask()
throws IOException
IOException@OnScheduled public void onScheduled(ConfigurationContext context) throws IOException
IOException@OnUnscheduled public void onUnscheduled()
protected List<PropertyDescriptor> getSupportedPropertyDescriptors()
getSupportedPropertyDescriptors in class AbstractSiteToSiteReportingTaskpublic void onTrigger(ReportingContext context)
private javax.json.JsonObject serialize(javax.json.JsonBuilderFactory factory,
javax.json.JsonObjectBuilder builder,
ProvenanceEventRecord event,
DateFormat df,
String componentName,
String processGroupId,
String processGroupName,
String hostname,
URL nifiUrl,
String applicationName,
String platform,
String nodeIdentifier,
Boolean allowNullValues)
private static void addField(javax.json.JsonObjectBuilder builder,
javax.json.JsonBuilderFactory factory,
String key,
Map<String,String> values,
Boolean allowNullValues)
private void addField(javax.json.JsonObjectBuilder builder,
javax.json.JsonBuilderFactory factory,
String key,
Collection<String> values,
Boolean allowNullValues)
private static javax.json.JsonArrayBuilder createJsonArray(javax.json.JsonBuilderFactory factory,
Collection<String> values)
Copyright © 2024 Apache NiFi Project. All rights reserved.