Class BasePerCacheInboundInvocationHandler
- java.lang.Object
-
- org.infinispan.remoting.inboundhandler.BasePerCacheInboundInvocationHandler
-
- All Implemented Interfaces:
JmxStatisticsExposer,PerCacheInboundInvocationHandler
- Direct Known Subclasses:
NonTotalOrderPerCacheInboundInvocationHandler,NonTotalOrderTxPerCacheInboundInvocationHandler,TotalOrderTxPerCacheInboundInvocationHandler,TrianglePerCacheInboundInvocationHandler
public abstract class BasePerCacheInboundInvocationHandler extends Object implements PerCacheInboundInvocationHandler
Implementation with the default handling methods and utilities methods.- Since:
- 7.1
- Author:
- Pedro Ruivo
-
-
Field Summary
Fields Modifier and Type Field Description protected Configurationconfigurationstatic StringMBEAN_COMPONENT_NAMEprotected BlockingTaskAwareExecutorServiceremoteCommandsExecutor
-
Constructor Summary
Constructors Constructor Description BasePerCacheInboundInvocationHandler()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description longgetAsyncXSitePendingRequests()longgetAsyncXSiteRequestQueueTime()longgetAsyncXSiteRequestRunningTime()longgetAsyncXSiteRequestsReceived()longgetAsyncXSiteRunningRequests()intgetFirstTopologyAsMember()protected abstract org.infinispan.util.logging.LoggetLog()booleangetStatisticsEnabled()Returns whether an interceptor's statistics are being captured.longgetSyncXSiteRequestsReceived()booleanisCommandSentBeforeFirstTopology(int commandTopologyId)booleanisStatisticsEnabled()booleanisStopped()protected abstract booleanisTraceEnabled()voidregisterXSiteActionSequencer(ActionSequencer sequencer)Registers theActionSequencerused by async cross-site requests to expose some internals metrics.voidregisterXSiteCommandReceiver(boolean sync)voidresetStatistics()Resets an interceptor's cache statisticsvoidsetFirstTopologyAsMember(int firstTopologyAsMember)voidsetStatisticsEnabled(boolean enabled)Enables an interceptor's cache statistics If true, the interceptor will capture statistics and make them available through the mbean.voidstart()voidstop()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.infinispan.remoting.inboundhandler.PerCacheInboundInvocationHandler
handle
-
-
-
-
Field Detail
-
MBEAN_COMPONENT_NAME
public static final String MBEAN_COMPONENT_NAME
- See Also:
- Constant Field Values
-
remoteCommandsExecutor
protected BlockingTaskAwareExecutorService remoteCommandsExecutor
-
configuration
protected Configuration configuration
-
-
Method Detail
-
start
public void start()
-
stop
public void stop()
-
isStopped
public boolean isStopped()
-
registerXSiteActionSequencer
public void registerXSiteActionSequencer(ActionSequencer sequencer)
Description copied from interface:PerCacheInboundInvocationHandlerRegisters theActionSequencerused by async cross-site requests to expose some internals metrics.- Specified by:
registerXSiteActionSequencerin interfacePerCacheInboundInvocationHandler
-
isCommandSentBeforeFirstTopology
public final boolean isCommandSentBeforeFirstTopology(int commandTopologyId)
-
getLog
protected abstract org.infinispan.util.logging.Log getLog()
-
isTraceEnabled
protected abstract boolean isTraceEnabled()
-
registerXSiteCommandReceiver
public void registerXSiteCommandReceiver(boolean sync)
- Specified by:
registerXSiteCommandReceiverin interfacePerCacheInboundInvocationHandler
-
getStatisticsEnabled
public boolean getStatisticsEnabled()
Description copied from interface:JmxStatisticsExposerReturns whether an interceptor's statistics are being captured.- Specified by:
getStatisticsEnabledin interfaceJmxStatisticsExposer- Returns:
- true if statistics are captured
-
resetStatistics
public void resetStatistics()
Description copied from interface:JmxStatisticsExposerResets an interceptor's cache statistics- Specified by:
resetStatisticsin interfaceJmxStatisticsExposer
-
isStatisticsEnabled
public boolean isStatisticsEnabled()
-
setStatisticsEnabled
public void setStatisticsEnabled(boolean enabled)
Description copied from interface:JmxStatisticsExposerEnables an interceptor's cache statistics If true, the interceptor will capture statistics and make them available through the mbean.- Specified by:
setStatisticsEnabledin interfaceJmxStatisticsExposer- Parameters:
enabled- true if statistics should be captured
-
getSyncXSiteRequestsReceived
public long getSyncXSiteRequestsReceived()
-
getAsyncXSiteRequestsReceived
public long getAsyncXSiteRequestsReceived()
-
getAsyncXSitePendingRequests
public long getAsyncXSitePendingRequests()
-
getAsyncXSiteRunningRequests
public long getAsyncXSiteRunningRequests()
-
getAsyncXSiteRequestQueueTime
public long getAsyncXSiteRequestQueueTime()
-
getAsyncXSiteRequestRunningTime
public long getAsyncXSiteRequestRunningTime()
-
setFirstTopologyAsMember
public void setFirstTopologyAsMember(int firstTopologyAsMember)
- Specified by:
setFirstTopologyAsMemberin interfacePerCacheInboundInvocationHandler- Parameters:
firstTopologyAsMember- The first topology in which the local node was a member. Any command with a lower topology id will be ignored.
-
getFirstTopologyAsMember
public int getFirstTopologyAsMember()
- Specified by:
getFirstTopologyAsMemberin interfacePerCacheInboundInvocationHandler- Returns:
- The first topology in which the local node was a member.
Any command with a lower topology id will be ignored.
-
-