public class Mem
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
Mem() |
| Modifier and Type | Method and Description |
|---|---|
void |
gather(Sigar sigar) |
long |
getActualFree()
Get the Actual total free system memory.
|
long |
getActualUsed()
Get the Actual total used system memory (e.g.
|
long |
getFree()
Get the Total free system memory (e.g.
|
double |
getFreePercent()
Get the Percent total free system memory.
|
long |
getRam()
Get the System Random Access Memory (in MB).
|
long |
getTotal()
Get the Total system memory.
|
long |
getUsed()
Get the Total used system memory.
|
double |
getUsedPercent()
Get the Percent total used system memory.
|
java.util.Map |
toMap() |
java.lang.String |
toString() |
public void gather(Sigar sigar) throws SigarException
SigarExceptionpublic long getTotal()
Supported Platforms: All.
System equivalent commands:
lsattr -El sys0 -a realmemfreetaskmanpublic long getRam()
Supported Platforms: All.
System equivalent commands:
lsattr -El sys0 -a realmemcat /proc/mtrr | head -1public long getUsed()
Supported Platforms: All.
System equivalent commands:
freetaskmanpublic long getFree()
Supported Platforms: All.
System equivalent commands:
freetaskmanpublic long getActualUsed()
Supported Platforms: All.
System equivalent commands:
freetaskmanpublic long getActualFree()
Supported Platforms: All.
System equivalent commands:
freetaskmanpublic double getUsedPercent()
Supported Platforms: All.
System equivalent commands:
freetaskmanpublic double getFreePercent()
Supported Platforms: All.
System equivalent commands:
freetaskmanpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.util.Map toMap()
Copyright ? 2004-2011 Hyperic. All Rights Reserved.