public class OperatingSystemProxy
extends java.lang.Object
Constructor and Description |
---|
OperatingSystemProxy()
Initialize.
|
Modifier and Type | Method and Description |
---|---|
long |
getCommittedVirtualMemory()
Returns the amount of virtual memory that is guaranteed to be available to the running process
in bytes, or -1 if this operation is not supported.
|
long |
getFreePhysicalMemorySize()
Returns the amount of free physical memory in bytes.
|
long |
getFreeSwapSpace()
Returns the amount of free swap space in bytes.
|
double |
getProcessCpuLoad()
Returns the CPU percent used by the process.
|
long |
getProcessCpuTime()
Returns the CPU time used by the process on which the Java virtual machine is running in
nanoseconds.
|
double |
getSystemCpuLoad()
Get system CPU status.
|
long |
getTotalPhysicalMemory()
Returns the total amount of physical memory in bytes.
|
long |
getTotalSwapSpaceSize()
Returns the total amount of swap space in bytes.
|
public long getCommittedVirtualMemory()
public long getFreePhysicalMemorySize()
public long getFreeSwapSpace()
public double getSystemCpuLoad()
public long getProcessCpuTime()
public double getProcessCpuLoad()
public long getTotalPhysicalMemory()
public long getTotalSwapSpaceSize()