Package org.openspaces.admin.internal.os
Class DefaultOperatingSystemsStatistics
java.lang.Object
org.openspaces.admin.internal.os.DefaultOperatingSystemsStatistics
- All Implemented Interfaces:
OperatingSystemsStatistics
- Author:
- kimchy
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultOperatingSystemsStatistics(OperatingSystemStatistics[] stats, OperatingSystemsStatistics previousStats, OperatingSystemsDetails details, int historySize) -
Method Summary
Modifier and TypeMethodDescriptionlongdoubledoublelongdoubleReturns the combined cpu perc (User + Sys + Nice + Wait)Returns the aggregated operating systems details.longdoubledoublelongdoubledoubledoubledoubledoubledoubledoubleReturns the previousOperatingSystemsStatistics.intgetSize()Returns the number of aggregatedOperatingSystemStatistics.Returns the timeline (from newest to oldest) history statistics, including this one.longReturns the timestamp when the aggregated statistics was computed.booleanisNA()Returnstrueif the statistics are not available.voidsetPreviousStats(OperatingSystemsStatistics previousStats)
-
Constructor Details
-
DefaultOperatingSystemsStatistics
public DefaultOperatingSystemsStatistics(OperatingSystemStatistics[] stats, OperatingSystemsStatistics previousStats, OperatingSystemsDetails details, int historySize)
-
-
Method Details
-
isNA
public boolean isNA()Description copied from interface:OperatingSystemsStatisticsReturnstrueif the statistics are not available.- Specified by:
isNAin interfaceOperatingSystemsStatistics
-
getTimestamp
public long getTimestamp()Description copied from interface:OperatingSystemsStatisticsReturns the timestamp when the aggregated statistics was computed.- Specified by:
getTimestampin interfaceOperatingSystemsStatistics
-
getSize
public int getSize()Description copied from interface:OperatingSystemsStatisticsReturns the number of aggregatedOperatingSystemStatistics.- Specified by:
getSizein interfaceOperatingSystemsStatistics
-
getPrevious
Description copied from interface:OperatingSystemsStatisticsReturns the previousOperatingSystemsStatistics.- Specified by:
getPreviousin interfaceOperatingSystemsStatistics
-
getTimeline
Description copied from interface:OperatingSystemsStatisticsReturns the timeline (from newest to oldest) history statistics, including this one.- Specified by:
getTimelinein interfaceOperatingSystemsStatistics
-
setPreviousStats
-
getDetails
Description copied from interface:OperatingSystemsStatisticsReturns the aggregated operating systems details.- Specified by:
getDetailsin interfaceOperatingSystemsStatistics
-
getFreeSwapSpaceSizeInBytes
public long getFreeSwapSpaceSizeInBytes()- Specified by:
getFreeSwapSpaceSizeInBytesin interfaceOperatingSystemsStatistics
-
getFreeSwapSpaceSizeInMB
public double getFreeSwapSpaceSizeInMB()- Specified by:
getFreeSwapSpaceSizeInMBin interfaceOperatingSystemsStatistics
-
getFreeSwapSpaceSizeInGB
public double getFreeSwapSpaceSizeInGB()- Specified by:
getFreeSwapSpaceSizeInGBin interfaceOperatingSystemsStatistics
-
getFreePhysicalMemorySizeInBytes
public long getFreePhysicalMemorySizeInBytes()- Specified by:
getFreePhysicalMemorySizeInBytesin interfaceOperatingSystemsStatistics
-
getFreePhysicalMemorySizeInMB
public double getFreePhysicalMemorySizeInMB()- Specified by:
getFreePhysicalMemorySizeInMBin interfaceOperatingSystemsStatistics
-
getFreePhysicalMemorySizeInGB
public double getFreePhysicalMemorySizeInGB()- Specified by:
getFreePhysicalMemorySizeInGBin interfaceOperatingSystemsStatistics
-
getActualFreePhysicalMemorySizeInBytes
public long getActualFreePhysicalMemorySizeInBytes()- Specified by:
getActualFreePhysicalMemorySizeInBytesin interfaceOperatingSystemsStatistics
-
getActualFreePhysicalMemorySizeInMB
public double getActualFreePhysicalMemorySizeInMB()- Specified by:
getActualFreePhysicalMemorySizeInMBin interfaceOperatingSystemsStatistics
-
getActualFreePhysicalMemorySizeInGB
public double getActualFreePhysicalMemorySizeInGB()- Specified by:
getActualFreePhysicalMemorySizeInGBin interfaceOperatingSystemsStatistics
-
getCpuPerc
public double getCpuPerc()Description copied from interface:OperatingSystemsStatisticsReturns the combined cpu perc (User + Sys + Nice + Wait)- Specified by:
getCpuPercin interfaceOperatingSystemsStatistics
-
getCpuPercFormatted
- Specified by:
getCpuPercFormattedin interfaceOperatingSystemsStatistics
-
getMinCpuPerc
public double getMinCpuPerc()- Specified by:
getMinCpuPercin interfaceOperatingSystemsStatistics
-
getMinCpuPercFormatted
- Specified by:
getMinCpuPercFormattedin interfaceOperatingSystemsStatistics
-
getMaxCpuPerc
public double getMaxCpuPerc()- Specified by:
getMaxCpuPercin interfaceOperatingSystemsStatistics
-
getMaxCpuPercFormatted
- Specified by:
getMaxCpuPercFormattedin interfaceOperatingSystemsStatistics
-
getMemoryUsedPerc
public double getMemoryUsedPerc()- Specified by:
getMemoryUsedPercin interfaceOperatingSystemsStatistics
-
getMinMemoryUsedPerc
public double getMinMemoryUsedPerc()- Specified by:
getMinMemoryUsedPercin interfaceOperatingSystemsStatistics
-
getMaxMemoryUsedPerc
public double getMaxMemoryUsedPerc()- Specified by:
getMaxMemoryUsedPercin interfaceOperatingSystemsStatistics
-
getMemoryUsedPercFormatted
- Specified by:
getMemoryUsedPercFormattedin interfaceOperatingSystemsStatistics
-
getMinMemoryUsedPercFormatted
- Specified by:
getMinMemoryUsedPercFormattedin interfaceOperatingSystemsStatistics
-
getMaxMemoryUsedPercFormatted
- Specified by:
getMaxMemoryUsedPercFormattedin interfaceOperatingSystemsStatistics
-
getActualMemoryUsed
public long getActualMemoryUsed()- Specified by:
getActualMemoryUsedin interfaceOperatingSystemsStatistics- Returns:
- Actual Memory Used, in bytes
-