public class ChunkingRetrieveFileCommand extends RetrieveFileCommand implements ChunkableDataProvider
dao, destructive, renameExtension, renameOnSuccess, renameTimestampExtensionPattern, sourcePathCURRENT_DIRECTORY, EOL, fileSeparator, listenersCOMMIT_IN_PROGRESS, COMPLETED_COMMITTING, EXECUTED_STATE, EXECUTION_IN_PROGRESS, executionContext, INITIALISED_STATE, ROLLBACK_IN_PROGRESS, ROLLED_BACK_STATE, transactionalResource| Constructor and Description |
|---|
ChunkingRetrieveFileCommand(BaseFileTransferDao dao,
String clientId,
boolean renameOnSuccess,
String renameExtension,
boolean moveOnSuccess,
String moveNewPath,
FileChunkDao fileChunkDao,
int chunkSize,
boolean destructive)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
connect() |
void |
disconnect() |
long |
getFileSize(String remoteDir,
String fileName) |
String |
getSourcePath()
Accessor method for source path
|
protected ExecutionOutput |
performExecute()
(non-Javadoc)
|
InputStream |
sourceChunkableData(String remoteDir,
String fileName) |
void |
sourceChunkableData(String remoteDir,
String fileName,
OutputStream outputStream,
long offset) |
String |
toString() |
doCommit, doRollback, expandRenameExtension, getMoveNewPath, getRenameExtension, isDestructive, isMoveOnSuccess, isRenameOnSuccess, parseTimestampFormat, setRenameExtensionaddListener, changeDirectory, deleteDir, deleteFile, doExecute, findFile, getClient, getContentAsStream, getFile, getFile, listDirectory, logFileList, notifyListeners, printWorkingDirectoryName, putFile, putWithOutputStream, renameFilecommit, execute, getBeanFactory, getExecutionTimestamp, getId, getState, getXid, rollback, setBeanFactory, setExecutionContext, setTransactionalResource, setTransactionJournal, setXidpublic ChunkingRetrieveFileCommand(BaseFileTransferDao dao, String clientId, boolean renameOnSuccess, String renameExtension, boolean moveOnSuccess, String moveNewPath, FileChunkDao fileChunkDao, int chunkSize, boolean destructive)
dao - clientId - renameOnSuccess - renameExtension - moveOnSuccess - moveNewPath - fileChunkDao - chunkSize - destructive - protected ExecutionOutput performExecute() throws javax.resource.ResourceException
RetrieveFileCommandperformExecute in class RetrieveFileCommandjavax.resource.ResourceException - -AbstractBaseFileTransferTransactionalResourceCommand.performExecute()public String toString()
toString in class RetrieveFileCommandObject.toString()public String getSourcePath()
getSourcePath in class RetrieveFileCommandpublic void connect()
connect in interface ChunkableDataProviderpublic void disconnect()
disconnect in interface ChunkableDataProviderpublic long getFileSize(String remoteDir, String fileName) throws ChunkableDataSourceException
getFileSize in interface ChunkableDataProviderChunkableDataSourceExceptionpublic InputStream sourceChunkableData(String remoteDir, String fileName) throws ChunkableDataSourceException
sourceChunkableData in interface ChunkableDataProviderChunkableDataSourceExceptionpublic void sourceChunkableData(String remoteDir, String fileName, OutputStream outputStream, long offset) throws ChunkableDataSourceException
sourceChunkableData in interface ChunkableDataProviderChunkableDataSourceExceptionCopyright © 2007-2017 Ikasan. All Rights Reserved.