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) |
onTriggergetControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, init, initialize, isConfigurationRestored, isScheduled, toString, updateConfiguredRestoredTrue, updateScheduledFalse, updateScheduledTruecustomValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, getSupportedPropertyDescriptors, hashCode, onPropertyModified, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitisStatefulgetPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validatepublic 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 ProcessorgetRelationships in class AbstractSessionFactoryProcessorprotected abstract T getFileTransfer(ProcessContext context)
protected void beforePut(FlowFile flowFile, ProcessContext context, T transfer) throws IOException
IOExceptionprotected void afterPut(FlowFile flowFile, ProcessContext context, T transfer) throws IOException
IOExceptionpublic void onTrigger(ProcessContext context, ProcessSession session)
onTrigger in class AbstractProcessorprivate PutFileTransfer.ConflictResult identifyAndResolveConflictFile(String conflictResolutionType, T transfer, String path, FlowFile flowFile, boolean rejectZeroByteFiles, ComponentLog logger) throws IOException
IOExceptionCopyright © 2023 Apache NiFi Project. All rights reserved.