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
           
 
Constructor Summary
ServerUptime(long current, String unit)
           
 
Method Summary
static ServerUptime.Builder builder()
           
 boolean equals(Object object)
           
 long getCurrent()
           
 String getUnit()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServerUptime

public ServerUptime(long current,
                    String unit)
Method Detail

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.