|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ikasan.connector.base.command.AbstractTransactionalResourceCommand
org.ikasan.connector.basefiletransfer.outbound.command.AbstractBaseFileTransferTransactionalResourceCommand
org.ikasan.connector.basefiletransfer.outbound.command.RetrieveFileCommand
public class RetrieveFileCommand
Retrieves a specified file from a remote directory
| Field Summary | |
|---|---|
protected BaseFileTransferDao |
dao
Data Access Object for Base File Transfer |
protected boolean |
destructive
Whether or not to destroy the file after we pick it up |
protected java.lang.String |
renameExtension
Extension with which to rename successfully retrieved files |
protected boolean |
renameOnSuccess
Rename the file on successful retrieval |
protected java.lang.String |
sourcePath
The original source path of the file we are retrieving |
| Fields inherited from class org.ikasan.connector.basefiletransfer.outbound.command.AbstractBaseFileTransferTransactionalResourceCommand |
|---|
CURRENT_DIRECTORY, EOL, fileSeparator |
| Fields inherited from class org.ikasan.connector.base.command.AbstractTransactionalResourceCommand |
|---|
COMMIT_IN_PROGRESS, COMPLETED_COMMITTING, EXECUTED_STATE, EXECUTION_IN_PROGRESS, executionContext, INITIALISED_STATE, ROLLBACK_IN_PROGRESS, ROLLED_BACK_STATE, transactionalResource |
| Constructor Summary | |
|---|---|
protected |
RetrieveFileCommand()
No args constructor required by Hibernate |
|
RetrieveFileCommand(BaseFileTransferDao dao,
boolean renameOnSuccess,
java.lang.String renameExtension,
boolean moveOnSuccess,
java.lang.String moveOnSuccessNewPath,
boolean destructive)
Constructor |
| Method Summary | |
|---|---|
protected void |
doCommit()
(non-Javadoc) |
protected void |
doRollback()
(non-Javadoc) |
java.lang.String |
getMoveNewPath()
Get the new path a file is being moved to. |
java.lang.String |
getRenameExtension()
Get the extension that we'rerenaming the file with |
java.lang.String |
getSourcePath()
Accessor method for source path |
boolean |
isDestructive()
Do we delete the file on successful delivery? |
boolean |
isMoveOnSuccess()
Do we move the file on successful delivery? |
boolean |
isRenameOnSuccess()
Do we rename the file on successful delivery? |
protected ExecutionOutput |
performExecute()
(non-Javadoc) |
java.lang.String |
toString()
|
| Methods inherited from class org.ikasan.connector.basefiletransfer.outbound.command.AbstractBaseFileTransferTransactionalResourceCommand |
|---|
changeDirectory, deleteDir, deleteFile, doExecute, findFile, getClient, getContentAsStream, getFile, getFile, listDirectory, logFileList, printWorkingDirectoryName, putFile, putWithOutputStream, renameFile |
| Methods inherited from class org.ikasan.connector.base.command.AbstractTransactionalResourceCommand |
|---|
commit, execute, getBeanFactory, getExecutionTimestamp, getId, getState, getXid, rollback, setBeanFactory, setExecutionContext, setTransactionalResource, setTransactionJournal, setXid |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected BaseFileTransferDao dao
protected java.lang.String sourcePath
protected boolean renameOnSuccess
protected java.lang.String renameExtension
protected boolean destructive
| Constructor Detail |
|---|
protected RetrieveFileCommand()
public RetrieveFileCommand(BaseFileTransferDao dao,
boolean renameOnSuccess,
java.lang.String renameExtension,
boolean moveOnSuccess,
java.lang.String moveOnSuccessNewPath,
boolean destructive)
dao - hibernateDAOrenameOnSuccess - flagrenameExtension - to rename filemoveOnSuccess - flagmoveOnSuccessNewPath - to move filedestructive - flag| Method Detail |
|---|
protected ExecutionOutput performExecute()
throws javax.resource.ResourceException
performExecute in class AbstractBaseFileTransferTransactionalResourceCommandjavax.resource.ResourceException - -AbstractBaseFileTransferTransactionalResourceCommand.performExecute()
protected void doCommit()
throws javax.resource.ResourceException
doCommit in class AbstractTransactionalResourceCommandjavax.resource.ResourceExceptionAbstractTransactionalResourceCommand.doCommit()protected void doRollback()
doRollback in class AbstractTransactionalResourceCommandAbstractTransactionalResourceCommand.doRollback()public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public java.lang.String getSourcePath()
public boolean isRenameOnSuccess()
public java.lang.String getRenameExtension()
public boolean isDestructive()
public boolean isMoveOnSuccess()
public java.lang.String getMoveNewPath()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||