Class ListFileTransfer
java.lang.Object
org.apache.nifi.components.AbstractConfigurableComponent
org.apache.nifi.processor.AbstractSessionFactoryProcessor
org.apache.nifi.processor.AbstractProcessor
org.apache.nifi.processor.util.list.AbstractListProcessor<FileInfo>
org.apache.nifi.processor.util.file.transfer.ListFileTransfer
- All Implemented Interfaces:
org.apache.nifi.components.ConfigurableComponent,org.apache.nifi.processor.Processor,org.apache.nifi.processor.VerifiableProcessor
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.nifi.processor.util.list.AbstractListProcessor
AbstractListProcessor.ListingMode -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.apache.nifi.components.PropertyDescriptorstatic final org.apache.nifi.components.PropertyDescriptorstatic final org.apache.nifi.components.PropertyDescriptorstatic final org.apache.nifi.components.PropertyDescriptorstatic final org.apache.nifi.components.PropertyDescriptorFields inherited from class org.apache.nifi.processor.util.list.AbstractListProcessor
BY_ENTITIES, BY_TIME_WINDOW, BY_TIMESTAMPS, LISTING_LAG_MILLIS, LISTING_STRATEGY, NO_TRACKING, PRECISION_AUTO_DETECT, PRECISION_MILLIS, PRECISION_MINUTES, PRECISION_SECONDS, RECORD_WRITER, REL_SUCCESS, TARGET_SYSTEM_TIMESTAMP_PRECISION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected IntegercountUnfilteredListing(org.apache.nifi.processor.ProcessContext context) createAttributes(FileInfo fileInfo, org.apache.nifi.processor.ProcessContext context) protected abstract FileTransfergetFileTransfer(org.apache.nifi.processor.ProcessContext context) protected StringgetListingContainerName(org.apache.nifi.processor.ProcessContext context) protected StringgetPath(org.apache.nifi.processor.ProcessContext context) protected abstract Stringprotected RecordSchemaprotected booleanisListingResetNecessary(org.apache.nifi.components.PropertyDescriptor property) performListing(org.apache.nifi.processor.ProcessContext context, Long minTimestamp, AbstractListProcessor.ListingMode listingMode) performListing(org.apache.nifi.processor.ProcessContext context, Long minTimestamp, AbstractListProcessor.ListingMode listingMode, boolean applyFilters) Methods inherited from class org.apache.nifi.processor.util.list.AbstractListProcessor
createListedEntityTracker, customValidate, customValidate, getCurrentNanoTime, getCurrentTime, getDefaultTimePrecision, getKey, getRelationships, getStateScope, initListedEntityTracker, listByNoTracking, listByTimeWindow, listByTrackingTimestamps, migrateProperties, onPrimaryNodeChange, onPropertyModified, onTrigger, updateState, verifyMethods inherited from class org.apache.nifi.processor.AbstractProcessor
onTriggerMethods inherited from class org.apache.nifi.processor.AbstractSessionFactoryProcessor
getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, init, initialize, isConfigurationRestored, isScheduled, toString, updateConfiguredRestoredTrue, updateScheduledFalse, updateScheduledTrueMethods inherited from class org.apache.nifi.components.AbstractConfigurableComponent
equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, getSupportedPropertyDescriptors, hashCode, validateMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.nifi.components.ConfigurableComponent
getPropertyDescriptor, getPropertyDescriptors, validateMethods inherited from interface org.apache.nifi.processor.Processor
isStateful, migrateRelationships
-
Field Details
-
HOSTNAME
public static final org.apache.nifi.components.PropertyDescriptor HOSTNAME -
UNDEFAULTED_PORT
public static final org.apache.nifi.components.PropertyDescriptor UNDEFAULTED_PORT -
USERNAME
public static final org.apache.nifi.components.PropertyDescriptor USERNAME -
REMOTE_PATH
public static final org.apache.nifi.components.PropertyDescriptor REMOTE_PATH -
FILE_TRANSFER_LISTING_STRATEGY
public static final org.apache.nifi.components.PropertyDescriptor FILE_TRANSFER_LISTING_STRATEGY
-
-
Constructor Details
-
ListFileTransfer
public ListFileTransfer()
-
-
Method Details
-
createAttributes
protected Map<String,String> createAttributes(FileInfo fileInfo, org.apache.nifi.processor.ProcessContext context) - Specified by:
createAttributesin classAbstractListProcessor<FileInfo>
-
getPath
- Specified by:
getPathin classAbstractListProcessor<FileInfo>
-
countUnfilteredListing
protected Integer countUnfilteredListing(org.apache.nifi.processor.ProcessContext context) throws IOException - Specified by:
countUnfilteredListingin classAbstractListProcessor<FileInfo>- Throws:
IOException
-
performListing
protected List<FileInfo> performListing(org.apache.nifi.processor.ProcessContext context, Long minTimestamp, AbstractListProcessor.ListingMode listingMode) throws IOException - Specified by:
performListingin classAbstractListProcessor<FileInfo>- Throws:
IOException
-
performListing
protected List<FileInfo> performListing(org.apache.nifi.processor.ProcessContext context, Long minTimestamp, AbstractListProcessor.ListingMode listingMode, boolean applyFilters) throws IOException - Throws:
IOException
-
getListingContainerName
- Specified by:
getListingContainerNamein classAbstractListProcessor<FileInfo>
-
getRecordSchema
- Specified by:
getRecordSchemain classAbstractListProcessor<FileInfo>
-
isListingResetNecessary
protected boolean isListingResetNecessary(org.apache.nifi.components.PropertyDescriptor property) - Specified by:
isListingResetNecessaryin classAbstractListProcessor<FileInfo>
-
getFileTransfer
-
getProtocolName
-