Package org.elasticsearch.monitor.os
Class OsProbe
- java.lang.Object
-
- org.elasticsearch.monitor.os.OsProbe
-
public class OsProbe extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods 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.OsInfo
osInfo(long refreshInterval, int allocatedProcessors)
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()
-
osInfo
public OsInfo osInfo(long refreshInterval, int allocatedProcessors)
-
osStats
public OsStats osStats()
-
-