@MBean(objectName="InboundInvocationHandler", description="Handles all the remote requests.") public abstract class BasePerCacheInboundInvocationHandler extends Object implements PerCacheInboundInvocationHandler
Modifier and Type | Field and Description |
---|---|
protected BlockingTaskAwareExecutorService |
blockingExecutor |
protected Configuration |
configuration |
static String |
MBEAN_COMPONENT_NAME |
protected BlockingTaskAwareExecutorService |
nonBlockingExecutor |
Constructor and Description |
---|
BasePerCacheInboundInvocationHandler() |
Modifier and Type | Method and Description |
---|---|
void |
checkForReadyTasks()
Checks if any pending tasks are now ready to be ran and will run in them in a separate thread.
|
int |
getFirstTopologyAsMember() |
protected abstract Log |
getLog() |
boolean |
getStatisticsEnabled()
Returns whether an interceptor's statistics are being captured.
|
long |
getXSiteRequestsReceived() |
boolean |
isCommandSentBeforeFirstTopology(int commandTopologyId) |
boolean |
isStatisticsEnabled() |
boolean |
isStopped() |
protected abstract boolean |
isTraceEnabled() |
void |
registerXSiteCommandReceiver() |
void |
resetStatistics()
Resets an interceptor's cache statistics
|
void |
setFirstTopologyAsMember(int firstTopologyAsMember) |
void |
setStatisticsEnabled(boolean enabled)
Enables an interceptor's cache statistics If true, the interceptor will capture statistics and make them available
through the mbean.
|
void |
start() |
void |
stop() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handle
public static final String MBEAN_COMPONENT_NAME
protected BlockingTaskAwareExecutorService blockingExecutor
protected BlockingTaskAwareExecutorService nonBlockingExecutor
protected Configuration configuration
public BasePerCacheInboundInvocationHandler()
public void start()
public void stop()
public boolean isStopped()
public final boolean isCommandSentBeforeFirstTopology(int commandTopologyId)
protected abstract Log getLog()
protected abstract boolean isTraceEnabled()
public void registerXSiteCommandReceiver()
registerXSiteCommandReceiver
in interface PerCacheInboundInvocationHandler
public boolean getStatisticsEnabled()
JmxStatisticsExposer
getStatisticsEnabled
in interface JmxStatisticsExposer
@ManagedOperation(description="Resets statistics gathered by this component", displayName="Reset statistics") public void resetStatistics()
JmxStatisticsExposer
resetStatistics
in interface JmxStatisticsExposer
@ManagedAttribute(description="Enables or disables the gathering of statistics by this component", displayName="Statistics enabled", dataType=TRAIT, writable=true) public boolean isStatisticsEnabled()
public void setStatisticsEnabled(boolean enabled)
JmxStatisticsExposer
setStatisticsEnabled
in interface JmxStatisticsExposer
enabled
- true if statistics should be captured@ManagedAttribute(description="Returns the number of cross-site requests received by this node", displayName="Cross-Site Requests Received") public long getXSiteRequestsReceived()
public void setFirstTopologyAsMember(int firstTopologyAsMember)
setFirstTopologyAsMember
in interface PerCacheInboundInvocationHandler
firstTopologyAsMember
- The first topology in which the local node was a member.
Any command with a lower topology id will be ignored.public int getFirstTopologyAsMember()
getFirstTopologyAsMember
in interface PerCacheInboundInvocationHandler
public void checkForReadyTasks()
PerCacheInboundInvocationHandler
checkForReadyTasks
in interface PerCacheInboundInvocationHandler
Copyright © 2021 JBoss by Red Hat. All rights reserved.