|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.soa.esb.listeners.lifecycle.AbstractManagedLifecycle
org.jboss.soa.esb.listeners.lifecycle.AbstractScheduledManagedLifecycle
org.jboss.soa.esb.listeners.gateway.AbstractFileGateway
org.jboss.soa.esb.listeners.gateway.FileGatewayListener
org.jboss.soa.esb.listeners.gateway.RemoteGatewayListener
org.jboss.soa.esb.listeners.gateway.ReadOnlyRemoteGatewayListener
public class ReadOnlyRemoteGatewayListener
This class extends RemoteGatewayListener
and is intended to be used
when the remote file system does not support write operations.
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 --> <property name="remoteFileSystemStrategy-configFile" value="/ftpfile-cache-config.xml"/> <!-- Optional--> <property name="remoteFileSystemStrategy-cacheListener" value=""org.jboss.soa.esb.listeners.gateway.remotestrategies.cache.DeleteOnEvictTreeCacheListener"/> <!-- Optional--> <property name="remoteFileSystemStrategy-class" value="org.my.MyRemoteGatewayStrategy"/> <!-- Optional--> </ftp-listener>
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.jboss.soa.esb.listeners.gateway.FileGatewayListener |
---|
FileGatewayListener.FileFilterInit |
Field Summary | |
---|---|
static java.lang.String |
REMOTE_FILE_SYSTEM_STRATEGY_CACHE_LISTENER
Property to specify if a the TreeCacheListener should be used. |
static java.lang.String |
REMOTE_FILE_SYSTEM_STRATEGY_CLASS
Property to specify the RemoteFileSystemStrategy implementation |
static java.lang.String |
REMOTE_FILE_SYSTEM_STRATEGY_CONFIG_FILE
Property to specify a configuration file for REMOTE_FILE_SYSTEM_STRATEGY_CLASS |
Fields inherited from class org.jboss.soa.esb.listeners.gateway.AbstractFileGateway |
---|
_deleteAfterOK, _errorDirectory, _errorSuffix, _inputDirectory, _inputSuffix, _logger, _maxMillisForResponse, _postProcessDirectory, _postProcessSuffix, _renameAfterOK, _workingSuffix, config, messageComposer, serviceInvoker, targetService |
Fields inherited from class org.jboss.soa.esb.listeners.lifecycle.AbstractManagedLifecycle |
---|
PARAM_TERMINATION_PERIOD |
Constructor Summary | |
---|---|
ReadOnlyRemoteGatewayListener(ConfigTree config)
|
Method Summary | ||
---|---|---|
boolean |
deleteFile(java.io.File file)
Delegates to RemoteFileSystemStrategy.deleteFile(File) |
|
protected void |
doScheduledDestroy()
Destroys the service and also after that stop the remotefileSystemStrategy in use |
|
protected void |
doStop()
Stop the service and also after that stop the remotefileSystemStrategy in use |
|
protected
|
getNewInstanceOf(java.lang.String className)
|
|
protected java.io.File |
getWorkFileName(java.io.File file,
java.lang.String suffix)
Delegates to RemoteFileSystemStrategy.getWorkFileName(File, String) |
|
void |
setRemotefileSystemStrategy(RemoteFileSystemStrategy remotefileSystemStrategy)
Set the RemoteFileSystemStrategy to be used |
Methods inherited from class org.jboss.soa.esb.listeners.gateway.RemoteGatewayListener |
---|
checkMyParms, seeIfOkToWorkOnDir |
Methods inherited from class org.jboss.soa.esb.listeners.gateway.FileGatewayListener |
---|
checkInputSuffix |
Methods inherited from class org.jboss.soa.esb.listeners.gateway.AbstractFileGateway |
---|
doInitialise, getFileInputDirectory, onSchedule, setFileWorking |
Methods inherited from class org.jboss.soa.esb.listeners.lifecycle.AbstractScheduledManagedLifecycle |
---|
doDestroy, doStart |
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 |
---|
public static final java.lang.String REMOTE_FILE_SYSTEM_STRATEGY_CLASS
RemoteFileSystemStrategy
implementation
public static final java.lang.String REMOTE_FILE_SYSTEM_STRATEGY_CONFIG_FILE
REMOTE_FILE_SYSTEM_STRATEGY_CLASS
public static final java.lang.String REMOTE_FILE_SYSTEM_STRATEGY_CACHE_LISTENER
DeleteOnEvictTreeCacheListener
Constructor Detail |
---|
public ReadOnlyRemoteGatewayListener(ConfigTree config) throws ConfigurationException, RegistryException, GatewayException
ConfigurationException
RegistryException
GatewayException
Method Detail |
---|
public boolean deleteFile(java.io.File file) throws GatewayException
RemoteFileSystemStrategy.deleteFile(File)
deleteFile
in class RemoteGatewayListener
GatewayException
protected java.io.File getWorkFileName(java.io.File file, java.lang.String suffix)
RemoteFileSystemStrategy.getWorkFileName(File, String)
getWorkFileName
in class RemoteGatewayListener
public void setRemotefileSystemStrategy(RemoteFileSystemStrategy remotefileSystemStrategy)
RemoteFileSystemStrategy
to be used
remotefileSystemStrategy
- protected <T> T getNewInstanceOf(java.lang.String className) throws ConfigurationException
ConfigurationException
protected void doStop() throws ManagedLifecycleException
doStop
in class AbstractScheduledManagedLifecycle
ManagedLifecycleException
- for errors while stopping.protected void doScheduledDestroy() throws ManagedLifecycleException
doScheduledDestroy
in class AbstractScheduledManagedLifecycle
ManagedLifecycleException
- for errors while destroying.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |