public interface FileTransfer extends Closeable
Modifier and Type | Method and Description |
---|---|
void |
deleteDirectory(FlowFile flowFile,
String remoteDirectoryName) |
void |
deleteFile(FlowFile flowFile,
String path,
String remoteFileName) |
void |
ensureDirectoryExists(FlowFile flowFile,
File remoteDirectory) |
default String |
getAbsolutePath(FlowFile flowFile,
String remotePath)
Compute an absolute file path for the given remote path.
|
String |
getHomeDirectory(FlowFile flowFile) |
List<FileInfo> |
getListing() |
String |
getProtocolName() |
FlowFile |
getRemoteFile(String remoteFileName,
FlowFile flowFile,
ProcessSession session) |
FileInfo |
getRemoteFileInfo(FlowFile flowFile,
String path,
String remoteFileName) |
boolean |
isClosed() |
String |
put(FlowFile flowFile,
String path,
String filename,
InputStream content) |
void |
rename(FlowFile flowFile,
String source,
String target) |
static final PropertyDescriptor HOSTNAME
static final PropertyDescriptor USERNAME
static final PropertyDescriptor PASSWORD
static final PropertyDescriptor DATA_TIMEOUT
static final PropertyDescriptor CONNECTION_TIMEOUT
static final PropertyDescriptor REMOTE_PATH
static final PropertyDescriptor CREATE_DIRECTORY
static final PropertyDescriptor USE_COMPRESSION
static final PropertyDescriptor RECURSIVE_SEARCH
static final PropertyDescriptor FOLLOW_SYMLINK
static final PropertyDescriptor FILE_FILTER_REGEX
static final PropertyDescriptor PATH_FILTER_REGEX
static final PropertyDescriptor MAX_SELECTS
static final PropertyDescriptor REMOTE_POLL_BATCH_SIZE
static final PropertyDescriptor DELETE_ORIGINAL
static final PropertyDescriptor POLLING_INTERVAL
static final PropertyDescriptor IGNORE_DOTTED_FILES
static final PropertyDescriptor USE_NATURAL_ORDERING
static final String FILE_MODIFY_DATE_ATTR_FORMAT
static final String CONFLICT_RESOLUTION_REPLACE
static final String CONFLICT_RESOLUTION_RENAME
static final String CONFLICT_RESOLUTION_IGNORE
static final String CONFLICT_RESOLUTION_REJECT
static final String CONFLICT_RESOLUTION_FAIL
static final String CONFLICT_RESOLUTION_NONE
static final PropertyDescriptor CONFLICT_RESOLUTION
static final PropertyDescriptor REJECT_ZERO_BYTE
static final PropertyDescriptor DOT_RENAME
static final PropertyDescriptor TEMP_FILENAME
static final PropertyDescriptor LAST_MODIFIED_TIME
static final PropertyDescriptor PERMISSIONS
static final PropertyDescriptor REMOTE_OWNER
static final PropertyDescriptor REMOTE_GROUP
static final PropertyDescriptor BATCH_SIZE
String getHomeDirectory(FlowFile flowFile) throws IOException
IOException
List<FileInfo> getListing() throws IOException
IOException
FlowFile getRemoteFile(String remoteFileName, FlowFile flowFile, ProcessSession session) throws ProcessException, IOException
ProcessException
IOException
FileInfo getRemoteFileInfo(FlowFile flowFile, String path, String remoteFileName) throws IOException
IOException
String put(FlowFile flowFile, String path, String filename, InputStream content) throws IOException
IOException
void rename(FlowFile flowFile, String source, String target) throws IOException
IOException
void deleteFile(FlowFile flowFile, String path, String remoteFileName) throws IOException
IOException
void deleteDirectory(FlowFile flowFile, String remoteDirectoryName) throws IOException
IOException
boolean isClosed()
String getProtocolName()
void ensureDirectoryExists(FlowFile flowFile, File remoteDirectory) throws IOException
IOException
default String getAbsolutePath(FlowFile flowFile, String remotePath) throws IOException
flowFile
- is used to setup file transfer client with its attribute values, to get user home directoryremotePath
- the target remote pathIOException
Copyright © 2020 Apache NiFi Project. All rights reserved.