org.jclouds.glesys.domain
Class Server
java.lang.Object
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:
id
protected final String id
hostname
protected final String hostname
datacenter
protected final String datacenter
platform
protected final String platform
Server
public Server(String id,
String hostname,
String datacenter,
String platform)
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.