Class 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
    • 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: HealthJMXExposer
        Returns the total amount of CPUs for the JVM.
        Specified by:
        getNumberOfCpus in interface HealthJMXExposer
      • 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: HealthJMXExposer
        Returns the amount of total memory (KB) in the host.
        Specified by:
        getTotalMemoryKb in interface HealthJMXExposer
      • 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: HealthJMXExposer
        Returns the amount of free memory (KB) in the host.
        Specified by:
        getFreeMemoryKb in interface HealthJMXExposer
      • getClusterHealth

        @ManagedAttribute(displayName="Cluster health status",
                          description="Cluster health status")
        public String getClusterHealth()
        Description copied from interface: HealthJMXExposer
        Returns cluster health status.
        Specified by:
        getClusterHealth in interface HealthJMXExposer
      • getNumberOfNodes

        @ManagedAttribute(displayName="Total nodes in the cluster",
                          description="Total nodes in the cluster")
        public int getNumberOfNodes()
        Description copied from interface: HealthJMXExposer
        Returns total nodes in the cluster.
        Specified by:
        getNumberOfNodes in interface HealthJMXExposer
      • getCacheHealth

        @ManagedAttribute(displayName="Per Cache statuses",
                          description="Per Cache statuses")
        public String[] getCacheHealth()
        Description copied from interface: HealthJMXExposer
        Returns per Cache statuses.
        Specified by:
        getCacheHealth in interface HealthJMXExposer