|
||||||||||
| 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.ChecksumValidatorCommand
public class ChecksumValidatorCommand
Command for comparing the calculated checksum of a retrieved file with that provided by the remote system, if any
| Field Summary | |
|---|---|
protected java.lang.String |
checksumFilePath
The path of the checksum file we are validating against |
| 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 | |
|---|---|
ChecksumValidatorCommand()
Default constructor for Hibernate |
|
ChecksumValidatorCommand(ChecksumSupplier checksumFileParser,
boolean destructive,
java.lang.String checksumFilePath)
Constructor |
|
| Method Summary | |
|---|---|
protected void |
doCommit()
|
protected void |
doRollback()
|
java.lang.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 |
| 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, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String checksumFilePath
| Constructor Detail |
|---|
public ChecksumValidatorCommand()
public ChecksumValidatorCommand(ChecksumSupplier checksumFileParser,
boolean destructive,
java.lang.String checksumFilePath)
checksumFileParser - The checksum file parserdestructive - Whether it's a destructive readchecksumFilePath - THe path of where the checksum file is| Method Detail |
|---|
protected void doCommit()
throws javax.resource.ResourceException
doCommit in class AbstractTransactionalResourceCommandjavax.resource.ResourceException
protected ExecutionOutput performExecute()
throws javax.resource.ResourceException
AbstractBaseFileTransferTransactionalResourceCommand
performExecute 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 java.lang.String getChecksumFilePath()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||