@EventDriven @SupportsBatching @Tags(value={"command execution","command","stream","execute"}) @CapabilityDescription(value="Executes an external command on the contents of a flow file, and creates a new flow file with the results of the command.") public class ExecuteStreamCommand extends AbstractProcessor
This processor executes an external command on the contents of a flow file, and creates a new flow file with the results of the command.
Properties:
Relationships:
Modifier and Type | Class and Description |
---|---|
(package private) static class |
ExecuteStreamCommand.StdInWriterCallback |
Modifier and Type | Field and Description |
---|---|
private static Validator |
ATTRIBUTE_EXPRESSION_LANGUAGE_VALIDATOR |
(package private) static PropertyDescriptor |
EXECUTION_ARGUMENTS |
(package private) static PropertyDescriptor |
EXECUTION_COMMAND |
private ProcessorLog |
logger |
static Relationship |
ORIGINAL_RELATIONSHIP |
static Relationship |
OUTPUT_STREAM_RELATIONSHIP |
private static List<PropertyDescriptor> |
PROPERTIES |
private static Set<Relationship> |
RELATIONSHIPS |
(package private) static PropertyDescriptor |
WORKING_DIR |
Constructor and Description |
---|
ExecuteStreamCommand() |
Modifier and Type | Method and Description |
---|---|
Set<Relationship> |
getRelationships() |
List<PropertyDescriptor> |
getSupportedPropertyDescriptors() |
protected void |
init(ProcessorInitializationContext context) |
void |
onTrigger(ProcessContext context,
ProcessSession session) |
onTrigger
getControllerServiceLookup, getIdentifier, getLogger, initialize, isScheduled, toString, updateScheduledFalse, updateScheduledTrue
customValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, validate
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validate
public static final Relationship ORIGINAL_RELATIONSHIP
public static final Relationship OUTPUT_STREAM_RELATIONSHIP
private static final Set<Relationship> RELATIONSHIPS
private static final Validator ATTRIBUTE_EXPRESSION_LANGUAGE_VALIDATOR
static final PropertyDescriptor EXECUTION_COMMAND
static final PropertyDescriptor EXECUTION_ARGUMENTS
static final PropertyDescriptor WORKING_DIR
private static final List<PropertyDescriptor> PROPERTIES
private ProcessorLog logger
public Set<Relationship> getRelationships()
getRelationships
in interface Processor
getRelationships
in class AbstractSessionFactoryProcessor
protected void init(ProcessorInitializationContext context)
init
in class AbstractSessionFactoryProcessor
public List<PropertyDescriptor> getSupportedPropertyDescriptors()
getSupportedPropertyDescriptors
in class AbstractConfigurableComponent
public void onTrigger(ProcessContext context, ProcessSession session) throws ProcessException
onTrigger
in class AbstractProcessor
ProcessException
Copyright © 2015 Apache NiFi (incubating). All rights reserved.