Package org.openspaces.admin.os
Interface OperatingSystems
- All Superinterfaces:
AdminAware,Iterable<OperatingSystem>,StatisticsMonitor
- All Known Subinterfaces:
InternalOperatingSystems
- All Known Implementing Classes:
DefaultOperatingSystems
Machines hold all the different
OperatingSystems that are currently discovered.
Provides simple means to get all the current operating systems, as well as as registering for operating system lifecycle (added and removed) events.
Provides the ability to start monitoring statistics in a polling fashion. Once monitoring is
performed, a statistics event listener can be registered in order to receive statistics change
events. Accessing the statistics (without actively monitoring them) is also possible using the
getStatistics().
When starting to monitor for statistics, each OperatingSystem
will also start its statistics monitoring, and newly discovered ones will also start monitoring
for statistics automatically.
- Author:
- kimchy
-
Field Summary
Fields inherited from interface org.openspaces.admin.StatisticsMonitor
DEFAULT_HISTORY_SIZE, DEFAULT_MONITOR_INTERVAL -
Method Summary
Modifier and TypeMethodDescriptionReturns the operating system matching its uid.Returns an aggregated view of all the operating systems details.Returns all currently discovered operating systems.Allows to registerOperatingSystemStatisticsChangedEventListenerto be notified when statistics have changed.intgetSize()Returns the number of operating systems current discovered.Returns an aggregated view of all the operating systems statistics.Allows to registerOperatingSystemsStatisticsChangedEventListenerto be notified when statistics have changed.getUids()Returns a map of operating systems with the key as the uid.Methods inherited from interface org.openspaces.admin.AdminAware
getAdminMethods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface org.openspaces.admin.StatisticsMonitor
isMonitoring, setStatisticsHistorySize, setStatisticsInterval, startStatisticsMonitor, stopStatisticsMonitor
-
Method Details
-
getOperatingSystems
OperatingSystem[] getOperatingSystems()Returns all currently discovered operating systems. -
getByUID
Returns the operating system matching its uid. -
getUids
Map<String,OperatingSystem> getUids()Returns a map of operating systems with the key as the uid. -
getSize
int getSize()Returns the number of operating systems current discovered. -
getDetails
OperatingSystemsDetails getDetails()Returns an aggregated view of all the operating systems details. -
getStatistics
OperatingSystemsStatistics getStatistics()Returns an aggregated view of all the operating systems statistics. -
getStatisticsChanged
OperatingSystemsStatisticsChangedEventManager getStatisticsChanged()Allows to registerOperatingSystemsStatisticsChangedEventListenerto be notified when statistics have changed. Note, statistics monitoring need to be started usingStatisticsMonitor.startStatisticsMonitor()in order to receive events. -
getOperatingSystemStatisticsChanged
OperatingSystemStatisticsChangedEventManager getOperatingSystemStatisticsChanged()Allows to registerOperatingSystemStatisticsChangedEventListenerto be notified when statistics have changed. Note, statistics monitoring need to be started usingStatisticsMonitor.startStatisticsMonitor()in order to receive events.
-