public class Swap
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
Swap() |
Modifier and Type | Method and Description |
---|---|
void |
gather(Sigar sigar) |
long |
getFree()
Get the Total free system swap.
|
long |
getPageIn()
Get the Pages in.
|
long |
getPageOut()
Get the Pages out.
|
long |
getTotal()
Get the Total system swap.
|
long |
getUsed()
Get the Total used system swap.
|
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:
lsps -s
sysctl vm.swapusage
free
swap -s
public long getUsed()
Supported Platforms: All.
System equivalent commands:
lsps -s
free
swap -s
public long getFree()
Supported Platforms: All.
System equivalent commands:
free
swap -s
public long getPageIn()
Supported Platforms: All.
System equivalent commands:
vmstat
vmstat
public long getPageOut()
Supported Platforms: All.
System equivalent commands:
vmstat
vmstat
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Map toMap()
Copyright ? 2004-2011 Hyperic. All Rights Reserved.