org.jboss.soa.esb.listeners.gateway
Class AbstractFileGateway
java.lang.Object
org.jboss.soa.esb.listeners.lifecycle.AbstractManagedLifecycle
org.jboss.soa.esb.listeners.lifecycle.AbstractThreadedManagedLifecycle
org.jboss.soa.esb.listeners.gateway.AbstractFileGateway
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Runnable, ManagedLifecycle
- Direct Known Subclasses:
- FileGatewayListener
public abstract class AbstractFileGateway
- extends AbstractThreadedManagedLifecycle
Base class for all file gateways: local filesystem, ftp, sftp and ftps.
Implementations for file manipulation (getFileList, getFileContents,
renameFile and deleteFile) must be provided by factory
- Since:
- Version 4.0
- Author:
- schifest@heuristica.com.ar
- See Also:
- Serialized Form
|
Method Summary |
protected void |
doDestroy()
Handle the destroy of the managed instance. |
protected void |
doInitialise()
Handle the initialisation of the managed instance. |
protected void |
doRun()
Execute on the thread. |
protected void |
resolveComposerClass()
|
| Methods inherited from class org.jboss.soa.esb.listeners.lifecycle.AbstractThreadedManagedLifecycle |
addManagedLifecycleThreadEventListener, doStart, doStop, isRunning, isStopped, isStopping, removeManagedLifecycleThreadEventListener, run, setRunning, waitForRunningStateChange, waitUntilStopped, waitUntilStopped |
| Methods inherited from class org.jboss.soa.esb.listeners.lifecycle.AbstractManagedLifecycle |
addManagedLifecycleEventListener, changeState, destroy, getState, getTerminationPeriod, initialise, removeManagedLifecycleEventListener, start, stop, waitUntilDestroyed, waitUntilDestroyed, waitUntilNotState, waitUntilState |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_logger
protected static final org.apache.log4j.Logger _logger
_config
protected ConfigTree _config
_sleepBetweenPolls
protected long _sleepBetweenPolls
_targetServiceCategory
protected java.lang.String _targetServiceCategory
_targetServiceName
protected java.lang.String _targetServiceName
_targetEprs
protected java.util.Collection<EPR> _targetEprs
_composerName
protected java.lang.String _composerName
_composerClass
protected java.lang.Class _composerClass
_composer
protected java.lang.Object _composer
_processMethod
protected java.lang.reflect.Method _processMethod
_courier
protected Courier _courier
_deleteAfterOK
protected boolean _deleteAfterOK
_inputDirectory
protected java.io.File _inputDirectory
_errorDirectory
protected java.io.File _errorDirectory
_postProcessDirectory
protected java.io.File _postProcessDirectory
_inputSuffix
protected java.lang.String _inputSuffix
_postProcessSuffix
protected java.lang.String _postProcessSuffix
_workingSuffix
protected java.lang.String _workingSuffix
_errorSuffix
protected java.lang.String _errorSuffix
_fileFilter
protected java.io.FileFilter _fileFilter
AbstractFileGateway
protected AbstractFileGateway(ConfigTree config)
throws ConfigurationException,
RegistryException,
GatewayException
- Throws:
ConfigurationException
RegistryException
GatewayException
doInitialise
protected void doInitialise()
throws ManagedLifecycleException
- Handle the initialisation of the managed instance.
- Specified by:
doInitialise in class AbstractManagedLifecycle
- Throws:
ManagedLifecycleException - for errors while initialisation.
doRun
protected void doRun()
- Execute on the thread.
- Specified by:
doRun in class AbstractThreadedManagedLifecycle
doDestroy
protected void doDestroy()
throws ManagedLifecycleException
- Handle the destroy of the managed instance.
- Overrides:
doDestroy in class AbstractThreadedManagedLifecycle
- Throws:
ManagedLifecycleException - for errors while destroying.
resolveComposerClass
protected void resolveComposerClass()
throws ConfigurationException,
GatewayException
- Throws:
ConfigurationException
GatewayException