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) |
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
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 Processor
getRelationships
in class AbstractSessionFactoryProcessor
protected abstract FileTransfer getFileTransfer(ProcessContext context)
@OnScheduled public void onScheduled(ProcessContext context)
public void onTrigger(ProcessContext context, ProcessSession session)
onTrigger
in class AbstractProcessor
private 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
IOException
Copyright © 2021 Apache NiFi Project. All rights reserved.