|
|||||||||
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.cache.FtpFileCache
public class FtpFileCache
Implements a cache of file names which can be replicated in a cluster. See the JBoss Cache docs for details on configuring the cache.
Constructor Summary | |
---|---|
FtpFileCache(java.lang.String config)
|
Method Summary | |
---|---|
void |
addCacheListener(org.jboss.cache.TreeCacheListener listener)
|
boolean |
containsFile(java.lang.String fileName)
Checks to see if the filename exists in the cache |
java.lang.Object |
deleteFile(java.lang.String fileName)
Removed the fileName from the cache if it exist there |
void |
destroy()
|
java.lang.String |
getCache()
Gets the a string of all files in the cache |
java.util.Map |
getCacheListeners()
|
java.lang.String |
getConfigFile()
|
protected java.io.InputStream |
getConfigInputStream(java.lang.String path)
Gets an input stream from the specified path. |
java.lang.Object |
getFileName(java.lang.String fileName)
Will get the filename if it exists in the cache. |
java.lang.String |
getFqn()
|
void |
putFileName(java.lang.String fileName)
Will add the filename to the cache. |
void |
removeAll()
Removes all data under the fqn, but not the fqn itself |
void |
setCacheListener(java.lang.Class cacheListenerClass)
|
void |
setDeleteOnEviction()
|
void |
setFqn(java.lang.String fqn)
|
void |
start()
Start the cache |
void |
stop()
Stops the cache |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FtpFileCache(java.lang.String config) throws FtpFileCacheException
config
- either an absolute path of a relative path
java.lang.Exception
FtpFileCacheException
Method Detail |
---|
protected java.io.InputStream getConfigInputStream(java.lang.String path)
path
- the path to the JBossCache configuration file
public void start() throws FtpFileCacheException
java.lang.Exception
FtpFileCacheException
public void stop()
public void putFileName(java.lang.String fileName) throws org.jboss.cache.CacheException
fileName
-
org.jboss.cache.CacheException
public java.lang.Object getFileName(java.lang.String fileName) throws org.jboss.cache.CacheException
fileName
-
org.jboss.cache.CacheException
public java.lang.Object deleteFile(java.lang.String fileName) throws org.jboss.cache.CacheException
fileName
-
org.jboss.cache.CacheException
public boolean containsFile(java.lang.String fileName)
fileName
- the filename to look for
public java.lang.String getCache()
public java.lang.String getFqn()
public void setFqn(java.lang.String fqn)
public java.lang.String getConfigFile()
public void removeAll() throws org.jboss.cache.CacheException
org.jboss.cache.CacheException
public void setDeleteOnEviction()
public void addCacheListener(org.jboss.cache.TreeCacheListener listener)
public java.util.Map getCacheListeners()
public void setCacheListener(java.lang.Class cacheListenerClass) throws FtpFileCacheException
FtpFileCacheException
public void destroy()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |