org.jclouds.cloudsigma.domain
Class Server
java.lang.Object
org.jclouds.cloudsigma.domain.Item
org.jclouds.cloudsigma.domain.Server
- Direct Known Subclasses:
- ServerInfo
public class Server
- extends Item
- Author:
- Adrian Cole
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)
|
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
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)
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.