|
Smack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jivesoftware.smackx.entitycaps.cache.SimpleDirectoryPersistentCache
public class SimpleDirectoryPersistentCache
Simple implementation of an EntityCapsPersistentCache that uses a directory to store the Caps information for every known node. Every node is represented by a file.
| Constructor Summary | |
|---|---|
SimpleDirectoryPersistentCache(java.io.File cacheDir)
Creates a new SimpleDirectoryPersistentCache Object. |
|
SimpleDirectoryPersistentCache(java.io.File cacheDir,
StringEncoder filenameEncoder)
Creates a new SimpleDirectoryPersistentCache Object. |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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.| Method Detail |
|---|
public void addDiscoverInfoByNodePersistent(java.lang.String node,
DiscoverInfo info)
EntityCapsPersistentCache
addDiscoverInfoByNodePersistent in interface EntityCapsPersistentCache
public void replay()
throws java.io.IOException
EntityCapsPersistentCache
replay in interface EntityCapsPersistentCachejava.io.IOExceptionpublic void emptyCache()
EntityCapsPersistentCache
emptyCache in interface EntityCapsPersistentCache
|
Smack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||