Package org.openspaces.admin.internal.os
Class DefaultOperatingSystems
java.lang.Object
org.openspaces.admin.internal.os.DefaultOperatingSystems
- All Implemented Interfaces:
Iterable<OperatingSystem>,AdminAware,InternalOperatingSystems,OperatingSystems,StatisticsMonitor
- Author:
- kimchy
-
Field Summary
Fields inherited from interface org.openspaces.admin.StatisticsMonitor
DEFAULT_HISTORY_SIZE, DEFAULT_MONITOR_INTERVAL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddOperatingSystem(OperatingSystem operatingSystem) getAdmin()Returns theAdminassociated with this element.Returns 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.booleanReturnstrueif statistics are now being monitored.iterator()voidvoidsetStatisticsHistorySize(int historySize) Sets the history size of number of statistics stored.voidsetStatisticsInterval(long interval, TimeUnit timeUnit) Sets the statistics interval, automatically updating the monitoring scheduled tasks if monitoring is enabled.voidStarts the statistics monitor, starting a scheduled monitor that polls for statistics.voidStops the statistics monitor.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
DefaultOperatingSystems
-
-
Method Details
-
getAdmin
Description copied from interface:AdminAwareReturns theAdminassociated with this element.- Specified by:
getAdminin interfaceAdminAware
-
getOperatingSystems
Description copied from interface:OperatingSystemsReturns all currently discovered operating systems.- Specified by:
getOperatingSystemsin interfaceOperatingSystems
-
iterator
- Specified by:
iteratorin interfaceIterable<OperatingSystem>
-
getSize
public int getSize()Description copied from interface:OperatingSystemsReturns the number of operating systems current discovered.- Specified by:
getSizein interfaceOperatingSystems
-
getDetails
Description copied from interface:OperatingSystemsReturns an aggregated view of all the operating systems details.- Specified by:
getDetailsin interfaceOperatingSystems
-
getStatistics
Description copied from interface:OperatingSystemsReturns an aggregated view of all the operating systems statistics.- Specified by:
getStatisticsin interfaceOperatingSystems
-
setStatisticsInterval
Description copied from interface:StatisticsMonitorSets the statistics interval, automatically updating the monitoring scheduled tasks if monitoring is enabled.- Specified by:
setStatisticsIntervalin interfaceStatisticsMonitor
-
setStatisticsHistorySize
public void setStatisticsHistorySize(int historySize) Description copied from interface:StatisticsMonitorSets the history size of number of statistics stored.- Specified by:
setStatisticsHistorySizein interfaceStatisticsMonitor
-
startStatisticsMonitor
public void startStatisticsMonitor()Description copied from interface:StatisticsMonitorStarts the statistics monitor, starting a scheduled monitor that polls for statistics. Monitoring is required only when wanting to receive statistics change events.- Specified by:
startStatisticsMonitorin interfaceStatisticsMonitor
-
stopStatisticsMonitor
public void stopStatisticsMonitor()Description copied from interface:StatisticsMonitorStops the statistics monitor.- Specified by:
stopStatisticsMonitorin interfaceStatisticsMonitor
-
isMonitoring
public boolean isMonitoring()Description copied from interface:StatisticsMonitorReturnstrueif statistics are now being monitored.- Specified by:
isMonitoringin interfaceStatisticsMonitor
-
getStatisticsChanged
Description copied from interface:OperatingSystemsAllows to registerOperatingSystemsStatisticsChangedEventListenerto be notified when statistics have changed. Note, statistics monitoring need to be started usingStatisticsMonitor.startStatisticsMonitor()in order to receive events.- Specified by:
getStatisticsChangedin interfaceOperatingSystems
-
getOperatingSystemStatisticsChanged
Description copied from interface:OperatingSystemsAllows to registerOperatingSystemStatisticsChangedEventListenerto be notified when statistics have changed. Note, statistics monitoring need to be started usingStatisticsMonitor.startStatisticsMonitor()in order to receive events.- Specified by:
getOperatingSystemStatisticsChangedin interfaceOperatingSystems
-
getByUID
Description copied from interface:OperatingSystemsReturns the operating system matching its uid.- Specified by:
getByUIDin interfaceOperatingSystems
-
getUids
Description copied from interface:OperatingSystemsReturns a map of operating systems with the key as the uid.- Specified by:
getUidsin interfaceOperatingSystems
-
addOperatingSystem
- Specified by:
addOperatingSystemin interfaceInternalOperatingSystems
-
removeOperatingSystem
- Specified by:
removeOperatingSystemin interfaceInternalOperatingSystems
-