|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.cache.interceptors.Interceptor
public abstract class Interceptor
Class representing an interceptor.
Note that this will be replaced by Interceptor
in one of the next releases
Constructor Summary | |
---|---|
Interceptor()
|
Method Summary | |
---|---|
java.util.Map |
dumpStatistics()
Returns a map of the cache interceptor's statistics Map elements consist of {String name, Object value} entries |
InvocationContext |
getInvocationContext()
Retrieves an InvocationContext. |
Interceptor |
getNext()
|
boolean |
getStatisticsEnabled()
Returns whether an interceptor's statistics are being captured. |
java.lang.Object |
invoke(org.jgroups.blocks.MethodCall m)
|
protected boolean |
isActive(javax.transaction.Transaction tx)
Returns true if transaction is ACTIVE, false otherwise |
protected boolean |
isOnePhaseCommitPrepareMehod(org.jgroups.blocks.MethodCall m)
This only works for prepare() and optimisticPrepare() method calls. |
protected boolean |
isPreparing(javax.transaction.Transaction tx)
Returns true if transaction is PREPARING, false otherwise |
protected boolean |
isTransactionLifecycleMethod(java.lang.reflect.Method m)
|
protected boolean |
isValid(javax.transaction.Transaction tx)
Return s true of tx's status is ACTIVE or PREPARING |
void |
resetStatistics()
Resets an interceptor's cache statistics |
void |
setCache(TreeCache cache)
|
void |
setInvocationContext(InvocationContext invocationContext)
Sets the invocation context |
void |
setNext(Interceptor i)
|
void |
setStatisticsEnabled(boolean enabled)
Enables an interceptor's cache statistics If true, the interceptor will capture statistics and make them available through the mbean. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Interceptor()
Method Detail |
---|
public void setNext(Interceptor i)
public Interceptor getNext()
public void setCache(TreeCache cache)
public java.lang.Object invoke(org.jgroups.blocks.MethodCall m) throws java.lang.Throwable
java.lang.Throwable
public boolean getStatisticsEnabled()
InterceptorMBean
getStatisticsEnabled
in interface InterceptorMBean
public void setStatisticsEnabled(boolean enabled)
InterceptorMBean
setStatisticsEnabled
in interface InterceptorMBean
enabled
- true if statistics should be capturedpublic java.util.Map dumpStatistics()
InterceptorMBean
dumpStatistics
in interface InterceptorMBean
public void resetStatistics()
InterceptorMBean
resetStatistics
in interface InterceptorMBean
protected boolean isActive(javax.transaction.Transaction tx)
protected boolean isPreparing(javax.transaction.Transaction tx)
protected boolean isValid(javax.transaction.Transaction tx)
tx
-
public void setInvocationContext(InvocationContext invocationContext)
invocationContext
- public InvocationContext getInvocationContext()
protected boolean isOnePhaseCommitPrepareMehod(org.jgroups.blocks.MethodCall m)
m
- protected boolean isTransactionLifecycleMethod(java.lang.reflect.Method m)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |