@TriggerSerially @Tags(value={"flume","hadoop","put","sink","restricted"}) @InputRequirement(value=INPUT_REQUIRED) @CapabilityDescription(value="Execute a Flume sink. Each input FlowFile is converted into a Flume Event for processing by the sink.") @Restricted(value="Provides operator the ability to execute arbitrary Flume configurations assuming all permissions that NiFi has.") public class ExecuteFlumeSink extends AbstractFlumeProcessor
| Modifier and Type | Field and Description |
|---|---|
static PropertyDescriptor |
AGENT_NAME |
private NifiSinkSessionChannel |
channel |
private List<PropertyDescriptor> |
descriptors |
static Relationship |
FAILURE |
static PropertyDescriptor |
FLUME_CONFIG |
private Set<Relationship> |
relationships |
private org.apache.flume.Sink |
sink |
static PropertyDescriptor |
SINK_TYPE |
static PropertyDescriptor |
SOURCE_NAME |
static Relationship |
SUCCESS |
SINK_FACTORY, SOURCE_FACTORY| Constructor and Description |
|---|
ExecuteFlumeSink() |
| Modifier and Type | Method and Description |
|---|---|
Set<Relationship> |
getRelationships() |
protected List<PropertyDescriptor> |
getSupportedPropertyDescriptors() |
protected void |
init(ProcessorInitializationContext context) |
void |
onScheduled(ProcessContext context) |
void |
onTrigger(ProcessContext context,
ProcessSession session) |
void |
stopped() |
createSinkValidator, createSourceValidator, flowFileToEvent, getFlumeContext, getFlumeSinkContext, getFlumeSourceContext, onTrigger, transferEventgetControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, initialize, isConfigurationRestored, isScheduled, toString, updateConfiguredRestoredTrue, updateScheduledFalse, updateScheduledTruecustomValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validatepublic static final PropertyDescriptor SINK_TYPE
public static final PropertyDescriptor AGENT_NAME
public static final PropertyDescriptor SOURCE_NAME
public static final PropertyDescriptor FLUME_CONFIG
public static final Relationship SUCCESS
public static final Relationship FAILURE
private List<PropertyDescriptor> descriptors
private Set<Relationship> relationships
private volatile org.apache.flume.Sink sink
private volatile NifiSinkSessionChannel channel
protected void init(ProcessorInitializationContext context)
init in class AbstractSessionFactoryProcessorprotected List<PropertyDescriptor> getSupportedPropertyDescriptors()
getSupportedPropertyDescriptors in class AbstractConfigurableComponentpublic Set<Relationship> getRelationships()
getRelationships in interface ProcessorgetRelationships in class AbstractSessionFactoryProcessor@OnScheduled public void onScheduled(ProcessContext context)
@OnStopped public void stopped()
public void onTrigger(ProcessContext context, ProcessSession session) throws ProcessException
onTrigger in class AbstractFlumeProcessorProcessExceptionCopyright © 2017 Apache NiFi Project. All rights reserved.