public class OsProbe extends Object
Modifier and Type | Method and 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() |
double |
getSystemLoadAverage()
Returns the system load average for the last minute.
|
long |
getTotalPhysicalMemorySize()
Returns the total amount of physical memory in bytes.
|
long |
getTotalSwapSpaceSize()
Returns the total amount of swap space in bytes.
|
OsInfo |
osInfo() |
OsStats |
osStats() |
public long getFreePhysicalMemorySize()
public long getTotalPhysicalMemorySize()
public long getFreeSwapSpaceSize()
public long getTotalSwapSpaceSize()
public double getSystemLoadAverage()
public short getSystemCpuPercent()
public static OsProbe getInstance()
public OsInfo osInfo()
public OsStats osStats()
Copyright © 2009–2017. All rights reserved.