Interface FileTransfer
- All Superinterfaces:
AutoCloseable,Closeable
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.apache.nifi.components.PropertyDescriptorstatic final org.apache.nifi.components.PropertyDescriptorstatic final org.apache.nifi.components.AllowableValue[]static final Stringstatic final org.apache.nifi.components.AllowableValuestatic final Stringstatic final org.apache.nifi.components.AllowableValuestatic final Stringstatic final org.apache.nifi.components.AllowableValuestatic final Stringstatic final org.apache.nifi.components.AllowableValuestatic final Stringstatic final org.apache.nifi.components.AllowableValuestatic final Stringstatic final org.apache.nifi.components.AllowableValuestatic 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.PropertyDescriptorstatic final org.apache.nifi.components.PropertyDescriptorstatic final Stringstatic 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.PropertyDescriptorstatic 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.PropertyDescriptorstatic 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.PropertyDescriptorstatic final org.apache.nifi.components.PropertyDescriptorstatic final org.apache.nifi.components.PropertyDescriptorstatic final org.apache.nifi.components.PropertyDescriptorstatic final org.apache.nifi.components.PropertyDescriptor -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteDirectory(org.apache.nifi.flowfile.FlowFile flowFile, String remoteDirectoryName) voiddeleteFile(org.apache.nifi.flowfile.FlowFile flowFile, String path, String remoteFileName) voidensureDirectoryExists(org.apache.nifi.flowfile.FlowFile flowFile, File remoteDirectory) default StringgetAbsolutePath(org.apache.nifi.flowfile.FlowFile flowFile, String remotePath) Compute an absolute file path for the given remote path.getHomeDirectory(org.apache.nifi.flowfile.FlowFile flowFile) getListing(boolean applyFilters) org.apache.nifi.flowfile.FlowFilegetRemoteFile(String remoteFileName, org.apache.nifi.flowfile.FlowFile flowFile, org.apache.nifi.processor.ProcessSession session) getRemoteFileInfo(org.apache.nifi.flowfile.FlowFile flowFile, String path, String remoteFileName) booleanisClosed()put(org.apache.nifi.flowfile.FlowFile flowFile, String path, String filename, InputStream content) void
-
Field Details
-
HOSTNAME
static final org.apache.nifi.components.PropertyDescriptor HOSTNAME -
USERNAME
static final org.apache.nifi.components.PropertyDescriptor USERNAME -
PASSWORD
static final org.apache.nifi.components.PropertyDescriptor PASSWORD -
DATA_TIMEOUT
static final org.apache.nifi.components.PropertyDescriptor DATA_TIMEOUT -
CONNECTION_TIMEOUT
static final org.apache.nifi.components.PropertyDescriptor CONNECTION_TIMEOUT -
REMOTE_PATH
static final org.apache.nifi.components.PropertyDescriptor REMOTE_PATH -
CREATE_DIRECTORY
static final org.apache.nifi.components.PropertyDescriptor CREATE_DIRECTORY -
USE_COMPRESSION
static final org.apache.nifi.components.PropertyDescriptor USE_COMPRESSION -
RECURSIVE_SEARCH
static final org.apache.nifi.components.PropertyDescriptor RECURSIVE_SEARCH -
FOLLOW_SYMLINK
static final org.apache.nifi.components.PropertyDescriptor FOLLOW_SYMLINK -
FILE_FILTER_REGEX
static final org.apache.nifi.components.PropertyDescriptor FILE_FILTER_REGEX -
PATH_FILTER_REGEX
static final org.apache.nifi.components.PropertyDescriptor PATH_FILTER_REGEX -
MAX_SELECTS
static final org.apache.nifi.components.PropertyDescriptor MAX_SELECTS -
REMOTE_POLL_BATCH_SIZE
static final org.apache.nifi.components.PropertyDescriptor REMOTE_POLL_BATCH_SIZE -
DELETE_ORIGINAL
static final org.apache.nifi.components.PropertyDescriptor DELETE_ORIGINAL -
POLLING_INTERVAL
static final org.apache.nifi.components.PropertyDescriptor POLLING_INTERVAL -
IGNORE_DOTTED_FILES
static final org.apache.nifi.components.PropertyDescriptor IGNORE_DOTTED_FILES -
USE_NATURAL_ORDERING
static final org.apache.nifi.components.PropertyDescriptor USE_NATURAL_ORDERING -
FILE_MODIFY_DATE_ATTR_FORMAT
- See Also:
-
CONFLICT_RESOLUTION_REPLACE
- See Also:
-
CONFLICT_RESOLUTION_REPLACE_ALLOWABLE
static final org.apache.nifi.components.AllowableValue CONFLICT_RESOLUTION_REPLACE_ALLOWABLE -
CONFLICT_RESOLUTION_RENAME
- See Also:
-
CONFLICT_RESOLUTION_RENAME_ALLOWABLE
static final org.apache.nifi.components.AllowableValue CONFLICT_RESOLUTION_RENAME_ALLOWABLE -
CONFLICT_RESOLUTION_IGNORE
- See Also:
-
CONFLICT_RESOLUTION_IGNORE_ALLOWABLE
static final org.apache.nifi.components.AllowableValue CONFLICT_RESOLUTION_IGNORE_ALLOWABLE -
CONFLICT_RESOLUTION_REJECT
- See Also:
-
CONFLICT_RESOLUTION_REJECT_ALLOWABLE
static final org.apache.nifi.components.AllowableValue CONFLICT_RESOLUTION_REJECT_ALLOWABLE -
CONFLICT_RESOLUTION_FAIL
- See Also:
-
CONFLICT_RESOLUTION_FAIL_ALLOWABLE
static final org.apache.nifi.components.AllowableValue CONFLICT_RESOLUTION_FAIL_ALLOWABLE -
CONFLICT_RESOLUTION_NONE
- See Also:
-
CONFLICT_RESOLUTION_NONE_ALLOWABLE
static final org.apache.nifi.components.AllowableValue CONFLICT_RESOLUTION_NONE_ALLOWABLE -
CONFLICT_RESOLUTION_ALLOWABLE_VALUES
static final org.apache.nifi.components.AllowableValue[] CONFLICT_RESOLUTION_ALLOWABLE_VALUES -
CONFLICT_RESOLUTION
static final org.apache.nifi.components.PropertyDescriptor CONFLICT_RESOLUTION -
REJECT_ZERO_BYTE
static final org.apache.nifi.components.PropertyDescriptor REJECT_ZERO_BYTE -
DOT_RENAME
static final org.apache.nifi.components.PropertyDescriptor DOT_RENAME -
TEMP_FILENAME
static final org.apache.nifi.components.PropertyDescriptor TEMP_FILENAME -
LAST_MODIFIED_TIME
static final org.apache.nifi.components.PropertyDescriptor LAST_MODIFIED_TIME -
PERMISSIONS
static final org.apache.nifi.components.PropertyDescriptor PERMISSIONS -
REMOTE_OWNER
static final org.apache.nifi.components.PropertyDescriptor REMOTE_OWNER -
REMOTE_GROUP
static final org.apache.nifi.components.PropertyDescriptor REMOTE_GROUP -
BATCH_SIZE
static final org.apache.nifi.components.PropertyDescriptor BATCH_SIZE
-
-
Method Details
-
getHomeDirectory
- Throws:
IOException
-
getListing
- Throws:
IOException
-
getRemoteFile
org.apache.nifi.flowfile.FlowFile getRemoteFile(String remoteFileName, org.apache.nifi.flowfile.FlowFile flowFile, org.apache.nifi.processor.ProcessSession session) throws org.apache.nifi.processor.exception.ProcessException, IOException - Throws:
org.apache.nifi.processor.exception.ProcessExceptionIOException
-
getRemoteFileInfo
FileInfo getRemoteFileInfo(org.apache.nifi.flowfile.FlowFile flowFile, String path, String remoteFileName) throws IOException - Throws:
IOException
-
put
String put(org.apache.nifi.flowfile.FlowFile flowFile, String path, String filename, InputStream content) throws IOException - Throws:
IOException
-
rename
void rename(org.apache.nifi.flowfile.FlowFile flowFile, String source, String target) throws IOException - Throws:
IOException
-
deleteFile
void deleteFile(org.apache.nifi.flowfile.FlowFile flowFile, String path, String remoteFileName) throws IOException - Throws:
IOException
-
deleteDirectory
void deleteDirectory(org.apache.nifi.flowfile.FlowFile flowFile, String remoteDirectoryName) throws IOException - Throws:
IOException
-
isClosed
boolean isClosed() -
getProtocolName
String getProtocolName() -
ensureDirectoryExists
void ensureDirectoryExists(org.apache.nifi.flowfile.FlowFile flowFile, File remoteDirectory) throws IOException - Throws:
IOException
-
getAbsolutePath
default String getAbsolutePath(org.apache.nifi.flowfile.FlowFile flowFile, String remotePath) throws IOException Compute an absolute file path for the given remote path.- Parameters:
flowFile- is used to setup file transfer client with its attribute values, to get user home directoryremotePath- the target remote path- Returns:
- The absolute path for the given remote path
- Throws:
IOException
-