Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.hyperic.sigar
Class Uptime

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

  - AIX: `uptime`
  - Darwin: `uptime`
  - FreeBSD: `uptime`
  - HPUX: `uptime`
  - Linux: `uptime`
  - Solaris: `uptime`
  - Win32: ``

  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`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright ? 2004-2009 Hyperic. All Rights Reserved.