public class Uptime
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
Uptime() |
Modifier and Type | Method and Description |
---|---|
void |
gather(Sigar sigar) |
double |
getUptime()
Get the Time since machine started in seconds.
|
java.util.Map |
toMap() |
java.lang.String |
toString() |
public void gather(Sigar sigar) throws SigarException
SigarException
public double getUptime()
Supported Platforms: All.
System equivalent commands:
uptime
uptime
uptime
uptime
uptime
uptime
public java.util.Map toMap()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright ? 2004-2011 Hyperic. All Rights Reserved.