@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()
HealthJMXExposer
getNumberOfCpus
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()
HealthJMXExposer
getTotalMemoryKb
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()
HealthJMXExposer
getFreeMemoryKb
in interface HealthJMXExposer
@ManagedAttribute(displayName="Cluster health status", description="Cluster health status") public String getClusterHealth()
HealthJMXExposer
getClusterHealth
in interface HealthJMXExposer
@ManagedAttribute(displayName="Cluster name", description="Cluster name") public String getClusterName()
HealthJMXExposer
getClusterName
in interface HealthJMXExposer
@ManagedAttribute(displayName="Total nodes in the cluster", description="Total nodes in the cluster") public int getNumberOfNodes()
HealthJMXExposer
getNumberOfNodes
in interface HealthJMXExposer
@ManagedAttribute(displayName="Per Cache statuses", description="Per Cache statuses") public String[] getCacheHealth()
HealthJMXExposer
getCacheHealth
in interface HealthJMXExposer
Copyright © 2021 JBoss by Red Hat. All rights reserved.