|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 CacheLoader |
loader
|
protected boolean |
useCacheStore
True if CacheStoreInterceptor is in place. |
Constructor Summary | |
---|---|
CacheLoaderInterceptor()
|
Method Summary | |
---|---|
java.util.Map |
dumpStatistics()
Returns a map of the cache interceptor's statistics Map elements consist of {String name, Object value} entries |
long |
getCacheLoaderLoads()
Returns the number of cache loader node loads |
long |
getCacheLoaderMisses()
Returns the number of cache loader node misses |
protected DataNode |
getNode(Fqn fqn)
Retrieves a node from memory; doesn't access the cache loader |
java.lang.Object |
invoke(org.jgroups.blocks.MethodCall call)
Makes sure a node is loaded into memory before a call executes (no-op if node is already loaded). |
protected void |
lock(Fqn fqn,
int lock_type,
boolean recursive)
|
void |
resetStatistics()
Resets an interceptor's cache statistics |
void |
setCache(TreeCache cache)
|
Methods inherited from class org.jboss.cache.interceptors.Interceptor |
---|
getInvocationContext, getNext, getStatisticsEnabled, isActive, isBuddyGroupOrganisationMethod, isOnePhaseCommitPrepareMehod, isPreparing, isTransactionLifecycleMethod, isValid, setInvocationContext, setNext, setStatisticsEnabled |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jboss.cache.interceptors.InterceptorMBean |
---|
getStatisticsEnabled, setStatisticsEnabled |
Field Detail |
---|
protected CacheLoader loader
protected boolean useCacheStore
Constructor Detail |
---|
public CacheLoaderInterceptor()
Method Detail |
---|
public void setCache(TreeCache cache)
setCache
in class Interceptor
public java.lang.Object invoke(org.jgroups.blocks.MethodCall call) throws java.lang.Throwable
invoke
in class Interceptor
call
-
java.lang.Throwable
public long getCacheLoaderLoads()
CacheLoaderInterceptorMBean
getCacheLoaderLoads
in interface CacheLoaderInterceptorMBean
public long getCacheLoaderMisses()
CacheLoaderInterceptorMBean
getCacheLoaderMisses
in interface CacheLoaderInterceptorMBean
public void resetStatistics()
InterceptorMBean
resetStatistics
in interface InterceptorMBean
resetStatistics
in class Interceptor
public java.util.Map dumpStatistics()
InterceptorMBean
dumpStatistics
in interface InterceptorMBean
dumpStatistics
in class Interceptor
protected void lock(Fqn fqn, int lock_type, boolean recursive) throws java.lang.Throwable
java.lang.Throwable
protected DataNode getNode(Fqn fqn)
fqn
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |