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
SigarExceptionpublic long getTotal()
Supported Platforms: All.
System equivalent commands:
lsps -ssysctl vm.swapusagefreeswap -spublic long getUsed()
Supported Platforms: All.
System equivalent commands:
lsps -sfreeswap -spublic long getFree()
Supported Platforms: All.
System equivalent commands:
freeswap -spublic long getPageIn()
Supported Platforms: All.
System equivalent commands:
vmstatvmstatpublic long getPageOut()
Supported Platforms: All.
System equivalent commands:
vmstatvmstatpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.util.Map toMap()
Copyright ? 2004-2011 Hyperic. All Rights Reserved.