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
SigarExceptionpublic double getUptime()
Supported Platforms: All.
System equivalent commands:
uptimeuptimeuptimeuptimeuptimeuptimepublic java.util.Map toMap()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright ? 2004-2011 Hyperic. All Rights Reserved.