|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.soa.esb.listeners.lifecycle.AbstractManagedLifecycle org.jboss.soa.esb.listeners.gateway.AbstractFileGateway
public abstract class AbstractFileGateway
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
Field Summary | |
---|---|
protected boolean |
_deleteAfterOK
|
protected java.io.File |
_errorDirectory
|
protected java.lang.String |
_errorSuffix
|
protected java.io.FileFilter |
_fileFilter
|
protected java.io.File |
_inputDirectory
|
protected java.lang.String |
_inputSuffix
|
protected static org.apache.log4j.Logger |
_logger
|
protected long |
_maxMillisForResponse
|
protected java.io.File |
_postProcessDirectory
|
protected java.lang.String |
_postProcessSuffix
|
protected boolean |
_renameAfterOK
|
protected java.lang.String |
_workingSuffix
|
protected ConfigTree |
config
|
protected MessageComposer |
messageComposer
|
protected ServiceInvoker |
serviceInvoker
|
protected Service |
targetService
|
Fields inherited from class org.jboss.soa.esb.listeners.lifecycle.AbstractManagedLifecycle |
---|
PARAM_TERMINATION_PERIOD |
Constructor Summary | |
---|---|
protected |
AbstractFileGateway(ConfigTree config)
|
Method Summary | |
---|---|
protected void |
checkInputSuffix()
|
protected void |
doDestroy()
Handle the destroy of the managed instance. |
protected void |
doInitialise()
Handle the initialisation of the managed instance. |
protected void |
doStart()
Handle the start of the managed instance. |
protected void |
doStop()
Handle the stop of the managed instance. |
protected void |
doThreadedDestroy()
Handle the threaded destroy of the managed instance. |
static java.io.File |
getFileInputDirectory(ConfigTree config)
|
protected java.io.File |
getWorkFileName(java.io.File fileIn,
java.lang.String suffix)
|
void |
initialize(ConfigTree config)
Initialize. |
void |
onSchedule()
Execute on trigger from the scheduler. |
protected java.io.File |
setFileWorking(java.io.File file)
|
void |
uninitialize()
Uninitialize. |
Methods inherited from class org.jboss.soa.esb.listeners.lifecycle.AbstractManagedLifecycle |
---|
addManagedLifecycleEventListener, changeState, destroy, getConfig, 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 |
Field Detail |
---|
protected static final org.apache.log4j.Logger _logger
protected ConfigTree config
protected long _maxMillisForResponse
protected Service targetService
protected ServiceInvoker serviceInvoker
protected MessageComposer messageComposer
protected boolean _deleteAfterOK
protected boolean _renameAfterOK
protected java.io.File _inputDirectory
protected java.io.File _errorDirectory
protected java.io.File _postProcessDirectory
protected java.lang.String _inputSuffix
protected java.lang.String _postProcessSuffix
protected java.lang.String _workingSuffix
protected java.lang.String _errorSuffix
protected java.io.FileFilter _fileFilter
Constructor Detail |
---|
protected AbstractFileGateway(ConfigTree config) throws ConfigurationException, RegistryException, GatewayException
ConfigurationException
RegistryException
GatewayException
Method Detail |
---|
protected void doInitialise() throws ManagedLifecycleException
doInitialise
in class AbstractManagedLifecycle
ManagedLifecycleException
- for errors while initialisation.public void initialize(ConfigTree config) throws ConfigurationException
Initializable
initialize
in interface Initializable
config
- The configuration.
ConfigurationException
public void uninitialize()
Initializable
uninitialize
in interface Initializable
protected void doStart() throws ManagedLifecycleException
AbstractManagedLifecycle
doStart
in class AbstractManagedLifecycle
ManagedLifecycleException
- for errors while starting.protected void doStop() throws ManagedLifecycleException
AbstractManagedLifecycle
doStop
in class AbstractManagedLifecycle
ManagedLifecycleException
- for errors while stopping.protected void doDestroy() throws ManagedLifecycleException
AbstractManagedLifecycle
doDestroy
in class AbstractManagedLifecycle
ManagedLifecycleException
- for errors while destroying.public void onSchedule() throws SchedulingException
onSchedule
in interface ScheduledEventListener
SchedulingException
- Exception processing schedule event.protected java.io.File setFileWorking(java.io.File file)
protected java.io.File getWorkFileName(java.io.File fileIn, java.lang.String suffix)
protected void doThreadedDestroy() throws ManagedLifecycleException
ManagedLifecycleException
- for errors while destroying.protected void checkInputSuffix() throws ConfigurationException
ConfigurationException
public static java.io.File getFileInputDirectory(ConfigTree config) throws ConfigurationException
ConfigurationException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |