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 longgetFreePhysicalMemorySize()Returns the amount of free physical memory in bytes.longgetFreeSwapSpaceSize()Returns the amount of free swap space in bytes.static OsProbegetInstance()shortgetSystemCpuPercent()longgetTotalPhysicalMemorySize()Returns the total amount of physical memory in bytes.longgetTotalSwapSpaceSize()Returns the total amount of swap space in bytes.OsStatsosStats()
-
-
-
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()
-
-