|
||||||||||
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.MethodDispacherInterceptor org.jboss.cache.interceptors.BaseRpcInterceptor org.jboss.cache.interceptors.DataGravitatorInterceptor
public class DataGravitatorInterceptor
The Data Gravitator interceptor intercepts cache misses and attempts to gravitate data from other parts of the cluster.
Only used if Buddy Replication is enabled. Also, the interceptor only kicks in if anOption
is passed in to force Data
Gravitation for a specific invocation or if autoDataGravitation is
set to true when configuring Buddy Replication.
See the JBoss Cache User Guide for more details on configuration options.
There is a section dedicated to Buddy Replication in the Replication
chapter.
Nested Class Summary | |
---|---|
static class |
DataGravitatorInterceptor.ResponseValidityFilter
|
Field Summary |
---|
Fields inherited from class org.jboss.cache.interceptors.BaseRpcInterceptor |
---|
defaultSynchronous |
Fields inherited from class org.jboss.cache.interceptors.Interceptor |
---|
cache, configuration, last, log, next, trace |
Constructor Summary | |
---|---|
DataGravitatorInterceptor()
|
Methods inherited from class org.jboss.cache.interceptors.BaseRpcInterceptor |
---|
containsModifications, checkResponses, isSynchronous, isTransactionalAndLocal, putCallOnAsyncReplicationQueue, replicateCall, replicateCall, replicateCall, replicateCall, skipReplicationOfTransactionMethod |
Methods inherited from class org.jboss.cache.interceptors.Interceptor |
---|
assertTransactionValid, dumpStatistics, getLast, getNext, getStatisticsEnabled, initLogger, isActive, isPreparing, isValid, nextInterceptor, peekNode, resetStatistics, setLast, setNext, setStatisticsEnabled, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DataGravitatorInterceptor()
Method Detail |
---|
public void setCache(CacheSPI cache)
setCache
in class BaseRpcInterceptor
protected boolean skipMethodCall(InvocationContext ctx)
MethodDispacherInterceptor
skipMethodCall
in class MethodDispacherInterceptor
protected Object handleGetChildrenNamesMethod(InvocationContext ctx, Fqn fqn) throws Throwable
MethodDispacherInterceptor
CacheImpl._getChildrenNames(org.jboss.cache.Fqn)
handleGetChildrenNamesMethod
in class MethodDispacherInterceptor
Throwable
protected Object handleGetDataMapMethod(InvocationContext ctx, Fqn fqn) throws Throwable
MethodDispacherInterceptor
CacheImpl._getData(org.jboss.cache.Fqn)
handleGetDataMapMethod
in class MethodDispacherInterceptor
Throwable
protected Object handleExistsMethod(InvocationContext ctx, Fqn fqn) throws Throwable
MethodDispacherInterceptor
CacheImpl.exists(String)
handleExistsMethod
in class MethodDispacherInterceptor
Throwable
protected Object handleGetKeysMethod(InvocationContext ctx, Fqn fqn) throws Throwable
MethodDispacherInterceptor
Cache.getKeys(Fqn)
handleGetKeysMethod
in class MethodDispacherInterceptor
Throwable
protected Object handleGetKeyValueMethod(InvocationContext ctx, Fqn fqn, Object key, boolean sendNodeEvent) throws Throwable
MethodDispacherInterceptor
CacheImpl._get(org.jboss.cache.Fqn, Object, boolean)
handleGetKeyValueMethod
in class MethodDispacherInterceptor
Throwable
protected Object handleGetNodeMethod(InvocationContext ctx, Fqn fqn) throws Throwable
MethodDispacherInterceptor
CacheImpl._get(org.jboss.cache.Fqn)
handleGetNodeMethod
in class MethodDispacherInterceptor
Throwable
protected Object handlePrepareMethod(InvocationContext ctx, GlobalTransaction gtx, List modification, org.jgroups.Address coordinator, boolean onePhaseCommit) throws Throwable
MethodDispacherInterceptor
CacheImpl.prepare(org.jboss.cache.transaction.GlobalTransaction, java.util.List, org.jgroups.Address, boolean)
handlePrepareMethod
in class MethodDispacherInterceptor
Throwable
protected Object handleOptimisticPrepareMethod(InvocationContext ctx, GlobalTransaction gtx, List modifications, Map data, org.jgroups.Address address, boolean onePhaseCommit) throws Throwable
MethodDispacherInterceptor
CacheImpl.optimisticPrepare(org.jboss.cache.transaction.GlobalTransaction, java.util.List, java.util.Map, org.jgroups.Address, boolean)
handleOptimisticPrepareMethod
in class MethodDispacherInterceptor
Throwable
protected Object handleRollbackMethod(InvocationContext ctx, GlobalTransaction globalTransaction) throws Throwable
MethodDispacherInterceptor
CacheImpl.rollback(org.jboss.cache.transaction.GlobalTransaction)
handleRollbackMethod
in class MethodDispacherInterceptor
Throwable
protected Object handleCommitMethod(InvocationContext ctx, GlobalTransaction globalTransaction) throws Throwable
MethodDispacherInterceptor
CacheImpl.commit(org.jboss.cache.transaction.GlobalTransaction)
handleCommitMethod
in class MethodDispacherInterceptor
Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |