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()
OperatingSystemStatistics
true
if the statistics are not available.isNA
in interface OperatingSystemStatistics
public List<OperatingSystemStatistics> getTimeline()
OperatingSystemStatistics
getTimeline
in interface OperatingSystemStatistics
public long getTimestamp()
OperatingSystemStatistics
getTimestamp
in interface OperatingSystemStatistics
public long getAdminTimestamp()
OperatingSystemStatistics
getAdminTimestamp
in interface OperatingSystemStatistics
public OperatingSystemDetails getDetails()
OperatingSystemStatistics
getDetails
in interface OperatingSystemStatistics
public OperatingSystemStatistics getPrevious()
OperatingSystemStatistics
null
if this is the fist one.getPrevious
in interface OperatingSystemStatistics
public void setPreviousStats(OperatingSystemStatistics previosStats)
public long getFreeSwapSpaceSizeInBytes()
getFreeSwapSpaceSizeInBytes
in interface OperatingSystemStatistics
public double getFreeSwapSpaceSizeInMB()
getFreeSwapSpaceSizeInMB
in interface OperatingSystemStatistics
public double getFreeSwapSpaceSizeInGB()
getFreeSwapSpaceSizeInGB
in interface OperatingSystemStatistics
public double getSwapSpaceUsedPerc()
OperatingSystemStatistics
getSwapSpaceUsedPerc
in interface OperatingSystemStatistics
public long getFreePhysicalMemorySizeInBytes()
getFreePhysicalMemorySizeInBytes
in interface OperatingSystemStatistics
public double getFreePhysicalMemorySizeInMB()
getFreePhysicalMemorySizeInMB
in interface OperatingSystemStatistics
public double getFreePhysicalMemorySizeInGB()
getFreePhysicalMemorySizeInGB
in interface OperatingSystemStatistics
public long getActualFreePhysicalMemorySizeInBytes()
getActualFreePhysicalMemorySizeInBytes
in interface OperatingSystemStatistics
public double getActualFreePhysicalMemorySizeInMB()
getActualFreePhysicalMemorySizeInMB
in interface OperatingSystemStatistics
public double getActualFreePhysicalMemorySizeInGB()
getActualFreePhysicalMemorySizeInGB
in interface OperatingSystemStatistics
public double getPhysicalMemoryUsedPerc()
OperatingSystemStatistics
getPhysicalMemoryUsedPerc
in interface OperatingSystemStatistics
public double getActualPhysicalMemoryUsedPerc()
OperatingSystemStatistics
getActualPhysicalMemoryUsedPerc
in interface OperatingSystemStatistics
public double getCpuPerc()
OperatingSystemStatistics
getCpuPerc
in interface OperatingSystemStatistics
public String getCpuPercFormatted()
getCpuPercFormatted
in interface OperatingSystemStatistics
public long getActualMemoryUsed()
getActualMemoryUsed
in interface OperatingSystemStatistics
public Map<String,OperatingSystemStatistics.NetworkStatistics> getNetworkStats()
OperatingSystemStatistics
getNetworkStats
in interface OperatingSystemStatistics
Copyright © GigaSpaces.