|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hyperic.sigar.Mem
public class Mem
Mem sigar class.
Constructor Summary | |
---|---|
Mem()
|
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Mem()
Method Detail |
---|
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |