Class ServicesStatistics
java.lang.Object
javax.management.NotificationBroadcasterSupport
org.opencastproject.serviceregistry.impl.jmx.ServicesStatistics
- All Implemented Interfaces:
NotificationBroadcaster,NotificationEmitter,ServicesStatisticsMXBean
public class ServicesStatistics
extends NotificationBroadcasterSupport
implements ServicesStatisticsMXBean
-
Constructor Summary
ConstructorsConstructorDescriptionServicesStatistics(String hostName, List<org.opencastproject.serviceregistry.api.ServiceStatistics> statistics) -
Method Summary
Modifier and TypeMethodDescriptionintGets the total number of services in error stateintGets the number of services in error state of this JMX nodeString[]Gets a list of all services in error stateString[]Gets a list of all services in error state of this JMX nodeintGets the total number of normal servicesintGets the number of normal services of this JMX nodeString[]Gets a list of all normal servicesString[]Gets a list of all normal services of this JMX nodeintGets the total number of servicesintGets the number of services of this JMX nodeString[]Gets a list of all servicesString[]Gets a list of all services of this JMX nodeintGets the total number of services in warning stateintGets the number of services in warning state of this JMX nodeString[]Gets a list of all services in warning stateString[]Gets a list of all services in warning state of this JMX nodevoidupdateService(org.opencastproject.serviceregistry.api.ServiceRegistration registration) Methods inherited from class javax.management.NotificationBroadcasterSupport
addNotificationListener, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
-
Constructor Details
-
ServicesStatistics
-
-
Method Details
-
updateService
public void updateService(org.opencastproject.serviceregistry.api.ServiceRegistration registration) -
getNotificationInfo
- Specified by:
getNotificationInfoin interfaceNotificationBroadcaster- Overrides:
getNotificationInfoin classNotificationBroadcasterSupport
-
getServiceCount
public int getServiceCount()Description copied from interface:ServicesStatisticsMXBeanGets the total number of services- Specified by:
getServiceCountin interfaceServicesStatisticsMXBean- Returns:
- the number of services
- See Also:
-
getServiceCountByNode
public int getServiceCountByNode()Description copied from interface:ServicesStatisticsMXBeanGets the number of services of this JMX node- Specified by:
getServiceCountByNodein interfaceServicesStatisticsMXBean- Returns:
- the number of services of this JMX node
- See Also:
-
getNormalServiceCountByNode
public int getNormalServiceCountByNode()Description copied from interface:ServicesStatisticsMXBeanGets the number of normal services of this JMX node- Specified by:
getNormalServiceCountByNodein interfaceServicesStatisticsMXBean- Returns:
- the number of normal services of this JMX node
- See Also:
-
getWarningServiceCountByNode
public int getWarningServiceCountByNode()Description copied from interface:ServicesStatisticsMXBeanGets the number of services in warning state of this JMX node- Specified by:
getWarningServiceCountByNodein interfaceServicesStatisticsMXBean- Returns:
- the number of services in warning state
- See Also:
-
getErrorServiceCountByNode
public int getErrorServiceCountByNode()Description copied from interface:ServicesStatisticsMXBeanGets the number of services in error state of this JMX node- Specified by:
getErrorServiceCountByNodein interfaceServicesStatisticsMXBean- Returns:
- the number of services in error state
- See Also:
-
getNormalServiceCount
public int getNormalServiceCount()Description copied from interface:ServicesStatisticsMXBeanGets the total number of normal services- Specified by:
getNormalServiceCountin interfaceServicesStatisticsMXBean- Returns:
- the number of normal services
- See Also:
-
getWarningServiceCount
public int getWarningServiceCount()Description copied from interface:ServicesStatisticsMXBeanGets the total number of services in warning state- Specified by:
getWarningServiceCountin interfaceServicesStatisticsMXBean- Returns:
- the number of services in warning state
- See Also:
-
getErrorServiceCount
public int getErrorServiceCount()Description copied from interface:ServicesStatisticsMXBeanGets the total number of services in error state- Specified by:
getErrorServiceCountin interfaceServicesStatisticsMXBean- Returns:
- the number of services in error state
- See Also:
-
getServices
Description copied from interface:ServicesStatisticsMXBeanGets a list of all services- Specified by:
getServicesin interfaceServicesStatisticsMXBean- Returns:
- an array including all services
- See Also:
-
getServicesByNode
Description copied from interface:ServicesStatisticsMXBeanGets a list of all services of this JMX node- Specified by:
getServicesByNodein interfaceServicesStatisticsMXBean- Returns:
- an array including all services of this JMX node
- See Also:
-
getNormalServices
Description copied from interface:ServicesStatisticsMXBeanGets a list of all normal services- Specified by:
getNormalServicesin interfaceServicesStatisticsMXBean- Returns:
- an array including all normal services
- See Also:
-
getNormalServicesByNode
Description copied from interface:ServicesStatisticsMXBeanGets a list of all normal services of this JMX node- Specified by:
getNormalServicesByNodein interfaceServicesStatisticsMXBean- Returns:
- an array including all normal services of this JMX node
- See Also:
-
getWarningServices
Description copied from interface:ServicesStatisticsMXBeanGets a list of all services in warning state- Specified by:
getWarningServicesin interfaceServicesStatisticsMXBean- Returns:
- an array including all services in warning state
- See Also:
-
getWarningServicesByNode
Description copied from interface:ServicesStatisticsMXBeanGets a list of all services in warning state of this JMX node- Specified by:
getWarningServicesByNodein interfaceServicesStatisticsMXBean- Returns:
- an array including all services in warning state of this JMX node
- See Also:
-
getErrorServices
Description copied from interface:ServicesStatisticsMXBeanGets a list of all services in error state- Specified by:
getErrorServicesin interfaceServicesStatisticsMXBean- Returns:
- an array including all services in error state
- See Also:
-
getErrorServicesByNode
Description copied from interface:ServicesStatisticsMXBeanGets a list of all services in error state of this JMX node- Specified by:
getErrorServicesByNodein interfaceServicesStatisticsMXBean- Returns:
- an array including all services in error state of this JMX node
- See Also:
-