|
||||||||||
| 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.BaseCacheLoaderInterceptor
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 |
useCacheStore
True if CacheStoreInterceptor is in place. |
| Fields inherited from class org.jboss.cache.interceptors.BaseCacheLoaderInterceptor |
|---|
loader |
| 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.BaseCacheLoaderInterceptor |
|---|
obtainLoaderLock, obtainLoaderLocks, releaseLoaderLock, releaseLoaderLocks |
| 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 boolean useCacheStore
| Constructor Detail |
|---|
public CacheLoaderInterceptor()
| Method Detail |
|---|
public void setCache(TreeCache cache)
setCache in class BaseCacheLoaderInterceptor
public java.lang.Object invoke(org.jgroups.blocks.MethodCall call)
throws java.lang.Throwable
invoke in class Interceptorm -
java.lang.Throwablepublic long getCacheLoaderLoads()
CacheLoaderInterceptorMBean
getCacheLoaderLoads in interface CacheLoaderInterceptorMBeanpublic long getCacheLoaderMisses()
CacheLoaderInterceptorMBean
getCacheLoaderMisses in interface CacheLoaderInterceptorMBeanpublic void resetStatistics()
InterceptorMBean
resetStatistics in interface InterceptorMBeanresetStatistics in class Interceptorpublic java.util.Map dumpStatistics()
InterceptorMBean
dumpStatistics in interface InterceptorMBeandumpStatistics in class Interceptor
protected void lock(Fqn fqn,
int lock_type,
boolean recursive)
throws java.lang.Throwable
java.lang.Throwableprotected DataNode getNode(Fqn fqn)
fqn -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||