org.ikasan.connector.basefiletransfer.outbound.command
Class FileDiscoveryCommand
java.lang.Object
org.ikasan.connector.base.command.AbstractTransactionalResourceCommand
org.ikasan.connector.basefiletransfer.outbound.command.AbstractBaseFileTransferTransactionalResourceCommand
org.ikasan.connector.basefiletransfer.outbound.command.FileDiscoveryCommand
- All Implemented Interfaces:
- TransactionalResourceCommand
public class FileDiscoveryCommand
- extends AbstractBaseFileTransferTransactionalResourceCommand
Discovers new files from a remote browsable directory
- Author:
- Ikasan Development Team
|
Constructor Summary |
FileDiscoveryCommand()
No args constructor as required by Hibernate |
FileDiscoveryCommand(java.lang.String sourceDirectory,
java.lang.String filenamePattern,
BaseFileTransferDao persistence,
long minAge,
boolean filterDuplicates,
boolean filterOnFilename,
boolean filterOnLastModifiedDate)
Constructor |
| 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 |
FileDiscoveryCommand
public FileDiscoveryCommand()
- No args constructor as required by Hibernate
FileDiscoveryCommand
public FileDiscoveryCommand(java.lang.String sourceDirectory,
java.lang.String filenamePattern,
BaseFileTransferDao persistence,
long minAge,
boolean filterDuplicates,
boolean filterOnFilename,
boolean filterOnLastModifiedDate)
- Constructor
- Parameters:
sourceDirectory - The directory we're picking up the file fromfilenamePattern - The pattern to search forpersistence - The DAO persistence classminAge - The minimum age of the filefilterDuplicates - Whether we filter duplicatesfilterOnFilename - Whether we filter on file namefilterOnLastModifiedDate - Whether we filter on the last modified date
doCommit
protected void doCommit()
- Specified by:
doCommit in class AbstractTransactionalResourceCommand
performExecute
protected ExecutionOutput performExecute()
throws javax.resource.ResourceException
- Description copied from class:
AbstractBaseFileTransferTransactionalResourceCommand
- execute method for subclasses to implement
- Specified by:
performExecute in class AbstractBaseFileTransferTransactionalResourceCommand
- Returns:
- ExecutionOutput
- Throws:
javax.resource.ResourceException - -
doRollback
protected void doRollback()
- Specified by:
doRollback in class AbstractTransactionalResourceCommand
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
- See Also:
Object.toString()
Copyright © 2007-2010 Ikasan. All Rights Reserved.