public class SimpleDirectoryPersistentCache extends java.lang.Object implements EntityCapsPersistentCache
| Constructor and Description |
|---|
SimpleDirectoryPersistentCache(java.io.File cacheDir)
Creates a new SimpleDirectoryPersistentCache Object.
|
SimpleDirectoryPersistentCache(java.io.File cacheDir,
StringEncoder filenameEncoder)
Creates a new SimpleDirectoryPersistentCache Object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDiscoverInfoByNodePersistent(java.lang.String node,
DiscoverInfo info)
Add an DiscoverInfo to the persistent Cache
|
void |
emptyCache()
Empty the Cache
|
void |
replay()
Replay the Caches data into EntityCapsManager
|
public SimpleDirectoryPersistentCache(java.io.File cacheDir)
Default filename encoder Base32Encoder, as this will work on all
file systems, both case sensitive and case insensitive. It does however
produce longer filenames.
cacheDir - public SimpleDirectoryPersistentCache(java.io.File cacheDir,
StringEncoder filenameEncoder)
Base32Encoder (which is the default).cacheDir - The directory where the cache will be stored.filenameEncoder - Encodes the node string into a filename.public void addDiscoverInfoByNodePersistent(java.lang.String node,
DiscoverInfo info)
EntityCapsPersistentCacheaddDiscoverInfoByNodePersistent in interface EntityCapsPersistentCachepublic void replay()
throws java.io.IOException
EntityCapsPersistentCachereplay in interface EntityCapsPersistentCachejava.io.IOExceptionpublic void emptyCache()
EntityCapsPersistentCacheemptyCache in interface EntityCapsPersistentCache