|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.virtual.plugins.cache.AbstractVFSCache
public abstract class AbstractVFSCache
Abstract vfs cache.
| Field Summary | |
|---|---|
protected org.jboss.logging.Logger |
log
|
| Constructor Summary | |
|---|---|
AbstractVFSCache()
|
|
| Method Summary | |
|---|---|
protected abstract void |
check()
Is cache valid. |
VFSContext |
findContext(URL url)
Find the context based on url. |
protected abstract VFSContext |
getContext(String path)
Get the cached context. |
long |
lastInsert()
Get last insert timestamp. |
protected abstract void |
putContext(String path,
VFSContext context)
Put vfs context and its path key into cache. |
void |
putContext(VFSContext context)
Put vfs context to cache. |
protected void |
readLock()
Read lock. |
protected void |
readUnlock()
Read unlock. |
protected abstract void |
removeContext(String path,
VFSContext context)
Remove vfs context and its path key from cache. |
void |
removeContext(VFSContext context)
Remove vfs context from cache. |
protected void |
writeLock()
Write lock. |
protected void |
writeUnlock()
Write unlock. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jboss.virtual.spi.cache.VFSCache |
|---|
findContext, flush, start, stop |
| Methods inherited from interface org.jboss.virtual.spi.cache.CacheStatistics |
|---|
getCachedContexts, size |
| Field Detail |
|---|
protected org.jboss.logging.Logger log
| Constructor Detail |
|---|
public AbstractVFSCache()
| Method Detail |
|---|
public long lastInsert()
CacheStatistics
lastInsert in interface CacheStatisticsprotected abstract void check()
public VFSContext findContext(URL url)
VFSCache
findContext in interface VFSCacheurl - the url
protected abstract VFSContext getContext(String path)
path - the path to match
public void putContext(VFSContext context)
VFSCache
putContext in interface VFSCachecontext - the vfs context
protected abstract void putContext(String path,
VFSContext context)
path - the context's pathcontext - the vfs contextpublic void removeContext(VFSContext context)
VFSCache
removeContext in interface VFSCachecontext - the vfs context
protected abstract void removeContext(String path,
VFSContext context)
path - the context's pathcontext - the vfs contextprotected void readLock()
protected void readUnlock()
protected void writeLock()
protected void writeUnlock()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||