@TriggerSerially @Tags(value={"flume","hadoop","get","source","restricted"}) @InputRequirement(value=INPUT_FORBIDDEN) @CapabilityDescription(value="Execute a Flume source. Each Flume Event is sent to the success relationship as a FlowFile") @Restricted(value="Provides operator the ability to execute arbitrary Flume configurations assuming all permissions that NiFi has.") public class ExecuteFlumeSource extends AbstractFlumeProcessor
| Modifier and Type | Field and Description |
|---|---|
static PropertyDescriptor |
AGENT_NAME |
private List<PropertyDescriptor> |
descriptors |
private AtomicReference<NifiSessionFactoryChannel> |
eventDrivenSourceChannelRef |
static PropertyDescriptor |
FLUME_CONFIG |
private NifiSessionChannel |
pollableSourceChannel |
private Set<Relationship> |
relationships |
private AtomicReference<org.apache.flume.source.EventDrivenSourceRunner> |
runnerRef |
private AtomicReference<ProcessSessionFactory> |
sessionFactoryRef |
private org.apache.flume.Source |
source |
static PropertyDescriptor |
SOURCE_NAME |
static PropertyDescriptor |
SOURCE_TYPE |
static Relationship |
SUCCESS |
SINK_FACTORY, SOURCE_FACTORY| Constructor and Description |
|---|
ExecuteFlumeSource() |
| 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 |
onTrigger(ProcessContext context,
ProcessSessionFactory sessionFactory) |
void |
stopped() |
createSinkValidator, createSourceValidator, flowFileToEvent, getFlumeContext, getFlumeSinkContext, getFlumeSourceContext, 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 SOURCE_TYPE
public static final PropertyDescriptor AGENT_NAME
public static final PropertyDescriptor SOURCE_NAME
public static final PropertyDescriptor FLUME_CONFIG
public static final Relationship SUCCESS
private List<PropertyDescriptor> descriptors
private Set<Relationship> relationships
private volatile org.apache.flume.Source source
private final NifiSessionChannel pollableSourceChannel
private final AtomicReference<ProcessSessionFactory> sessionFactoryRef
private final AtomicReference<org.apache.flume.source.EventDrivenSourceRunner> runnerRef
private final AtomicReference<NifiSessionFactoryChannel> eventDrivenSourceChannelRef
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, ProcessSessionFactory sessionFactory) throws ProcessException
onTrigger in interface ProcessoronTrigger in class AbstractFlumeProcessorProcessExceptionpublic void onTrigger(ProcessContext context, ProcessSession session) throws ProcessException
onTrigger in class AbstractFlumeProcessorProcessExceptionCopyright © 2017 Apache NiFi Project. All rights reserved.