@MBean(objectName="ClusterContainerStats",
description="General container statistics aggregated across the cluster.")
public class ClusterContainerStatsImpl
extends AbstractClusterStats
implements ClusterContainerStats
DEFAULT_STALE_STATS_THRESHOLDOBJECT_NAME| Modifier and Type | Method and Description |
|---|---|
long |
getMemoryAvailable() |
long |
getMemoryMax() |
long |
getMemoryTotal() |
long |
getMemoryUsed() |
long |
getStaleStatsThreshold() |
void |
init(EmbeddedCacheManager cacheManager,
GlobalConfiguration configuration) |
void |
reset()
Reset the collected statistics
|
void |
setStaleStatsThreshold(long threshold) |
void |
start() |
getStaleStatsThreshold, getStatisticsEnabled, getTimeSinceReset, isStatisticsEnabled, reset, resetStatistics, setStaleStatsThreshold, setStatisticsEnabledpublic void init(EmbeddedCacheManager cacheManager, GlobalConfiguration configuration)
public void start()
@ManagedAttribute(description="The maximum amount of free memory in bytes across the cluster JVMs",
displayName="Cluster wide available memory.")
public long getMemoryAvailable()
getMemoryAvailable in interface ClusterContainerStats@ManagedAttribute(description="The maximum amount of memory that JVMs across the cluster will attempt to utilise in bytes",
displayName="Cluster wide max memory of JVMs")
public long getMemoryMax()
getMemoryMax in interface ClusterContainerStats@ManagedAttribute(description="The total amount of memory in the JVMs across the cluster in bytes",
displayName="Cluster wide total memory")
public long getMemoryTotal()
getMemoryTotal in interface ClusterContainerStats@ManagedAttribute(description="The amount of memory used by JVMs across the cluster in bytes",
displayName="Cluster wide memory utilisation")
public long getMemoryUsed()
getMemoryUsed in interface ClusterContainerStatspublic long getStaleStatsThreshold()
public void setStaleStatsThreshold(long threshold)
threshold - the time in milliseconds, to wait between requests before re-retrieving cluster wide statspublic void reset()
Copyright © 2021 JBoss by Red Hat. All rights reserved.