Class HostsStatistics
java.lang.Object
javax.management.NotificationBroadcasterSupport
org.opencastproject.serviceregistry.impl.jmx.HostsStatistics
- All Implemented Interfaces:
NotificationBroadcaster,NotificationEmitter,HostsStatisticsMXBean
public class HostsStatistics
extends NotificationBroadcasterSupport
implements HostsStatisticsMXBean
-
Constructor Summary
ConstructorsConstructorDescriptionHostsStatistics(List<org.opencastproject.serviceregistry.api.ServiceStatistics> statistics) -
Method Summary
Modifier and TypeMethodDescriptionString[]getAll()Gets a list of all hostsString[]Gets a list of hosts in maintenance modeintGets the number of hosts in maintenance modeString[]Gets a list of offline hostsintGets the number of offline hostsString[]Gets a list of online hostsintGets the number of online hostsintGets the total number of hostsvoidupdateHost(org.opencastproject.serviceregistry.api.HostRegistration host) Methods inherited from class javax.management.NotificationBroadcasterSupport
addNotificationListener, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
-
Constructor Details
-
HostsStatistics
-
-
Method Details
-
updateHost
public void updateHost(org.opencastproject.serviceregistry.api.HostRegistration host) -
getNotificationInfo
- Specified by:
getNotificationInfoin interfaceNotificationBroadcaster- Overrides:
getNotificationInfoin classNotificationBroadcasterSupport
-
getTotalCount
public int getTotalCount()Description copied from interface:HostsStatisticsMXBeanGets the total number of hosts- Specified by:
getTotalCountin interfaceHostsStatisticsMXBean- Returns:
- the number of hosts
- See Also:
-
getOnlineCount
public int getOnlineCount()Description copied from interface:HostsStatisticsMXBeanGets the number of online hosts- Specified by:
getOnlineCountin interfaceHostsStatisticsMXBean- Returns:
- the number of online hosts
- See Also:
-
getOfflineCount
public int getOfflineCount()Description copied from interface:HostsStatisticsMXBeanGets the number of offline hosts- Specified by:
getOfflineCountin interfaceHostsStatisticsMXBean- Returns:
- the number of offline hosts
- See Also:
-
getInMaintenanceCount
public int getInMaintenanceCount()Description copied from interface:HostsStatisticsMXBeanGets the number of hosts in maintenance mode- Specified by:
getInMaintenanceCountin interfaceHostsStatisticsMXBean- Returns:
- the number of hosts in maintenance mode
- See Also:
-
getAll
Description copied from interface:HostsStatisticsMXBeanGets a list of all hosts- Specified by:
getAllin interfaceHostsStatisticsMXBean- Returns:
- an array including all hosts
- See Also:
-
getOnline
Description copied from interface:HostsStatisticsMXBeanGets a list of online hosts- Specified by:
getOnlinein interfaceHostsStatisticsMXBean- Returns:
- an array including online hosts
- See Also:
-
getOffline
Description copied from interface:HostsStatisticsMXBeanGets a list of offline hosts- Specified by:
getOfflinein interfaceHostsStatisticsMXBean- Returns:
- an array including offline hosts
- See Also:
-
getInMaintenance
Description copied from interface:HostsStatisticsMXBeanGets a list of hosts in maintenance mode- Specified by:
getInMaintenancein interfaceHostsStatisticsMXBean- Returns:
- an array including hosts in maintenance mode
- See Also:
-