org.jboss.soa.esb.listeners.gateway
Class RemoteGatewayListener
java.lang.Object
org.jboss.soa.esb.listeners.lifecycle.AbstractManagedLifecycle
org.jboss.soa.esb.listeners.lifecycle.AbstractThreadedManagedLifecycle
org.jboss.soa.esb.listeners.gateway.AbstractFileGateway
org.jboss.soa.esb.listeners.gateway.FileGatewayListener
org.jboss.soa.esb.listeners.gateway.RemoteGatewayListener
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Runnable, ManagedLifecycle
- Direct Known Subclasses:
- ReadOnlyRemoteGatewayListener
public class RemoteGatewayListener
- extends FileGatewayListener
Sample Listener Configuration:
<ftp-listener name="FtpGateway"
busidref="helloFTPChannel"
maxThreads="1"
is-gateway="true">
<property name="pollLatencySeconds" value="5"/> <!-- Interval to poll the remote file system -->
</ftp-listener>
- Author:
- John Doe, Daniel Bevenius
- See Also:
- Serialized Form
Fields inherited from class org.jboss.soa.esb.listeners.gateway.AbstractFileGateway |
_composer, _composerClass, _composerName, _config, _courier, _deleteAfterOK, _errorDirectory, _errorSuffix, _fileFilter, _inputDirectory, _inputSuffix, _logger, _maxMillisForResponse, _postProcessDirectory, _postProcessSuffix, _processMethod, _responderMethod, _sleepBetweenPolls, _targetEprs, _targetServiceCategory, _targetServiceName, _workingSuffix |
Methods inherited from class org.jboss.soa.esb.listeners.lifecycle.AbstractThreadedManagedLifecycle |
addManagedLifecycleThreadEventListener, doStart, doStop, isRunning, isStopped, isStopping, removeManagedLifecycleThreadEventListener, run, setRunning, waitForRunningStateChange, waitUntilStopped, waitUntilStopped, waitUntilStopping |
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 |
RemoteGatewayListener
public RemoteGatewayListener(ConfigTree config)
throws ConfigurationException,
RegistryException,
GatewayException
- Throws:
ConfigurationException
RegistryException
GatewayException
checkMyParms
protected void checkMyParms()
throws ConfigurationException,
RegistryException,
GatewayException
- Throws:
ConfigurationException
RegistryException
GatewayException
seeIfOkToWorkOnDir
protected void seeIfOkToWorkOnDir(java.io.File p_oDir)
throws GatewayException
- Overrides:
seeIfOkToWorkOnDir
in class FileGatewayListener
- Throws:
GatewayException
deleteFile
public boolean deleteFile(java.io.File file)
throws GatewayException
- Throws:
GatewayException
getWorkFileName
protected java.io.File getWorkFileName(java.io.File file,
java.lang.String suffix)
- Overrides:
getWorkFileName
in class AbstractFileGateway