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