public class ChecksumValidatorCommand extends AbstractBaseFileTransferTransactionalResourceCommand
| Modifier and Type | Field and Description |
|---|---|
protected String |
checksumFilePath
The path of the checksum file we are validating against
|
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 |
|---|
ChecksumValidatorCommand()
Default constructor for Hibernate
|
ChecksumValidatorCommand(ChecksumSupplier checksumFileParser,
boolean destructive,
String checksumFilePath)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doCommit() |
protected void |
doRollback() |
String |
getChecksumFilePath()
Accessor method for checksum file path
|
boolean |
isDestructive()
Do we delete the file on successful delivery?
|
protected ExecutionOutput |
performExecute()
execute method for subclasses to implement
|
void |
setDestructive(boolean destructive)
Setter method to allow the destructive flag to be set later than construction
|
void |
setSkip(boolean skip)
Setter method to allow the skip flag to be set later than construction
|
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 String checksumFilePath
public ChecksumValidatorCommand()
public ChecksumValidatorCommand(ChecksumSupplier checksumFileParser, boolean destructive, String checksumFilePath)
checksumFileParser - The checksum file parserdestructive - Whether it's a destructive readchecksumFilePath - THe path of where the checksum file isprotected void doCommit()
throws javax.resource.ResourceException
doCommit in class AbstractTransactionalResourceCommandjavax.resource.ResourceExceptionprotected ExecutionOutput performExecute() throws javax.resource.ResourceException
AbstractBaseFileTransferTransactionalResourceCommandperformExecute in class AbstractBaseFileTransferTransactionalResourceCommandjavax.resource.ResourceException - -protected void doRollback()
doRollback in class AbstractTransactionalResourceCommandpublic void setSkip(boolean skip)
skip - skip flag to setpublic boolean isDestructive()
public void setDestructive(boolean destructive)
destructive - destructive flag to setpublic String getChecksumFilePath()
Copyright © 2007-2017 Ikasan. All Rights Reserved.