public class DefaultOperatingSystemStatistics extends Object implements OperatingSystemStatistics
OperatingSystemStatistics.NetworkStatistics| Constructor and Description |
|---|
DefaultOperatingSystemStatistics() |
DefaultOperatingSystemStatistics(OSStatistics stats,
OperatingSystemDetails details,
OperatingSystemStatistics previousStats,
int historySize,
long timeDelta) |
| Modifier and Type | Method and Description |
|---|---|
long |
getActualFreePhysicalMemorySizeInBytes() |
double |
getActualFreePhysicalMemorySizeInGB() |
double |
getActualFreePhysicalMemorySizeInMB() |
long |
getActualMemoryUsed() |
double |
getActualPhysicalMemoryUsedPerc()
Returns the percentage used of the actual physical memory out of the total physical memory.
|
long |
getAdminTimestamp()
Returns a timestamp that is in sync with where the admin API is running.
|
double |
getCpuPerc()
Returns the combined cpu perc (User + Sys + Nice + Wait)
|
String |
getCpuPercFormatted() |
OperatingSystemDetails |
getDetails()
Returns the operating system details.
|
long |
getFreePhysicalMemorySizeInBytes() |
double |
getFreePhysicalMemorySizeInGB() |
double |
getFreePhysicalMemorySizeInMB() |
long |
getFreeSwapSpaceSizeInBytes() |
double |
getFreeSwapSpaceSizeInGB() |
double |
getFreeSwapSpaceSizeInMB() |
Map<String,OperatingSystemStatistics.NetworkStatistics> |
getNetworkStats()
Returns the network statistics per network device.
|
double |
getPhysicalMemoryUsedPerc()
Returns the percentage used of physical memory out of the total physical memory space.
|
OperatingSystemStatistics |
getPrevious()
Returns the previous statistics taken.
|
double |
getSwapSpaceUsedPerc()
Returns the percentage used of swap space out of the total swap space.
|
List<OperatingSystemStatistics> |
getTimeline()
Returns the timeline (from newest to oldest) history statistics, including this one.
|
long |
getTimestamp()
Returns the timestamp when the statistics were take.
|
boolean |
isNA()
Returns
true if the statistics are not available. |
void |
setPreviousStats(OperatingSystemStatistics previosStats) |
public DefaultOperatingSystemStatistics()
public DefaultOperatingSystemStatistics(OSStatistics stats, OperatingSystemDetails details, OperatingSystemStatistics previousStats, int historySize, long timeDelta)
public boolean isNA()
OperatingSystemStatisticstrue if the statistics are not available.isNA in interface OperatingSystemStatisticspublic List<OperatingSystemStatistics> getTimeline()
OperatingSystemStatisticsgetTimeline in interface OperatingSystemStatisticspublic long getTimestamp()
OperatingSystemStatisticsgetTimestamp in interface OperatingSystemStatisticspublic long getAdminTimestamp()
OperatingSystemStatisticsgetAdminTimestamp in interface OperatingSystemStatisticspublic OperatingSystemDetails getDetails()
OperatingSystemStatisticsgetDetails in interface OperatingSystemStatisticspublic OperatingSystemStatistics getPrevious()
OperatingSystemStatisticsnull if this is the fist one.getPrevious in interface OperatingSystemStatisticspublic void setPreviousStats(OperatingSystemStatistics previosStats)
public long getFreeSwapSpaceSizeInBytes()
getFreeSwapSpaceSizeInBytes in interface OperatingSystemStatisticspublic double getFreeSwapSpaceSizeInMB()
getFreeSwapSpaceSizeInMB in interface OperatingSystemStatisticspublic double getFreeSwapSpaceSizeInGB()
getFreeSwapSpaceSizeInGB in interface OperatingSystemStatisticspublic double getSwapSpaceUsedPerc()
OperatingSystemStatisticsgetSwapSpaceUsedPerc in interface OperatingSystemStatisticspublic long getFreePhysicalMemorySizeInBytes()
getFreePhysicalMemorySizeInBytes in interface OperatingSystemStatisticspublic double getFreePhysicalMemorySizeInMB()
getFreePhysicalMemorySizeInMB in interface OperatingSystemStatisticspublic double getFreePhysicalMemorySizeInGB()
getFreePhysicalMemorySizeInGB in interface OperatingSystemStatisticspublic long getActualFreePhysicalMemorySizeInBytes()
getActualFreePhysicalMemorySizeInBytes in interface OperatingSystemStatisticspublic double getActualFreePhysicalMemorySizeInMB()
getActualFreePhysicalMemorySizeInMB in interface OperatingSystemStatisticspublic double getActualFreePhysicalMemorySizeInGB()
getActualFreePhysicalMemorySizeInGB in interface OperatingSystemStatisticspublic double getPhysicalMemoryUsedPerc()
OperatingSystemStatisticsgetPhysicalMemoryUsedPerc in interface OperatingSystemStatisticspublic double getActualPhysicalMemoryUsedPerc()
OperatingSystemStatisticsgetActualPhysicalMemoryUsedPerc in interface OperatingSystemStatisticspublic double getCpuPerc()
OperatingSystemStatisticsgetCpuPerc in interface OperatingSystemStatisticspublic String getCpuPercFormatted()
getCpuPercFormatted in interface OperatingSystemStatisticspublic long getActualMemoryUsed()
getActualMemoryUsed in interface OperatingSystemStatisticspublic Map<String,OperatingSystemStatistics.NetworkStatistics> getNetworkStats()
OperatingSystemStatisticsgetNetworkStats in interface OperatingSystemStatisticsCopyright © GigaSpaces.