Package org.elasticsearch.monitor.os
Class OsProbe
- java.lang.Object
-
- org.elasticsearch.monitor.os.OsProbe
-
public class OsProbe extends java.lang.Object
-
-
Method Summary
Modifier and Type Method Description long
getFreePhysicalMemorySize()
Returns the amount of free physical memory in bytes.long
getFreeSwapSpaceSize()
Returns the amount of free swap space in bytes.static OsProbe
getInstance()
short
getSystemCpuPercent()
long
getTotalPhysicalMemorySize()
Returns the total amount of physical memory in bytes.long
getTotalSwapSpaceSize()
Returns the total amount of swap space in bytes.OsStats
osStats()
-
-
-
Method Detail
-
getFreePhysicalMemorySize
public long getFreePhysicalMemorySize()
Returns the amount of free physical memory in bytes.
-
getTotalPhysicalMemorySize
public long getTotalPhysicalMemorySize()
Returns the total amount of physical memory in bytes.
-
getFreeSwapSpaceSize
public long getFreeSwapSpaceSize()
Returns the amount of free swap space in bytes.
-
getTotalSwapSpaceSize
public long getTotalSwapSpaceSize()
Returns the total amount of swap space in bytes.
-
getSystemCpuPercent
public short getSystemCpuPercent()
-
getInstance
public static OsProbe getInstance()
-
osStats
public OsStats osStats()
-
-