org.jclouds.glesys.domain
Class ServerSpec

java.lang.Object
  extended by org.jclouds.glesys.domain.ServerSpec

public class ServerSpec
extends Object

Author:
Adrian Cole

Nested Class Summary
static class ServerSpec.Builder
           
 
Field Summary
protected  int cpuCores
           
protected  String datacenter
           
protected  int diskSizeGB
           
protected  int memorySizeMB
           
protected  String platform
           
protected  String templateName
           
protected  int transferGB
           
 
Constructor Summary
protected ServerSpec(String platform, String datacenter, int memorySizeMB, int diskSizeGB, String templateName, int cpuCores, int transferGB)
           
 
Method Summary
static ServerSpec.Builder builder()
           
 boolean equals(Object object)
           
 int getCpuCores()
           
 String getDatacenter()
           
 int getDiskSizeGB()
           
 int getMemorySizeMB()
           
 String getPlatform()
           
 String getTemplateName()
           
 int getTransferGB()
           
 int hashCode()
           
 ServerSpec.Builder toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

platform

protected final String platform

datacenter

protected final String datacenter

memorySizeMB

protected final int memorySizeMB

diskSizeGB

protected final int diskSizeGB

templateName

protected final String templateName

cpuCores

protected final int cpuCores

transferGB

protected final int transferGB
Constructor Detail

ServerSpec

protected ServerSpec(String platform,
                     String datacenter,
                     int memorySizeMB,
                     int diskSizeGB,
                     String templateName,
                     int cpuCores,
                     int transferGB)
Method Detail

builder

public static ServerSpec.Builder builder()

toBuilder

public ServerSpec.Builder toBuilder()

getDatacenter

public String getDatacenter()
Returns:
the data center to create the new server in

getPlatform

public String getPlatform()
Returns:
the platform to use (i.e. "Xen" or "OpenVZ")

getTemplateName

public String getTemplateName()
Returns:
the os template to use to create the new server

getDiskSizeGB

public int getDiskSizeGB()
Returns:
the amount of disk space, in GB, to allocate

getMemorySizeMB

public int getMemorySizeMB()
Returns:
the memory, in MB, to allocate

getCpuCores

public int getCpuCores()
Returns:
the number of CPU cores to allocate

getTransferGB

public int getTransferGB()
Returns:
bandwidth of in GB

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.