org.jclouds.cloudsigma.domain
Class ServerInfo

java.lang.Object
  extended by org.jclouds.cloudsigma.domain.Item
      extended by org.jclouds.cloudsigma.domain.Server
          extended by org.jclouds.cloudsigma.domain.ServerInfo

public class ServerInfo
extends Server

Author:
Adrian Cole

Nested Class Summary
static class ServerInfo.Builder
           
 
Field Summary
protected  ServerMetrics metrics
           
protected  Date started
           
protected  ServerStatus status
           
protected  String user
           
 
Fields inherited from class org.jclouds.cloudsigma.domain.Server
bootDeviceIds, cpu, devices, mem, nics, persistent, smp, vnc
 
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)
           
 
Method Summary
 boolean equals(Object obj)
           
 ServerMetrics getMetrics()
           
 Date getStarted()
           
 ServerStatus getStatus()
           
 String getUser()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class org.jclouds.cloudsigma.domain.Server
getBootDeviceIds, getCpu, getDescription, getDevices, getMem, getNics, getSmp, getVnc, isPersistent
 
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

status

protected final ServerStatus status

started

@Nullable
protected final Date started

user

@Nullable
protected final String user

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> use,
                  Iterable<NIC> nics,
                  VNC vnc,
                  String description,
                  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.

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.