public class DeliverBatchCommand 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 |
|---|
DeliverBatchCommand(String outputDirectory,
boolean overwriteExisting)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doCommit()
(non-Javadoc) Needs to move everything out of the temp directory to which
it was delivered, to its final destination
|
protected void |
doRollback() |
String |
getBatchFolder() |
String |
getTempDirectory() |
boolean |
isPutAttempted()
Accessor for putAttempted
|
protected ExecutionOutput |
performExecute()
execute method for subclasses to implement
|
void |
setIdGenerator(UniqueIdGenerator idGenerator)
allows the default id generator to be overridden
|
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, setXidpublic DeliverBatchCommand(String outputDirectory, boolean overwriteExisting)
outputDirectory - The directory we're delivering tooverwriteExisting - Whether we overwrite existing files or notprotected ExecutionOutput performExecute() throws javax.resource.ResourceException
AbstractBaseFileTransferTransactionalResourceCommandperformExecute in class AbstractBaseFileTransferTransactionalResourceCommandjavax.resource.ResourceException - -protected void doCommit()
throws javax.resource.ResourceException
doCommit in class AbstractTransactionalResourceCommandjavax.resource.ResourceExceptionAbstractTransactionalResourceCommand.doCommit()protected void doRollback()
throws javax.resource.ResourceException
doRollback in class AbstractTransactionalResourceCommandjavax.resource.ResourceExceptionpublic String getTempDirectory()
public String getBatchFolder()
public void setIdGenerator(UniqueIdGenerator idGenerator)
idGenerator - The id generatorpublic boolean isPutAttempted()
Copyright © 2007-2017 Ikasan. All Rights Reserved.