Package org.infinispan.health.impl.jmx
Class HealthJMXExposerImpl
- java.lang.Object
-
- org.infinispan.health.impl.jmx.HealthJMXExposerImpl
-
- All Implemented Interfaces:
HealthJMXExposer
public class HealthJMXExposerImpl extends Object implements HealthJMXExposer
A JMX exposer (or adapter) for Health API.- Since:
- 9.0
- Author:
- Sebastian Ćaskawiec
-
-
Field Summary
-
Fields inherited from interface org.infinispan.health.jmx.HealthJMXExposer
OBJECT_NAME
-
-
Constructor Summary
Constructors Constructor Description HealthJMXExposerImpl(Health health)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
HealthJMXExposerImpl
public HealthJMXExposerImpl(Health health)
-
-
Method Detail
-
getNumberOfCpus
public int getNumberOfCpus()
Description copied from interface:HealthJMXExposer
Returns the total amount of CPUs for the JVM.- Specified by:
getNumberOfCpus
in interfaceHealthJMXExposer
-
getTotalMemoryKb
public long getTotalMemoryKb()
Description copied from interface:HealthJMXExposer
Returns the amount of total memory (KB) in the host.- Specified by:
getTotalMemoryKb
in interfaceHealthJMXExposer
-
getFreeMemoryKb
public long getFreeMemoryKb()
Description copied from interface:HealthJMXExposer
Returns the amount of free memory (KB) in the host.- Specified by:
getFreeMemoryKb
in interfaceHealthJMXExposer
-
getClusterHealth
public String getClusterHealth()
Description copied from interface:HealthJMXExposer
Returns cluster health status.- Specified by:
getClusterHealth
in interfaceHealthJMXExposer
-
getClusterName
public String getClusterName()
Description copied from interface:HealthJMXExposer
Returns cluster name.- Specified by:
getClusterName
in interfaceHealthJMXExposer
-
getNumberOfNodes
public int getNumberOfNodes()
Description copied from interface:HealthJMXExposer
Returns total nodes in the cluster.- Specified by:
getNumberOfNodes
in interfaceHealthJMXExposer
-
getCacheHealth
public String[] getCacheHealth()
Description copied from interface:HealthJMXExposer
Returns per Cache statuses.- Specified by:
getCacheHealth
in interfaceHealthJMXExposer
-
-