GigaSpaces XAP 7.0 API

org.openspaces.admin.os
Interface OperatingSystems

All Superinterfaces:
AdminAware, Iterable<OperatingSystem>, StatisticsMonitor

public interface OperatingSystems
extends Iterable<OperatingSystem>, AdminAware, StatisticsMonitor

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
 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.
 
Methods inherited from interface java.lang.Iterable
iterator
 
Methods inherited from interface org.openspaces.admin.AdminAware
getAdmin
 
Methods inherited from interface org.openspaces.admin.StatisticsMonitor
isMonitoring, setStatisticsHistorySize, setStatisticsInterval, startStatisticsMonitor, stopStatisticsMontior
 

Method Detail

getOperatingSystems

OperatingSystem[] getOperatingSystems()
Returns all currently discovered operating systems.


getByUID

OperatingSystem getByUID(String uid)
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 register OperatingSystemsStatisticsChangedEventListener to be notified when statistics have changed. Note, statistics monitoring need to be started using StatisticsMonitor.startStatisticsMonitor() in order to receive events.


getOperatingSystemStatisticsChanged

OperatingSystemStatisticsChangedEventManager getOperatingSystemStatisticsChanged()
Allows to register OperatingSystemStatisticsChangedEventListener to be notified when statistics have changed. Note, statistics monitoring need to be started using StatisticsMonitor.startStatisticsMonitor() in order to receive events.


GigaSpaces XAP 7.0 API

Copyright © GigaSpaces.