org.jclouds.glesys.domain
Class Server

java.lang.Object
  extended by org.jclouds.glesys.domain.Server
All Implemented Interfaces:
Comparable<Server>
Direct Known Subclasses:
ServerDetails

public class Server
extends Object
implements Comparable<Server>

Listing of a server.

Author:
Adrian Cole
See Also:

Nested Class Summary
static class Server.Builder
           
static class Server.State
           
 
Field Summary
protected  String datacenter
           
protected  String hostname
           
protected  String id
           
protected  String platform
           
 
Constructor Summary
Server(String id, String hostname, String datacenter, String platform)
           
 
Method Summary
static Server.Builder builder()
           
 int compareTo(Server other)
           
 boolean equals(Object object)
           
 String getDatacenter()
           
 String getHostname()
           
 String getId()
           
 String getPlatform()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

id

protected final String id

hostname

protected final String hostname

datacenter

protected final String datacenter

platform

protected final String platform
Constructor Detail

Server

public Server(String id,
              String hostname,
              String datacenter,
              String platform)
Method Detail

builder

public static Server.Builder builder()

getId

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

getHostname

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

getPlatform

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

getDatacenter

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

compareTo

public int compareTo(Server other)
Specified by:
compareTo in interface Comparable<Server>

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.