T
- type of transferpublic abstract class PutFileTransfer<T extends FileTransfer> extends AbstractProcessor
Modifier and Type | Class and Description |
---|---|
private static class |
PutFileTransfer.ConflictResult
static inner class to hold conflict data
|
Modifier and Type | Field and Description |
---|---|
static Relationship |
REL_FAILURE |
static Relationship |
REL_REJECT |
static Relationship |
REL_SUCCESS |
private Set<Relationship> |
relationships |
Constructor and Description |
---|
PutFileTransfer() |
Modifier and Type | Method and Description |
---|---|
protected void |
afterPut(FlowFile flowFile,
ProcessContext context,
T transfer) |
protected void |
beforePut(FlowFile flowFile,
ProcessContext context,
T transfer) |
protected abstract T |
getFileTransfer(ProcessContext context) |
Set<Relationship> |
getRelationships() |
private PutFileTransfer.ConflictResult |
identifyAndResolveConflictFile(String conflictResolutionType,
T transfer,
String path,
FlowFile flowFile,
boolean rejectZeroByteFiles,
ComponentLog logger) |
void |
onTrigger(ProcessContext context,
ProcessSession session) |
onTrigger
getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, init, initialize, isConfigurationRestored, isScheduled, toString, updateConfiguredRestoredTrue, updateScheduledFalse, updateScheduledTrue
customValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, getSupportedPropertyDescriptors, hashCode, onPropertyModified, validate
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validate
public static final Relationship REL_SUCCESS
public static final Relationship REL_FAILURE
public static final Relationship REL_REJECT
private final Set<Relationship> relationships
public Set<Relationship> getRelationships()
getRelationships
in interface Processor
getRelationships
in class AbstractSessionFactoryProcessor
protected abstract T getFileTransfer(ProcessContext context)
protected void beforePut(FlowFile flowFile, ProcessContext context, T transfer) throws IOException
IOException
protected void afterPut(FlowFile flowFile, ProcessContext context, T transfer) throws IOException
IOException
public void onTrigger(ProcessContext context, ProcessSession session)
onTrigger
in class AbstractProcessor
private PutFileTransfer.ConflictResult identifyAndResolveConflictFile(String conflictResolutionType, T transfer, String path, FlowFile flowFile, boolean rejectZeroByteFiles, ComponentLog logger) throws IOException
IOException
Copyright © 2020 Apache NiFi Project. All rights reserved.