|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.virtual.plugins.cache.AbstractVFSCache
org.jboss.virtual.plugins.cache.IterableVFSCache
org.jboss.virtual.plugins.cache.MapVFSCache
public abstract class MapVFSCache
Map vfs cache.
Field Summary |
---|
Fields inherited from class org.jboss.virtual.plugins.cache.AbstractVFSCache |
---|
log |
Constructor Summary | |
---|---|
MapVFSCache()
|
Method Summary | |
---|---|
protected void |
check()
Is cache valid. |
protected abstract Map<String,VFSContext> |
createMap()
Create cache map. |
void |
flush()
Flush the cache. |
Iterable<VFSContext> |
getCachedContexts()
Get cached contexts. |
protected VFSContext |
getContext(String path)
Get the cached context. |
protected Iterable<String> |
getKeys()
Get cache keys. |
protected void |
putContext(String path,
VFSContext context)
Put vfs context and its path key into cache. |
protected void |
removeContext(String path,
VFSContext context)
Remove vfs context and its path key from cache. |
int |
size()
Get cache size. |
void |
start()
Start the cache. |
void |
stop()
Stop the cache. |
Methods inherited from class org.jboss.virtual.plugins.cache.IterableVFSCache |
---|
findContext |
Methods inherited from class org.jboss.virtual.plugins.cache.AbstractVFSCache |
---|
findContext, lastInsert, putContext, readLock, readUnlock, removeContext, writeLock, writeUnlock |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MapVFSCache()
Method Detail |
---|
public Iterable<VFSContext> getCachedContexts()
CacheStatistics
public int size()
CacheStatistics
protected void check()
AbstractVFSCache
check
in class AbstractVFSCache
protected Iterable<String> getKeys()
IterableVFSCache
getKeys
in class IterableVFSCache
protected VFSContext getContext(String path)
AbstractVFSCache
getContext
in class AbstractVFSCache
path
- the path to match
protected void putContext(String path, VFSContext context)
AbstractVFSCache
putContext
in class AbstractVFSCache
path
- the context's pathcontext
- the vfs contextprotected void removeContext(String path, VFSContext context)
AbstractVFSCache
removeContext
in class AbstractVFSCache
path
- the context's pathcontext
- the vfs contextprotected abstract Map<String,VFSContext> createMap()
public void start() throws Exception
VFSCache
Exception
- for any errorpublic void stop()
VFSCache
public void flush()
VFSCache
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |