org.jclouds.glesys.domain
Class ServerDetails

java.lang.Object
  extended by org.jclouds.glesys.domain.Server
      extended by org.jclouds.glesys.domain.ServerDetails

public class ServerDetails
extends Server

Detailed information about a server such as cpuCores, hardware configuration (cpu, memory and disk), ip addresses, cost, transfer, os and more.

See Also:

Nested Class Summary
static class ServerDetails.Builder<T extends ServerDetails.Builder<T>>
           
 
Nested classes/interfaces inherited from class org.jclouds.glesys.domain.Server
Server.State
 
Constructor Summary
protected ServerDetails(String id, String hostname, String datacenter, String platform, Server.State state, String description, String templateName, int cpuCores, int memorySizeMB, int diskSizeGB, int transferGB, Cost cost, Set<Ip> ips)
           
 
Method Summary
static ServerDetails.Builder<?> builder()
           
 Cost getCost()
           
 int getCpuCores()
           
 String getDescription()
           
 int getDiskSizeGB()
           
 Set<Ip> getIps()
           
 int getMemorySizeMB()
           
 Server.State getState()
           
 String getTemplateName()
           
 int getTransferGB()
           
protected  com.google.common.base.Objects.ToStringHelper string()
           
 ServerDetails.Builder<?> toBuilder()
           
 
Methods inherited from class org.jclouds.glesys.domain.Server
equals, getDatacenter, getHostname, getId, getPlatform, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServerDetails

@ConstructorProperties(value={"serverid","hostname","datacenter","platform","state","description","templatename","cpucores","memorysize","disksize","transfer","cost","iplist"})
protected ServerDetails(String id,
                                                   String hostname,
                                                   String datacenter,
                                                   String platform,
                                                   @Nullable
                                                   Server.State state,
                                                   @Nullable
                                                   String description,
                                                   String templateName,
                                                   int cpuCores,
                                                   int memorySizeMB,
                                                   int diskSizeGB,
                                                   int transferGB,
                                                   Cost cost,
                                                   @Nullable
                                                   Set<Ip> ips)
Method Detail

builder

public static ServerDetails.Builder<?> builder()

toBuilder

public ServerDetails.Builder<?> toBuilder()
Overrides:
toBuilder in class Server

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

getTemplateName

public String getTemplateName()
Returns:
the name of the template used to create the server

getCpuCores

public int getCpuCores()
Returns:
number of cores on the server

getMemorySizeMB

public int getMemorySizeMB()
Returns:
the memory of the server in MB

getDiskSizeGB

public int getDiskSizeGB()
Returns:
the disk of the server in GB

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

string

protected com.google.common.base.Objects.ToStringHelper string()
Overrides:
string in class Server


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.