Package org.jclouds.elasticstack.domain
Class ServerInfo
- java.lang.Object
-
- org.jclouds.elasticstack.domain.Item
-
- org.jclouds.elasticstack.domain.Server
-
- org.jclouds.elasticstack.domain.ServerInfo
-
public class ServerInfo extends Server
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ServerInfo.Builder
-
Field Summary
Fields Modifier and Type Field Description protected ServerMetrics
metrics
protected Date
started
protected ServerStatus
status
protected String
user
-
Fields inherited from class org.jclouds.elasticstack.domain.Server
bootDeviceIds, cpu, devices, mem, nics, persistent, smp, vnc
-
Fields inherited from class org.jclouds.elasticstack.domain.Item
name, tags, userMetadata, uuid
-
-
Constructor Summary
Constructors Constructor Description ServerInfo(String uuid, String name, int cpu, Integer smp, int mem, boolean persistent, Map<String,? extends Device> devices, Iterable<String> bootDeviceIds, Iterable<String> tags, Map<String,String> userMetadata, Iterable<NIC> nics, VNC vnc, ServerStatus status, Date started, String user, ServerMetrics metrics)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
ServerMetrics
getMetrics()
Date
getStarted()
ServerStatus
getStatus()
String
getUser()
int
hashCode()
String
toString()
-
Methods inherited from class org.jclouds.elasticstack.domain.Server
getBootDeviceIds, getCpu, getDevices, getMem, getNics, getSmp, getVnc, isPersistent
-
Methods inherited from class org.jclouds.elasticstack.domain.Item
getName, getTags, getUserMetadata, getUuid
-
-
-
-
Field Detail
-
status
protected final ServerStatus status
-
metrics
protected final ServerMetrics metrics
-
-
Constructor Detail
-
ServerInfo
public ServerInfo(String uuid, String name, int cpu, Integer smp, int mem, boolean persistent, Map<String,? extends Device> devices, Iterable<String> bootDeviceIds, Iterable<String> tags, Map<String,String> userMetadata, Iterable<NIC> nics, VNC vnc, ServerStatus status, Date started, String user, @Nullable ServerMetrics metrics)
-
-
Method Detail
-
getStatus
public ServerStatus getStatus()
- Returns:
- active | stopped | paused | dumped | dead
-
getStarted
public Date getStarted()
-
getMetrics
@Nullable public ServerMetrics getMetrics()
- Returns:
- metrics, if the server is running, or null
-
getUser
public String getUser()
- Returns:
- owner of the server.
-
-