org.jclouds.glesys.domain
Class ServerUptime

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

Nested Class Summary
static class ServerUptime.Builder<T extends ServerUptime.Builder<T>>
           
 
Constructor Summary
protected ServerUptime(long current, String unit)
           
 
Method Summary
static ServerUptime.Builder<?> builder()
           
 boolean equals(Object obj)
           
 long getCurrent()
           
 String getUnit()
           
 int hashCode()
           
protected  com.google.common.base.Objects.ToStringHelper string()
           
 ServerUptime.Builder<?> toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServerUptime

@ConstructorProperties(value={"current","unit"})
protected ServerUptime(long current,
                                                  String unit)
Method Detail

builder

public static ServerUptime.Builder<?> builder()

toBuilder

public ServerUptime.Builder<?> toBuilder()

getCurrent

public long getCurrent()
Returns:
the time the server has been up in #getUnit()

getUnit

public String getUnit()
Returns:
the unit used for #getCurrent()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

string

protected com.google.common.base.Objects.ToStringHelper string()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.