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
SigarException
public long getTotal()
Supported Platforms: All.
System equivalent commands:
lsattr -El sys0 -a realmem
free
taskman
public long getRam()
Supported Platforms: All.
System equivalent commands:
lsattr -El sys0 -a realmem
cat /proc/mtrr | head -1
public long getUsed()
Supported Platforms: All.
System equivalent commands:
free
taskman
public long getFree()
Supported Platforms: All.
System equivalent commands:
free
taskman
public long getActualUsed()
Supported Platforms: All.
System equivalent commands:
free
taskman
public long getActualFree()
Supported Platforms: All.
System equivalent commands:
free
taskman
public double getUsedPercent()
Supported Platforms: All.
System equivalent commands:
free
taskman
public double getFreePercent()
Supported Platforms: All.
System equivalent commands:
free
taskman
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Map toMap()
Copyright ? 2004-2011 Hyperic. All Rights Reserved.