org.jclouds.cloudsigma.domain
Class ServerInfo
java.lang.Object
org.jclouds.cloudsigma.domain.Item
org.jclouds.cloudsigma.domain.Server
org.jclouds.cloudsigma.domain.ServerInfo
public class ServerInfo
- extends Server
- Author:
- Adrian Cole
Fields inherited from class org.jclouds.cloudsigma.domain.Item |
name, use, uuid |
Constructor Summary |
ServerInfo(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,
ServerStatus status,
Date started,
String user,
ServerMetrics metrics)
|
status
protected final ServerStatus status
started
@Nullable
protected final Date started
user
@Nullable
protected final String user
metrics
protected final ServerMetrics metrics
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> use,
Iterable<NIC> nics,
VNC vnc,
String description,
ServerStatus status,
Date started,
String user,
@Nullable
ServerMetrics metrics)
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.
hashCode
public int hashCode()
- Overrides:
hashCode
in class Server
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Server
toString
public String toString()
- Overrides:
toString
in class Server
Copyright © 2009-2011 jclouds. All Rights Reserved.