Package org.jclouds.elasticstack.domain
Class Server
- java.lang.Object
-
- org.jclouds.elasticstack.domain.Item
-
- org.jclouds.elasticstack.domain.Server
-
- Direct Known Subclasses:
ServerInfo
public class Server extends Item
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Server.Builder
-
Field Summary
Fields Modifier and Type Field Description protected Set<String>
bootDeviceIds
protected int
cpu
protected Map<String,? extends Device>
devices
protected int
mem
protected List<NIC>
nics
protected boolean
persistent
protected Integer
smp
protected VNC
vnc
-
Fields inherited from class org.jclouds.elasticstack.domain.Item
name, tags, userMetadata, uuid
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Set<String>
getBootDeviceIds()
int
getCpu()
Map<String,? extends Device>
getDevices()
int
getMem()
List<NIC>
getNics()
Integer
getSmp()
VNC
getVnc()
int
hashCode()
boolean
isPersistent()
String
toString()
-
Methods inherited from class org.jclouds.elasticstack.domain.Item
getName, getTags, getUserMetadata, getUuid
-
-
-
-
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.
-
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()
-
getVnc
public VNC getVnc()
-
-