Class Health

  • All Implemented Interfaces:
    HealthMBean

    public class Health
    extends java.lang.Object
    implements HealthMBean
    Managed bean implementation that exposes health indicators.
    Since:
    11.2.0
    Version:
    $Revision$ $Date$
    • Constructor Detail

      • Health

        public Health()
    • Method Detail

      • getDatabaseLatency

        public long getDatabaseLatency()
                                throws java.lang.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:
        java.lang.Exception
      • getNumberOfCachedPagesWithError

        public int getNumberOfCachedPagesWithError()
                                            throws java.lang.Exception
        Description copied from interface: HealthMBean
        Health indicator for the number of page cache with error.
        Specified by:
        getNumberOfCachedPagesWithError in interface HealthMBean
        Returns:
        The count of page cache with error.
        Throws:
        java.lang.Exception
      • getNumberOfClocksExecutingMoreThanTwoMinutes

        public int getNumberOfClocksExecutingMoreThanTwoMinutes()
                                                         throws java.lang.Exception
        Description copied from interface: HealthMBean
        Health indicator of the number of clocks running more than two minutes.
        Specified by:
        getNumberOfClocksExecutingMoreThanTwoMinutes in interface HealthMBean
        Returns:
        The count of clock running more than two minutes.
        Throws:
        java.lang.Exception
      • getNumberOfLocks15SecondsOld

        public int getNumberOfLocks15SecondsOld()
                                         throws java.lang.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:
        java.lang.Exception
      • getAvgWebResourceRenderDurationOfLastFiveMinutes

        public long getAvgWebResourceRenderDurationOfLastFiveMinutes()
                                                              throws java.lang.Exception
        Description copied from interface: HealthMBean
        Health indicator of the average render time of the web resources, in the last five minutes.
        Specified by:
        getAvgWebResourceRenderDurationOfLastFiveMinutes in interface HealthMBean
        Returns:
        the average render time of the web resources.
        Throws:
        java.lang.Exception
      • getNumberOfPortalCachesFull

        public int getNumberOfPortalCachesFull()
                                        throws java.lang.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:
        java.lang.Exception
      • getProcessQueueTotalProcess

        public int getProcessQueueTotalProcess()
                                        throws java.lang.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:
        java.lang.Exception
      • getProcessQueueRunningItems

        public int getProcessQueueRunningItems()
                                        throws java.lang.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:
        java.lang.Exception
      • getProcessQueueScheduleItems

        public int getProcessQueueScheduleItems()
                                         throws java.lang.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:
        java.lang.Exception
      • getProcessQueueQueuedItems

        public int getProcessQueueQueuedItems()
                                       throws java.lang.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:
        java.lang.Exception
      • getProcessQueueFailedItems

        public int getProcessQueueFailedItems()
                                       throws java.lang.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:
        java.lang.Exception
      • getBigDataRepositoryErrorLevel

        public int getBigDataRepositoryErrorLevel()
                                           throws java.lang.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:
        java.lang.Exception
      • getLoadAveragePerProc

        public double getLoadAveragePerProc()
                                     throws java.lang.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:
        java.lang.Exception
      • getNumberOfRegisteredUsers

        public long getNumberOfRegisteredUsers()
                                        throws java.lang.Exception
        Description copied from interface: HealthMBean
        Returns the number o registered users.
        Specified by:
        getNumberOfRegisteredUsers in interface HealthMBean
        Returns:
        the number o registered users.
        Throws:
        java.lang.Exception
      • getNumberOfMonitoredUsers

        public long getNumberOfMonitoredUsers()
                                       throws java.lang.Exception
        Description copied from interface: HealthMBean
        Returns the number o monitored users.
        Specified by:
        getNumberOfMonitoredUsers in interface HealthMBean
        Returns:
        the number o monitored users.
        Throws:
        java.lang.Exception
      • getNumberOfStandardGroupMembers

        public long getNumberOfStandardGroupMembers()
                                             throws java.lang.Exception
        Description copied from interface: HealthMBean
        Returns the number of standard group members.
        Specified by:
        getNumberOfStandardGroupMembers in interface HealthMBean
        Returns:
        the number of standard group members.
        Throws:
        java.lang.Exception
      • getNumberOfWebResources

        public long getNumberOfWebResources()
                                     throws java.lang.Exception
        Description copied from interface: HealthMBean
        Returns the number of web resources.
        Specified by:
        getNumberOfWebResources in interface HealthMBean
        Returns:
        the number of web resources.
        Throws:
        java.lang.Exception
      • getNumberOfCachedPagesExpiredSince5m

        public long getNumberOfCachedPagesExpiredSince5m()
                                                  throws java.lang.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:
        java.lang.Exception