org.hyperic.sigar
Class Uptime

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

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

Uptime sigar class.

See Also:
Serialized Form

Constructor Summary
Uptime()
           
 
Method Summary
 void gather(Sigar sigar)
           
 double getUptime()
          Get the Time since machine started in seconds.
 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

Uptime

public Uptime()
Method Detail

gather

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

getUptime

public double getUptime()
Get the Time since machine started in seconds.

Supported Platforms: All.

System equivalent commands:

Returns:
Time since machine started in seconds

toMap

public java.util.Map toMap()

toString

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


Copyright ? 2004-2009 Hyperic. All Rights Reserved.