org.jclouds.cloudsigma.domain
Class Server

java.lang.Object
  extended by org.jclouds.cloudsigma.domain.Item
      extended by org.jclouds.cloudsigma.domain.Server
Direct Known Subclasses:
ServerInfo

public class Server
extends Item

Author:
Adrian Cole

Nested Class Summary
static class Server.Builder
           
 
Field Summary
protected  Set<String> bootDeviceIds
           
protected  int cpu
           
protected  Map<String,Device> devices
           
protected  int mem
           
protected  List<NIC> nics
           
protected  boolean persistent
           
protected  Integer smp
           
protected  VNC vnc
           
 
Fields inherited from class org.jclouds.cloudsigma.domain.Item
name, use, uuid
 
Constructor Summary
Server(String uuid, String name, int cpu, Integer smp, int mem, boolean persistent, Map<String,? extends Device> devices, Iterable<String> bootDeviceIds, Iterable<String> use, Iterable<NIC> nics, VNC vnc, String description)
           
 
Method Summary
 boolean equals(Object obj)
           
 Set<String> getBootDeviceIds()
           
 int getCpu()
           
 String getDescription()
           
 Map<String,Device> getDevices()
           
 int getMem()
           
 List<NIC> getNics()
           
 Integer getSmp()
           
 VNC getVnc()
           
 int hashCode()
           
 boolean isPersistent()
           
 String toString()
           
 
Methods inherited from class org.jclouds.cloudsigma.domain.Item
getName, getUse, getUuid
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

cpu

protected final int cpu

smp

protected final Integer smp

mem

protected final int mem

persistent

protected final boolean persistent

devices

@Nullable
protected final Map<String,Device> devices

bootDeviceIds

protected final Set<String> bootDeviceIds

nics

protected final List<NIC> nics

vnc

protected final VNC vnc
Constructor Detail

Server

public Server(@Nullable
              String uuid,
              String name,
              int cpu,
              @Nullable
              Integer smp,
              int mem,
              boolean persistent,
              Map<String,? extends Device> devices,
              Iterable<String> bootDeviceIds,
              Iterable<String> use,
              Iterable<NIC> nics,
              VNC vnc,
              String description)
Method Detail

getCpu

public int getCpu()
Returns:
CPU quota in core MHz.

getSmp

public Integer getSmp()
Returns:
number of virtual processors or null if calculated based on cpu.

getMem

public int getMem()
Returns:
virtual memory size in MB.

isPersistent

public boolean isPersistent()
Returns:
'true' means that server will revert to a 'stopped' status on server stop or shutdown, rather than being destroyed automatically.

getDevices

public Map<String,Device> getDevices()
Returns:
devices present, mapped by id

getBootDeviceIds

public Set<String> getBootDeviceIds()
Returns:
ids of the devices to boot, e.g. ide:0:0 or ide:1:0
See Also:
Device.getId()

getNics

public List<NIC> getNics()

getVnc

public VNC getVnc()

getDescription

public String getDescription()

hashCode

public int hashCode()
Overrides:
hashCode in class Item

equals

public boolean equals(Object obj)
Overrides:
equals in class Item

toString

public String toString()
Overrides:
toString in class Item


Copyright © 2009-2011 jclouds. All Rights Reserved.