|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.cache.interceptors.Interceptor
org.jboss.cache.interceptors.CacheLoaderInterceptor
public class CacheLoaderInterceptor
Loads nodes that don't exist at the time of the call into memory from the CacheLoader
Field Summary | |
---|---|
protected boolean |
isActivation
|
protected CacheLoader |
loader
|
protected boolean |
useCacheStore
True if CacheStoreInterceptor is in place. |
Fields inherited from class org.jboss.cache.interceptors.Interceptor |
---|
cache, configuration, last, log, next |
Constructor Summary | |
---|---|
CacheLoaderInterceptor()
|
Method Summary | |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
dumpStatistics()
This implementation returns an empty Map. |
long |
getCacheLoaderLoads()
Returns the number of cache loader node loads |
long |
getCacheLoaderMisses()
Returns the number of cache loader node misses |
protected NodeSPI |
getNode(Fqn fqn)
Retrieves a node from memory; doesn't access the cache loader |
java.lang.Object |
invoke(InvocationContext ctx)
Makes sure a node is loaded into memory before a call executes (no-op if node is already loaded). |
protected void |
lock(Fqn fqn,
NodeLock.LockType lock_type,
boolean recursive)
|
void |
resetStatistics()
This implementation is a no-op. |
void |
setCache(CacheSPI cache)
|
Methods inherited from class org.jboss.cache.interceptors.Interceptor |
---|
getLast, getNext, getStatisticsEnabled, isActive, isOnePhaseCommitPrepareMehod, isPreparing, isValid, setLast, setNext, setStatisticsEnabled, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.jboss.cache.interceptors.InterceptorMBean |
---|
getStatisticsEnabled, setStatisticsEnabled |
Field Detail |
---|
protected boolean isActivation
protected CacheLoader loader
protected boolean useCacheStore
Constructor Detail |
---|
public CacheLoaderInterceptor()
Method Detail |
---|
public void setCache(CacheSPI cache)
setCache
in class Interceptor
public java.lang.Object invoke(InvocationContext ctx) throws java.lang.Throwable
invoke
in class Interceptor
java.lang.Throwable
public long getCacheLoaderLoads()
CacheLoaderInterceptorMBean
getCacheLoaderLoads
in interface CacheLoaderInterceptorMBean
public long getCacheLoaderMisses()
CacheLoaderInterceptorMBean
getCacheLoaderMisses
in interface CacheLoaderInterceptorMBean
public void resetStatistics()
Interceptor
resetStatistics
in interface InterceptorMBean
resetStatistics
in class Interceptor
public java.util.Map<java.lang.String,java.lang.Object> dumpStatistics()
Interceptor
dumpStatistics
in interface InterceptorMBean
dumpStatistics
in class Interceptor
protected void lock(Fqn fqn, NodeLock.LockType lock_type, boolean recursive) throws java.lang.Throwable
java.lang.Throwable
protected NodeSPI getNode(Fqn fqn)
fqn
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |