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 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 -
Method Summary
Modifier and TypeMethodDescriptionString[]Returns per Cache statuses.Returns cluster health status.Returns cluster name.longReturns the amount of free memory (KB) in the host.intReturns the total amount of CPUs for the JVM.intReturns total nodes in the cluster.longReturns the amount of total memory (KB) in the host.
-
Constructor Details
-
HealthJMXExposerImpl
-
-
Method Details
-
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
-