org.jclouds.glesys.domain
Class ServerDetails

java.lang.Object
  extended by org.jclouds.glesys.domain.Server
      extended by 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 Class Summary
static class ServerDetails.Builder
           
 
Nested classes/interfaces inherited from class org.jclouds.glesys.domain.Server
Server.State
 
Field Summary
 
Fields inherited from class org.jclouds.glesys.domain.Server
datacenter, hostname, id, platform
 
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)
           
 
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()
           
 String toString()
           
 
Methods inherited from class org.jclouds.glesys.domain.Server
compareTo, equals, getDatacenter, getHostname, getId, getPlatform, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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.