Package org.openspaces.admin.os
Interface OperatingSystemStatistics
- All Known Implementing Classes:
DefaultOperatingSystemStatistics
public interface OperatingSystemStatistics
Statistics of a specific
OperatingSystem.- Author:
- kimchy
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface -
Method Summary
Modifier and TypeMethodDescriptionlongDeprecated.doubledoublelongdoubleReturns the percentage used of the actual physical memory out of the total physical memory.longReturns a timestamp that is in sync with where the admin API is running.doubleReturns the combined cpu perc (User + Sys + Nice + Wait)Returns the operating system details.longdoubledoublelongdoubledoubleReturns the network statistics per network device.doubleReturns the percentage used of physical memory out of the total physical memory space.Returns the previous statistics taken.doubleReturns the percentage used of swap space out of the total swap space.Returns the timeline (from newest to oldest) history statistics, including this one.longReturns the timestamp when the statistics were take.booleanisNA()Returnstrueif the statistics are not available.
-
Method Details
-
isNA
boolean isNA()Returnstrueif the statistics are not available. -
getTimestamp
long getTimestamp()Returns the timestamp when the statistics were take. -
getAdminTimestamp
long getAdminTimestamp()Returns a timestamp that is in sync with where the admin API is running. Can return -1 if the clocks have are not sync yet. -
getDetails
OperatingSystemDetails getDetails()Returns the operating system details. -
getTimeline
List<OperatingSystemStatistics> getTimeline()Returns the timeline (from newest to oldest) history statistics, including this one. -
getPrevious
OperatingSystemStatistics getPrevious()Returns the previous statistics taken. Returnsnullif this is the fist one. -
getFreeSwapSpaceSizeInBytes
long getFreeSwapSpaceSizeInBytes() -
getFreeSwapSpaceSizeInMB
double getFreeSwapSpaceSizeInMB() -
getFreeSwapSpaceSizeInGB
double getFreeSwapSpaceSizeInGB() -
getSwapSpaceUsedPerc
double getSwapSpaceUsedPerc()Returns the percentage used of swap space out of the total swap space. -
getFreePhysicalMemorySizeInBytes
long getFreePhysicalMemorySizeInBytes() -
getFreePhysicalMemorySizeInMB
double getFreePhysicalMemorySizeInMB() -
getFreePhysicalMemorySizeInGB
double getFreePhysicalMemorySizeInGB() -
getActualFreePhysicalMemorySizeInBytes
Deprecated.- Since:
- 14.5.0 Use getFreePhysicalMemorySizeInBytes()
-
getActualFreePhysicalMemorySizeInMB
double getActualFreePhysicalMemorySizeInMB() -
getActualFreePhysicalMemorySizeInGB
double getActualFreePhysicalMemorySizeInGB() -
getPhysicalMemoryUsedPerc
double getPhysicalMemoryUsedPerc()Returns the percentage used of physical memory out of the total physical memory space. Uses the total free memory e.g. e.g. Linux plus cached. -
getActualPhysicalMemoryUsedPerc
double getActualPhysicalMemoryUsedPerc()Returns the percentage used of the actual physical memory out of the total physical memory. -
getCpuPerc
double getCpuPerc()Returns the combined cpu perc (User + Sys + Nice + Wait) -
getCpuPercFormatted
String getCpuPercFormatted() -
getActualMemoryUsed
long getActualMemoryUsed()- Returns:
- Actual Memory Used, in bytes
- Since:
- 10.1
-
getNetworkStats
Map<String,OperatingSystemStatistics.NetworkStatistics> getNetworkStats()Returns the network statistics per network device.
-