org.jclouds.glesys.domain
Class Server

java.lang.Object
  extended by org.jclouds.glesys.domain.Server
Direct Known Subclasses:
ServerDetails

public class Server
extends Object

Listing of a server.

Author:
Adrian Cole
See Also:

Nested Class Summary
static class Server.Builder<T extends Server.Builder<T>>
           
static class Server.State
           
 
Constructor Summary
protected Server(String id, String hostname, String datacenter, String platform)
           
 
Method Summary
static Server.Builder<?> builder()
           
 boolean equals(Object obj)
           
 String getDatacenter()
           
 String getHostname()
           
 String getId()
           
 String getPlatform()
           
 int hashCode()
           
protected  com.google.common.base.Objects.ToStringHelper string()
           
 Server.Builder<?> toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Server

@ConstructorProperties(value={"serverid","hostname","datacenter","platform"})
protected Server(String id,
                                            String hostname,
                                            String datacenter,
                                            String platform)
Method Detail

builder

public static Server.Builder<?> builder()

toBuilder

public Server.Builder<?> toBuilder()

getId

public String getId()
Returns:
the generated id of the server

getHostname

public String getHostname()
Returns:
the hostname of the server

getDatacenter

public String getDatacenter()
Returns:
platform running the server (ex. OpenVZ)

getPlatform

public String getPlatform()
Returns:
the datacenter the server exists in (ex. Falkenberg)

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.