org.jclouds.glesys.domain
Class ServerDetails
java.lang.Object
org.jclouds.glesys.domain.Server
org.jclouds.glesys.domain.ServerDetails
- All Implemented Interfaces:
- Comparable<Server>
public class ServerDetails
- extends Server
Detailed information about a server such as cpuCores, hardware configuration
(cpu, memory and disk), ip adresses, cost, transfer, os and more.
- Author:
- Adrian Cole
- See Also:
Nested classes/interfaces inherited from class org.jclouds.glesys.domain.Server |
Server.State |
Constructor Summary |
ServerDetails(String id,
String hostname,
String datacenter,
String platform,
Server.State state,
String templateName,
String description,
int cpuCores,
int memorySizeMB,
int diskSizeGB,
int transferGB,
Cost cost,
Set<Ip> ips)
|
ServerDetails
public ServerDetails(String id,
String hostname,
String datacenter,
String platform,
Server.State state,
String templateName,
String description,
int cpuCores,
int memorySizeMB,
int diskSizeGB,
int transferGB,
Cost cost,
Set<Ip> ips)
builder
public static ServerDetails.Builder builder()
getState
public Server.State getState()
- Returns:
- the state of the server (e.g. "running")
getDescription
public String getDescription()
- Returns:
- the user-specified description of the server
getCpuCores
public int getCpuCores()
- Returns:
- number of cores on the server
getDiskSizeGB
public int getDiskSizeGB()
- Returns:
- the disk of the server in GB
getMemorySizeMB
public int getMemorySizeMB()
- Returns:
- the memory of the server in MB
getTransferGB
public int getTransferGB()
- Returns:
- the transfer of the server
getCost
public Cost getCost()
- Returns:
- details of the cost of the server
getIps
public Set<Ip> getIps()
- Returns:
- the ip addresses assigned to the server
getTemplateName
public String getTemplateName()
- Returns:
- the name of the template used to create the server
toString
public String toString()
- Overrides:
toString
in class Server
Copyright © 2009-2012 jclouds. All Rights Reserved.