org.jboss.soa.esb.listeners.gateway
Class RemoteGatewayListener
java.lang.Object
org.jboss.soa.esb.listeners.lifecycle.AbstractManagedLifecycle
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, Initializable, ManagedLifecycle, ScheduledEventListener
- 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 |
_deleteAfterOK, _errorDirectory, _errorSuffix, _fileFilter, _inputDirectory, _inputSuffix, _logger, _maxMillisForResponse, _postProcessDirectory, _postProcessSuffix, _renameAfterOK, _workingSuffix, config, messageComposer, serviceInvoker, targetService |
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)
- Overrides:
seeIfOkToWorkOnDir
in class FileGatewayListener
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