org.hyperic.sigar
Class Swap

java.lang.Object
  extended by org.hyperic.sigar.Swap
All Implemented Interfaces:
java.io.Serializable

public class Swap
extends java.lang.Object
implements java.io.Serializable

Swap sigar class.

See Also:
Serialized Form

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

Swap

public Swap()
Method Detail

gather

public void gather(Sigar sigar)
            throws SigarException
Throws:
SigarException

getTotal

public long getTotal()
Get the Total system swap.

Supported Platforms: All.

System equivalent commands:

Returns:
Total system swap

getUsed

public long getUsed()
Get the Total used system swap.

Supported Platforms: All.

System equivalent commands:

Returns:
Total used system swap

getFree

public long getFree()
Get the Total free system swap.

Supported Platforms: All.

System equivalent commands:

Returns:
Total free system swap

getPageIn

public long getPageIn()
Get the Pages in.

Supported Platforms: All.

System equivalent commands:

Returns:
Pages in

getPageOut

public long getPageOut()
Get the Pages out.

Supported Platforms: All.

System equivalent commands:

Returns:
Pages out

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toMap

public java.util.Map toMap()


Copyright ? 2004-2009 Hyperic. All Rights Reserved.