|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.virtual.plugins.cache.CombinedVFSCache
public class CombinedVFSCache
Combined vfs cache - permanent entries + real cache.
Constructor Summary | |
---|---|
CombinedVFSCache()
|
Method Summary | |
---|---|
void |
create()
Check at create. |
VFSContext |
findContext(URI uri)
Find the context based on uri. |
VFSContext |
findContext(URL url)
Find the context based on url. |
void |
flush()
Flush the cache. |
Iterable<VFSContext> |
getCachedContexts()
Get cached contexts. |
long |
lastInsert()
Get last insert timestamp. |
void |
putContext(VFSContext context)
Put vfs context to cache. |
void |
removeContext(VFSContext context)
Remove vfs context from cache. |
void |
setPermanentRoots(Map<URL,ExceptionHandler> initializationEntries)
Set permanent roots and its exception handlers. |
void |
setRealCache(VFSCache realCache)
Set the real cache. |
int |
size()
Get cache size. |
void |
start()
Start the cache. |
void |
stop()
Stop the cache. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CombinedVFSCache()
Method Detail |
---|
public void setPermanentRoots(Map<URL,ExceptionHandler> initializationEntries) throws Exception
initializationEntries
- the initialization entries
IOException
- for any error
Exception
public void setRealCache(VFSCache realCache)
realCache
- the real cachepublic void create()
public VFSContext findContext(URI uri)
VFSCache
findContext
in interface VFSCache
uri
- the uri
public VFSContext findContext(URL url)
VFSCache
findContext
in interface VFSCache
url
- the url
public void putContext(VFSContext context)
VFSCache
putContext
in interface VFSCache
context
- the vfs contextpublic void removeContext(VFSContext context)
VFSCache
removeContext
in interface VFSCache
context
- the vfs contextpublic void start() throws Exception
VFSCache
start
in interface VFSCache
Exception
- for any errorpublic void stop()
VFSCache
stop
in interface VFSCache
public void flush()
VFSCache
flush
in interface VFSCache
public Iterable<VFSContext> getCachedContexts()
CacheStatistics
getCachedContexts
in interface CacheStatistics
public int size()
CacheStatistics
size
in interface CacheStatistics
public long lastInsert()
CacheStatistics
lastInsert
in interface CacheStatistics
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |