org.jclouds.glesys.domain
Class ServerUptime
java.lang.Object
org.jclouds.glesys.domain.ServerUptime
public class ServerUptime
- extends Object
Represents an 'uptime' duration of server in a Glesys cloud
- Author:
- Adam Lowe
- See Also:
ServerStatus
ServerUptime
public ServerUptime(long current,
String unit)
builder
public static ServerUptime.Builder builder()
getCurrent
public long getCurrent()
- Returns:
- the time the server has been up in #unit
getUnit
public String getUnit()
- Returns:
- the unit used for #time
equals
public boolean equals(Object object)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2009-2012 jclouds. All Rights Reserved.