public class SimpleDirectoryPersistentCache extends Object implements EntityCapsPersistentCache
Constructor and Description |
---|
SimpleDirectoryPersistentCache(File cacheDir)
Creates a new SimpleDirectoryPersistentCache Object.
|
SimpleDirectoryPersistentCache(File cacheDir,
StringEncoder filenameEncoder)
Creates a new SimpleDirectoryPersistentCache Object.
|
Modifier and Type | Method and Description |
---|---|
void |
addDiscoverInfoByNodePersistent(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(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(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(String node, DiscoverInfo info)
EntityCapsPersistentCache
addDiscoverInfoByNodePersistent
in interface EntityCapsPersistentCache
public void replay() throws IOException
EntityCapsPersistentCache
replay
in interface EntityCapsPersistentCache
IOException
public void emptyCache()
EntityCapsPersistentCache
emptyCache
in interface EntityCapsPersistentCache
Copyright © 2015 Ignite Realtime. All rights reserved.