Package org.infinispan.health.impl.jmx
Class HealthJMXExposerImpl
- java.lang.Object
-
- org.infinispan.health.impl.jmx.HealthJMXExposerImpl
-
- All Implemented Interfaces:
HealthJMXExposer
@MBean(objectName="CacheContainerHealth", description="Health Check API") public class HealthJMXExposerImpl extends Object implements HealthJMXExposerA 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.StringgetClusterHealth()Returns cluster health status.StringgetClusterName()Returns cluster name.longgetFreeMemoryKb()Returns the amount of free memory (KB) in the host.intgetNumberOfCpus()Returns the total amount of CPUs for the JVM.intgetNumberOfNodes()Returns total nodes in the cluster.longgetTotalMemoryKb()Returns the amount of total memory (KB) in the host.
-
-
-
Constructor Detail
-
HealthJMXExposerImpl
public HealthJMXExposerImpl(Health health)
-
-
Method Detail
-
getNumberOfCpus
@ManagedAttribute(displayName="Number of CPUs in the host", description="Number of CPUs in the host") public int getNumberOfCpus()Description copied from interface:HealthJMXExposerReturns the total amount of CPUs for the JVM.- Specified by:
getNumberOfCpusin interfaceHealthJMXExposer
-
getTotalMemoryKb
@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()Description copied from interface:HealthJMXExposerReturns the amount of total memory (KB) in the host.- Specified by:
getTotalMemoryKbin interfaceHealthJMXExposer
-
getFreeMemoryKb
@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()Description copied from interface:HealthJMXExposerReturns the amount of free memory (KB) in the host.- Specified by:
getFreeMemoryKbin interfaceHealthJMXExposer
-
getClusterHealth
@ManagedAttribute(displayName="Cluster health status", description="Cluster health status") public String getClusterHealth()Description copied from interface:HealthJMXExposerReturns cluster health status.- Specified by:
getClusterHealthin interfaceHealthJMXExposer
-
getClusterName
@ManagedAttribute(displayName="Cluster name", description="Cluster name") public String getClusterName()Description copied from interface:HealthJMXExposerReturns cluster name.- Specified by:
getClusterNamein interfaceHealthJMXExposer
-
getNumberOfNodes
@ManagedAttribute(displayName="Total nodes in the cluster", description="Total nodes in the cluster") public int getNumberOfNodes()Description copied from interface:HealthJMXExposerReturns total nodes in the cluster.- Specified by:
getNumberOfNodesin interfaceHealthJMXExposer
-
getCacheHealth
@ManagedAttribute(displayName="Per Cache statuses", description="Per Cache statuses") public String[] getCacheHealth()Description copied from interface:HealthJMXExposerReturns per Cache statuses.- Specified by:
getCacheHealthin interfaceHealthJMXExposer
-
-