|
||||||||||
| 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.DeliverFileCommand
public class DeliverFileCommand
Delivers a specified payload to a remote directory
| Field Summary |
|---|
| 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 | |
|---|---|
DeliverFileCommand()
Default Constructor for Hibernate |
|
DeliverFileCommand(java.lang.String outputDirectory,
java.lang.String renameExtension,
boolean overwriteExisting)
Constructor |
|
| Method Summary | |
|---|---|
protected void |
doCommit()
Commit if file delivery is successful: rename file from its temporary name to actual name. |
protected void |
doRollback()
|
java.lang.String |
getFileName()
Accessor for FileName |
java.lang.String |
getOutputDirectory()
Get the output directory |
java.lang.String |
getTempFileName()
Accessor for tempFileName |
boolean |
isOverwriteExisting()
Check if we overwrite the existing file |
boolean |
isPutAttempted()
Accessor for putAttempted |
protected ExecutionOutput |
performExecute()
execute method for subclasses to implement |
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 |
| Constructor Detail |
|---|
public DeliverFileCommand()
public DeliverFileCommand(java.lang.String outputDirectory,
java.lang.String renameExtension,
boolean overwriteExisting)
outputDirectory - renameExtension - overwriteExisting - | Method Detail |
|---|
protected ExecutionOutput performExecute()
throws javax.resource.ResourceException
AbstractBaseFileTransferTransactionalResourceCommand
performExecute in class AbstractBaseFileTransferTransactionalResourceCommandjavax.resource.ResourceException - -
protected void doCommit()
throws javax.resource.ResourceException
doCommit in class AbstractTransactionalResourceCommandjavax.resource.ResourceException
protected void doRollback()
throws javax.resource.ResourceException
doRollback in class AbstractTransactionalResourceCommandjavax.resource.ResourceExceptionpublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public java.lang.String getFileName()
public java.lang.String getTempFileName()
public boolean isPutAttempted()
public java.lang.String getOutputDirectory()
public boolean isOverwriteExisting()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||