public abstract class GetFileTransfer extends AbstractProcessor
| Modifier and Type | Field and Description |
|---|---|
static String |
FILE_GROUP_ATTRIBUTE |
static String |
FILE_LAST_MODIFY_TIME_ATTRIBUTE |
static String |
FILE_MODIFY_DATE_ATTR_FORMAT |
static String |
FILE_OWNER_ATTRIBUTE |
static String |
FILE_PERMISSIONS_ATTRIBUTE |
private AtomicReference<BlockingQueue<FileInfo>> |
fileQueueRef |
private AtomicLong |
lastPollTime |
private Lock |
listingLock |
private Lock |
mutuallyExclusiveTransferLock |
private Set<FileInfo> |
processing |
static Relationship |
REL_SUCCESS |
private Set<Relationship> |
relationships |
private Lock |
sharableTransferLock |
private ReadWriteLock |
transferLock |
| Constructor and Description |
|---|
GetFileTransfer() |
| Modifier and Type | Method and Description |
|---|---|
private void |
closeTransfer(FileTransfer transfer,
String hostname) |
private void |
deleteRemote(FileTransfer fileTransfer,
Map<FlowFile,String> flowFileToRemoteFileMapping) |
private void |
fetchListing(ProcessContext context,
ProcessSession session,
FileTransfer transfer) |
protected Map<String,String> |
getAttributesFromFile(FileInfo info) |
protected abstract FileTransfer |
getFileTransfer(ProcessContext context) |
Set<Relationship> |
getRelationships() |
void |
onScheduled(ProcessContext context) |
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
private final Set<Relationship> relationships
public static final String FILE_LAST_MODIFY_TIME_ATTRIBUTE
public static final String FILE_OWNER_ATTRIBUTE
public static final String FILE_GROUP_ATTRIBUTE
public static final String FILE_PERMISSIONS_ATTRIBUTE
public static final String FILE_MODIFY_DATE_ATTR_FORMAT
private final AtomicLong lastPollTime
private final Lock listingLock
private final AtomicReference<BlockingQueue<FileInfo>> fileQueueRef
private final ReadWriteLock transferLock
private final Lock sharableTransferLock
private final Lock mutuallyExclusiveTransferLock
public Set<Relationship> getRelationships()
getRelationships in interface ProcessorgetRelationships in class AbstractSessionFactoryProcessorprotected abstract FileTransfer getFileTransfer(ProcessContext context)
@OnScheduled public void onScheduled(ProcessContext context)
public void onTrigger(ProcessContext context, ProcessSession session)
onTrigger in class AbstractProcessorprivate void deleteRemote(FileTransfer fileTransfer, Map<FlowFile,String> flowFileToRemoteFileMapping)
private void closeTransfer(FileTransfer transfer, String hostname)
private void fetchListing(ProcessContext context, ProcessSession session, FileTransfer transfer) throws IOException
IOExceptionCopyright © 2023 Apache NiFi Project. All rights reserved.