@MBean public abstract class AbstractClusterStats extends Object implements JmxStatisticsExposer
Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_STALE_STATS_THRESHOLD |
Modifier and Type | Method and Description |
---|---|
long |
getStaleStatsThreshold() |
boolean |
getStatisticsEnabled()
Returns whether an interceptor's statistics are being captured.
|
long |
getTimeSinceReset() |
boolean |
isStatisticsEnabled() |
void |
reset() |
void |
resetStatistics()
Resets an interceptor's cache statistics
|
void |
setStaleStatsThreshold(long staleStatsThreshold) |
void |
setStatisticsEnabled(boolean enabled)
Enables an interceptor's cache statistics If true, the interceptor will capture statistics and make them available
through the mbean.
|
public static final long DEFAULT_STALE_STATS_THRESHOLD
public void reset()
@ManagedAttribute(description="Gets the threshold for cluster wide stats refresh (milliseconds)", displayName="Stale Stats Threshold", dataType=TRAIT, writable=true) public long getStaleStatsThreshold()
public void setStaleStatsThreshold(long staleStatsThreshold)
@ManagedOperation(description="Resets statistics gathered by this component", displayName="Reset statistics") public void resetStatistics()
JmxStatisticsExposer
resetStatistics
in interface JmxStatisticsExposer
@ManagedAttribute(description="Number of seconds since the cluster-wide statistics were last reset", displayName="Seconds since cluster-wide statistics were reset", units=SECONDS) public long getTimeSinceReset()
public void setStatisticsEnabled(boolean enabled)
JmxStatisticsExposer
setStatisticsEnabled
in interface JmxStatisticsExposer
enabled
- true if statistics should be capturedpublic boolean getStatisticsEnabled()
JmxStatisticsExposer
getStatisticsEnabled
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()
Copyright © 2021 JBoss by Red Hat. All rights reserved.