@MBean(objectName="CacheContainerHealth",
description="Health Check API")
public class HealthJMXExposerImpl
extends Object
implements HealthJMXExposer
OBJECT_NAME| Constructor and Description |
|---|
HealthJMXExposerImpl(Health health) |
| Modifier and Type | Method and Description |
|---|---|
String[] |
getCacheHealth()
Returns per Cache statuses.
|
String |
getClusterHealth()
Returns cluster health status.
|
String |
getClusterName()
Returns cluster name.
|
long |
getFreeMemoryKb()
Returns the amount of free memory (KB) in the host.
|
int |
getNumberOfCpus()
Returns the total amount of CPUs for the JVM.
|
int |
getNumberOfNodes()
Returns total nodes in the cluster.
|
long |
getTotalMemoryKb()
Returns the amount of total memory (KB) in the host.
|
public HealthJMXExposerImpl(Health health)
@ManagedAttribute(displayName="Number of CPUs in the host",
description="Number of CPUs in the host")
public int getNumberOfCpus()
HealthJMXExposergetNumberOfCpus in interface HealthJMXExposer@ManagedAttribute(displayName="The amount of total memory (KB) in the host",
description="The amount of total memory (KB) in the host",
units=KILO_BYTES)
public long getTotalMemoryKb()
HealthJMXExposergetTotalMemoryKb in interface HealthJMXExposer@ManagedAttribute(displayName="The amount of free memory (KB) in the host",
description="The amount of free memory (KB) in the host",
units=KILO_BYTES)
public long getFreeMemoryKb()
HealthJMXExposergetFreeMemoryKb in interface HealthJMXExposer@ManagedAttribute(displayName="Cluster health status",
description="Cluster health status")
public String getClusterHealth()
HealthJMXExposergetClusterHealth in interface HealthJMXExposer@ManagedAttribute(displayName="Cluster name",
description="Cluster name")
public String getClusterName()
HealthJMXExposergetClusterName in interface HealthJMXExposer@ManagedAttribute(displayName="Total nodes in the cluster",
description="Total nodes in the cluster")
public int getNumberOfNodes()
HealthJMXExposergetNumberOfNodes in interface HealthJMXExposer@ManagedAttribute(displayName="Per Cache statuses",
description="Per Cache statuses")
public String[] getCacheHealth()
HealthJMXExposergetCacheHealth in interface HealthJMXExposerCopyright © 2021 JBoss by Red Hat. All rights reserved.