org.hyperic.sigar
Class Swap

java.lang.Object
  extended byorg.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 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

toString

public java.lang.String toString()

toMap

public java.util.Map toMap()


Copyright © 2004-2006 Hyperic. All Rights Reserved.