|
||||||||||
| 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
Exceptionpublic void setRealCache(VFSCache realCache)
realCache - the real cachepublic void create()
public VFSContext findContext(URI uri)
VFSCache
findContext in interface VFSCacheuri - the uri
public VFSContext findContext(URL url)
VFSCache
findContext in interface VFSCacheurl - the url
public void putContext(VFSContext context)
VFSCache
putContext in interface VFSCachecontext - the vfs contextpublic void removeContext(VFSContext context)
VFSCache
removeContext in interface VFSCachecontext - the vfs context
public void start()
throws Exception
VFSCache
start in interface VFSCacheException - for any errorpublic void stop()
VFSCache
stop in interface VFSCachepublic void flush()
VFSCache
flush in interface VFSCachepublic Iterable<VFSContext> getCachedContexts()
CacheStatistics
getCachedContexts in interface CacheStatisticspublic int size()
CacheStatistics
size in interface CacheStatisticspublic long lastInsert()
CacheStatistics
lastInsert in interface CacheStatisticspublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||