public class FileDiscoveryCommand 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 |
|---|
FileDiscoveryCommand()
No args constructor as required by Hibernate
|
FileDiscoveryCommand(String sourceDirectory,
String filenamePattern,
BaseFileTransferDao persistence,
long minAge,
boolean filterDuplicates,
boolean filterOnFilename,
boolean filterOnLastModifiedDate,
boolean isRecursive)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doCommit() |
protected void |
doRollback() |
protected List<ClientListEntry> |
listDirectory(String directory,
List<ClientListEntry> allFiles) |
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, setXidpublic FileDiscoveryCommand()
public FileDiscoveryCommand(String sourceDirectory, String filenamePattern, BaseFileTransferDao persistence, long minAge, boolean filterDuplicates, boolean filterOnFilename, boolean filterOnLastModifiedDate, boolean isRecursive)
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 dateprotected void doCommit()
doCommit in class AbstractTransactionalResourceCommandprotected ExecutionOutput performExecute() throws javax.resource.ResourceException
AbstractBaseFileTransferTransactionalResourceCommandperformExecute in class AbstractBaseFileTransferTransactionalResourceCommandjavax.resource.ResourceException - -protected void doRollback()
doRollback in class AbstractTransactionalResourceCommandprotected List<ClientListEntry> listDirectory(String directory, List<ClientListEntry> allFiles) throws javax.resource.ResourceException
javax.resource.ResourceExceptionpublic String toString()
toString in class ObjectObject.toString()Copyright © 2007-2017 Ikasan. All Rights Reserved.