Class Health

  • All Implemented Interfaces:
    HealthMBean

    public class Health
    extends Object
    implements HealthMBean
    Managed bean implementation that exposes health indicators.
    Since:
    11.2.0
    Version:
    $Revision: 24260 $ $Date: 2020-12-02 19:10:55 -0300 (Wed, 02 Dec 2020) $
    • Constructor Detail

      • Health

        public Health()
    • Method Detail

      • getDatabaseLatency

        public long getDatabaseLatency()
                                throws Exception
        Description copied from interface: HealthMBean
        Health indicator of the latency of the used database.
        Specified by:
        getDatabaseLatency in interface HealthMBean
        Returns:
        The latency of the database(in milliseconds).
        Throws:
        Exception
      • getNumberOfLocks15SecondsOld

        public int getNumberOfLocks15SecondsOld()
                                         throws Exception
        Description copied from interface: HealthMBean
        Health indicator of the number of locks creates in more than fifty seconds.
        Specified by:
        getNumberOfLocks15SecondsOld in interface HealthMBean
        Returns:
        The count of lock with lifetime higher than fifty seconds
        Throws:
        Exception
      • getNumberOfPortalCachesFull

        public int getNumberOfPortalCachesFull()
                                        throws Exception
        Description copied from interface: HealthMBean
        Health indicator of the number of portal cache with full capacity.
        Specified by:
        getNumberOfPortalCachesFull in interface HealthMBean
        Returns:
        The count of full capacity portal cache.
        Throws:
        Exception
      • getProcessQueueTotalProcess

        public int getProcessQueueTotalProcess()
                                        throws Exception
        Description copied from interface: HealthMBean
        Health indicator of the process queue statistics, this is for retrieve the total number of items in queue.
        Specified by:
        getProcessQueueTotalProcess in interface HealthMBean
        Returns:
        The total of items in queue;
        Throws:
        Exception
      • getProcessQueueRunningItems

        public int getProcessQueueRunningItems()
                                        throws Exception
        Description copied from interface: HealthMBean
        Health indicator of the process queue statistics, this is for retrieve the number of running items in queue.
        Specified by:
        getProcessQueueRunningItems in interface HealthMBean
        Returns:
        The number of running items in queue;
        Throws:
        Exception
      • getProcessQueueScheduleItems

        public int getProcessQueueScheduleItems()
                                         throws Exception
        Description copied from interface: HealthMBean
        Health indicator of the process queue statistics, this is for retrieve the number of schedule items in queue.
        Specified by:
        getProcessQueueScheduleItems in interface HealthMBean
        Returns:
        The number of schedule items in queue;
        Throws:
        Exception
      • getProcessQueueQueuedItems

        public int getProcessQueueQueuedItems()
                                       throws Exception
        Description copied from interface: HealthMBean
        Health indicator of the process queue statistics, this is for retrieve the number of waiting items in queue.
        Specified by:
        getProcessQueueQueuedItems in interface HealthMBean
        Returns:
        The number of waiting items in queue;
        Throws:
        Exception
      • getProcessQueueFailedItems

        public int getProcessQueueFailedItems()
                                       throws Exception
        Description copied from interface: HealthMBean
        Health indicator of the process queue statistics, this is for retrieve the number of failed items in queue.
        Specified by:
        getProcessQueueFailedItems in interface HealthMBean
        Returns:
        The number of failed items in queue;
        Throws:
        Exception
      • getBigDataRepositoryErrorLevel

        public int getBigDataRepositoryErrorLevel()
                                           throws Exception
        Description copied from interface: HealthMBean
        Health indicator of the big data cluster status.
        Specified by:
        getBigDataRepositoryErrorLevel in interface HealthMBean
        Returns:
        the error level of the repository: 0 if green, 1 if yellow, 2 if red and will return -1 if was unable to evaluate the repository status;
        Throws:
        Exception
      • getLoadAveragePerProc

        public double getLoadAveragePerProc()
                                     throws Exception
        Description copied from interface: HealthMBean
        Returns the System Load Average per Available Core Processors.
        Specified by:
        getLoadAveragePerProc in interface HealthMBean
        Returns:
        the System Load Average per Available Core Processors.
        Throws:
        Exception
      • getNumberOfCachedPagesExpiredSince5m

        public long getNumberOfCachedPagesExpiredSince5m()
                                                  throws Exception
        Description copied from interface: HealthMBean
        Returns the number of cached pages expired under five minutes ago.
        Specified by:
        getNumberOfCachedPagesExpiredSince5m in interface HealthMBean
        Returns:
        the number of cached pages expired under five minutes ago.
        Throws:
        Exception