|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.hyperic.sigar.Swap
public class Swap
Swap sigar class.
| Constructor Summary | |
|---|---|
Swap()
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Swap()
| Method Detail |
|---|
public void gather(Sigar sigar)
throws SigarException
SigarExceptionpublic long getTotal()
Supported Platforms: All.
System equivalent commands:
lsps -ssysctl vm.swapusagefreeswap -s
public long getUsed()
Supported Platforms: All.
System equivalent commands:
lsps -sfreeswap -s
public long getFree()
Supported Platforms: All.
System equivalent commands:
freeswap -s
public long getPageIn()
Supported Platforms: All.
System equivalent commands:
vmstatvmstat
public long getPageOut()
Supported Platforms: All.
System equivalent commands:
vmstatvmstat
public java.lang.String toString()
toString in class java.lang.Objectpublic java.util.Map toMap()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||