public class DeliverFileCommand extends AbstractBaseFileTransferTransactionalResourceCommand
CURRENT_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 |
|---|
DeliverFileCommand()
Default Constructor for Hibernate
|
DeliverFileCommand(String outputDirectory,
String renameExtension,
boolean overwriteExisting,
boolean createParentDirectory,
String tempFileName)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doCommit()
Commit if file delivery is successful: rename file from its temporary name to actual name.
|
protected void |
doRollback() |
String |
getFileName()
Accessor for FileName
|
String |
getOutputDirectory()
Get the output directory
|
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
|
String |
toString() |
addListener, 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, setXidprotected ExecutionOutput performExecute() throws javax.resource.ResourceException
AbstractBaseFileTransferTransactionalResourceCommandperformExecute in class AbstractBaseFileTransferTransactionalResourceCommandjavax.resource.ResourceException - -protected void doCommit()
throws javax.resource.ResourceException
doCommit in class AbstractTransactionalResourceCommandjavax.resource.ResourceExceptionprotected void doRollback()
throws javax.resource.ResourceException
doRollback in class AbstractTransactionalResourceCommandjavax.resource.ResourceExceptionpublic String toString()
toString in class ObjectObject.toString()public String getFileName()
public String getTempFileName()
public boolean isPutAttempted()
public String getOutputDirectory()
public boolean isOverwriteExisting()
Copyright © 2007-2017 Ikasan. All Rights Reserved.