org.jboss.soa.esb.listeners.gateway
Class RemoteGatewayListener

java.lang.Object
  extended by org.jboss.soa.esb.listeners.lifecycle.AbstractManagedLifecycle
      extended by org.jboss.soa.esb.listeners.lifecycle.AbstractThreadedManagedLifecycle
          extended by org.jboss.soa.esb.listeners.gateway.AbstractFileGateway
              extended by org.jboss.soa.esb.listeners.gateway.FileGatewayListener
                  extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jboss.soa.esb.listeners.gateway.FileGatewayListener
FileGatewayListener.PackageFileContents
 
Field Summary
 
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
 
Fields inherited from class org.jboss.soa.esb.listeners.lifecycle.AbstractManagedLifecycle
PARAM_TERMINATION_PERIOD
 
Constructor Summary
RemoteGatewayListener(ConfigTree config)
           
 
Method Summary
protected  void checkMyParms()
           
 boolean deleteFile(java.io.File file)
           
protected  java.io.File getWorkFileName(java.io.File file, java.lang.String suffix)
           
protected  void seeIfOkToWorkOnDir(java.io.File p_oDir)
           
 
Methods inherited from class org.jboss.soa.esb.listeners.gateway.FileGatewayListener
checkInputSuffix
 
Methods inherited from class org.jboss.soa.esb.listeners.gateway.AbstractFileGateway
doDestroy, doInitialise, doRun, getCourier, resolveComposerClass
 
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
 

Constructor Detail

RemoteGatewayListener

public RemoteGatewayListener(ConfigTree config)
                      throws ConfigurationException,
                             RegistryException,
                             GatewayException
Throws:
ConfigurationException
RegistryException
GatewayException
Method Detail

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