Package lumis.portalmanagement.jmx
Class Health
- java.lang.Object
-
- lumis.portalmanagement.jmx.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 Summary
Constructors Constructor Description Health()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getAvgWebResourceRenderDurationOfLastFiveMinutes()
Health indicator of the average render time of the web resources, in the last five minutes.int
getBigDataRepositoryErrorLevel()
Health indicator of the big data cluster status.long
getDatabaseLatency()
Health indicator of the latency of the used database.double
getLoadAveragePerProc()
Returns the System Load Average per Available Core Processors.long
getNumberOfCachedPagesExpiredSince5m()
Returns the number of cached pages expired under five minutes ago.int
getNumberOfCachedPagesWithError()
Health indicator for the number of page cache with error.int
getNumberOfClocksExecutingMoreThanTwoMinutes()
Health indicator of the number of clocks running more than two minutes.int
getNumberOfLocks15SecondsOld()
Health indicator of the number of locks creates in more than fifty seconds.long
getNumberOfMonitoredUsers()
Returns the number o monitored users.int
getNumberOfPortalCachesFull()
Health indicator of the number of portal cache with full capacity.long
getNumberOfRegisteredUsers()
Returns the number o registered users.long
getNumberOfStandardGroupMembers()
Returns the number of standard group members.long
getNumberOfWebResources()
Returns the number of web resources.int
getProcessQueueFailedItems()
Health indicator of the process queue statistics, this is for retrieve the number of failed items in queue.int
getProcessQueueQueuedItems()
Health indicator of the process queue statistics, this is for retrieve the number of waiting items in queue.int
getProcessQueueRunningItems()
Health indicator of the process queue statistics, this is for retrieve the number of running items in queue.int
getProcessQueueScheduleItems()
Health indicator of the process queue statistics, this is for retrieve the number of schedule items in queue.int
getProcessQueueTotalProcess()
Health indicator of the process queue statistics, this is for retrieve the total number of items in queue.
-
-
-
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 interfaceHealthMBean
- Returns:
- The latency of the database(in milliseconds).
- Throws:
Exception
-
getNumberOfCachedPagesWithError
public int getNumberOfCachedPagesWithError() throws Exception
Description copied from interface:HealthMBean
Health indicator for the number of page cache with error.- Specified by:
getNumberOfCachedPagesWithError
in interfaceHealthMBean
- Returns:
- The count of page cache with error.
- Throws:
Exception
-
getNumberOfClocksExecutingMoreThanTwoMinutes
public int getNumberOfClocksExecutingMoreThanTwoMinutes() throws Exception
Description copied from interface:HealthMBean
Health indicator of the number of clocks running more than two minutes.- Specified by:
getNumberOfClocksExecutingMoreThanTwoMinutes
in interfaceHealthMBean
- Returns:
- The count of clock running more than two minutes.
- 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 interfaceHealthMBean
- Returns:
- The count of lock with lifetime higher than fifty seconds
- Throws:
Exception
-
getAvgWebResourceRenderDurationOfLastFiveMinutes
public long getAvgWebResourceRenderDurationOfLastFiveMinutes() throws 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 interfaceHealthMBean
- Returns:
- the average render time of the web resources.
- 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 interfaceHealthMBean
- 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 interfaceHealthMBean
- 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 interfaceHealthMBean
- 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 interfaceHealthMBean
- 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 interfaceHealthMBean
- 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 interfaceHealthMBean
- 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 interfaceHealthMBean
- 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 interfaceHealthMBean
- Returns:
- the System Load Average per Available Core Processors.
- Throws:
Exception
-
getNumberOfRegisteredUsers
public long getNumberOfRegisteredUsers() throws Exception
Description copied from interface:HealthMBean
Returns the number o registered users.- Specified by:
getNumberOfRegisteredUsers
in interfaceHealthMBean
- Returns:
- the number o registered users.
- Throws:
Exception
-
getNumberOfMonitoredUsers
public long getNumberOfMonitoredUsers() throws Exception
Description copied from interface:HealthMBean
Returns the number o monitored users.- Specified by:
getNumberOfMonitoredUsers
in interfaceHealthMBean
- Returns:
- the number o monitored users.
- Throws:
Exception
-
getNumberOfStandardGroupMembers
public long getNumberOfStandardGroupMembers() throws Exception
Description copied from interface:HealthMBean
Returns the number of standard group members.- Specified by:
getNumberOfStandardGroupMembers
in interfaceHealthMBean
- Returns:
- the number of standard group members.
- Throws:
Exception
-
getNumberOfWebResources
public long getNumberOfWebResources() throws Exception
Description copied from interface:HealthMBean
Returns the number of web resources.- Specified by:
getNumberOfWebResources
in interfaceHealthMBean
- Returns:
- the number of web resources.
- 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 interfaceHealthMBean
- Returns:
- the number of cached pages expired under five minutes ago.
- Throws:
Exception
-
-