|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.soa.esb.listeners.gateway.remotestrategies.ReadOnlyRemoteFileSystemStrategy
public class ReadOnlyRemoteFileSystemStrategy
Read-only implementation of RemoteFileSystemStrategy
.
An instance of this class can be used when a remote file system does not support write operations.
Constructor Summary | |
---|---|
ReadOnlyRemoteFileSystemStrategy()
|
Method Summary | |
---|---|
boolean |
deleteFile(java.io.File file)
Do nothing |
void |
destroy()
Clean upp anything that needs to be perforemed upon destruction. |
java.io.File[] |
filterFileList(java.io.File[] files)
Returns a File[] that only contains files that have not previously been through this method. |
java.util.Map |
getCacheListeners()
|
java.io.File |
getWorkFileName(java.io.File file,
java.lang.String suffix)
This method simply returns the file without a worksuffix. |
void |
init(java.lang.String configFile)
Configures and starts the underlying FtpFileCache |
void |
removeAllData()
|
boolean |
renameFile(java.io.File from,
java.io.File to)
Do nothing |
void |
setCacheListener(java.lang.Class cacheListenerClass)
|
void |
setDeleteOnEviction()
|
void |
stop()
Stop of clean upp anything that needs to be perforemed upon shutdown. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReadOnlyRemoteFileSystemStrategy()
Method Detail |
---|
public void init(java.lang.String configFile) throws RemoteFileSystemStrategyException
init
in interface RemoteFileSystemStrategy
RemoteFileSystemStrategyException
public boolean deleteFile(java.io.File file) throws RemoteFileSystemStrategyException
deleteFile
in interface RemoteFileSystemStrategy
file
- the file to delete. Ignored
RemoteFileSystemStrategyException
public boolean renameFile(java.io.File from, java.io.File to) throws RemoteFileSystemStrategyException
renameFile
in interface RemoteFileSystemStrategy
from
- the file to be renamed. Ignoredto
- the new file. Ignored
RemoteFileSystemStrategyException
public java.io.File getWorkFileName(java.io.File file, java.lang.String suffix)
getWorkFileName
in interface RemoteFileSystemStrategy
file
- the file to work withsuffix
- the suffix. This will be ignored
public java.io.File[] filterFileList(java.io.File[] files) throws RemoteFileSystemStrategyException
filterFileList
in interface RemoteFileSystemStrategy
RemoteFileSystemStrategyException
public void removeAllData() throws org.jboss.cache.CacheException
org.jboss.cache.CacheException
public void stop()
RemoteFileSystemStrategy
stop
in interface RemoteFileSystemStrategy
public void destroy()
RemoteFileSystemStrategy
destroy
in interface RemoteFileSystemStrategy
public void setDeleteOnEviction()
public java.util.Map getCacheListeners()
public void setCacheListener(java.lang.Class cacheListenerClass) throws RemoteFileSystemStrategyException
RemoteFileSystemStrategyException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |