|
||||||||||
| 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
| Field Summary | |
|---|---|
protected CacheSPI<?,?> |
cache
|
protected Configuration |
configuration
|
protected Interceptor |
last
|
protected org.apache.commons.logging.Log |
log
|
protected Interceptor |
next
|
| Constructor Summary | |
|---|---|
Interceptor()
|
|
| Method Summary | |
|---|---|
java.util.Map<java.lang.String,java.lang.Object> |
dumpStatistics()
This implementation returns an empty Map. |
Interceptor |
getLast()
|
Interceptor |
getNext()
|
boolean |
getStatisticsEnabled()
Returns whether an interceptor's statistics are being captured. |
java.lang.Object |
invoke(InvocationContext ctx)
|
protected boolean |
isActive(javax.transaction.Transaction tx)
Returns true if transaction is ACTIVE, false otherwise |
protected boolean |
isOnePhaseCommitPrepareMehod(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 |
isValid(javax.transaction.Transaction tx)
Return s true of tx's status is ACTIVE or PREPARING |
void |
resetStatistics()
This implementation is a no-op. |
void |
setCache(CacheSPI cache)
|
void |
setLast(Interceptor last)
|
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. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Interceptor next
protected Interceptor last
protected CacheSPI<?,?> cache
protected org.apache.commons.logging.Log log
protected Configuration configuration
| Constructor Detail |
|---|
public Interceptor()
| Method Detail |
|---|
public void setNext(Interceptor i)
public Interceptor getNext()
public void setCache(CacheSPI cache)
public java.lang.Object invoke(InvocationContext ctx)
throws java.lang.Throwable
java.lang.Throwablepublic boolean getStatisticsEnabled()
InterceptorMBean
getStatisticsEnabled in interface InterceptorMBeanpublic void setStatisticsEnabled(boolean enabled)
InterceptorMBean
setStatisticsEnabled in interface InterceptorMBeanenabled - true if statistics should be capturedpublic Interceptor getLast()
public void setLast(Interceptor last)
public java.util.Map<java.lang.String,java.lang.Object> dumpStatistics()
dumpStatistics in interface InterceptorMBeanpublic void resetStatistics()
resetStatistics in interface InterceptorMBeanprotected boolean isActive(javax.transaction.Transaction tx)
protected boolean isPreparing(javax.transaction.Transaction tx)
protected boolean isValid(javax.transaction.Transaction tx)
tx -
protected boolean isOnePhaseCommitPrepareMehod(MethodCall m)
m - public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||