public interface OperatingSystems extends Iterable<OperatingSystem>, AdminAware, StatisticsMonitor
OperatingSystem
s 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.
DEFAULT_HISTORY_SIZE, DEFAULT_MONITOR_INTERVAL
Modifier and Type | Method and Description |
---|---|
OperatingSystem |
getByUID(String uid)
Returns the operating system matching its uid.
|
OperatingSystemsDetails |
getDetails()
Returns an aggregated view of all the operating systems details.
|
OperatingSystem[] |
getOperatingSystems()
Returns all currently discovered operating systems.
|
OperatingSystemStatisticsChangedEventManager |
getOperatingSystemStatisticsChanged()
Allows to register
OperatingSystemStatisticsChangedEventListener
to be notified when statistics have changed. |
int |
getSize()
Returns the number of operating systems current discovered.
|
OperatingSystemsStatistics |
getStatistics()
Returns an aggregated view of all the operating systems statistics.
|
OperatingSystemsStatisticsChangedEventManager |
getStatisticsChanged()
Allows to register
OperatingSystemsStatisticsChangedEventListener
to be notified when statistics have changed. |
Map<String,OperatingSystem> |
getUids()
Returns a map of operating systems with the key as the uid.
|
forEach, iterator, spliterator
getAdmin
isMonitoring, setStatisticsHistorySize, setStatisticsInterval, startStatisticsMonitor, stopStatisticsMonitor
OperatingSystem[] getOperatingSystems()
OperatingSystem getByUID(String uid)
Map<String,OperatingSystem> getUids()
int getSize()
OperatingSystemsDetails getDetails()
OperatingSystemsStatistics getStatistics()
OperatingSystemsStatisticsChangedEventManager getStatisticsChanged()
OperatingSystemsStatisticsChangedEventListener
to be notified when statistics have changed. Note, statistics monitoring need to be started
using StatisticsMonitor.startStatisticsMonitor()
in order to receive events.OperatingSystemStatisticsChangedEventManager getOperatingSystemStatisticsChanged()
OperatingSystemStatisticsChangedEventListener
to be notified when statistics have changed. Note, statistics monitoring need to be started
using StatisticsMonitor.startStatisticsMonitor()
in order to receive events.Copyright © GigaSpaces.