org.jclouds.cloudservers.domain
Class Server

java.lang.Object
  extended by org.jclouds.cloudservers.domain.Server

public class Server
extends Object

A server is a virtual machine instance in the Cloud Servers system. Flavor and image are requisite elements when creating a server.

Author:
Adrian Cole

Constructor Summary
Server()
           
Server(int id, String name)
           
 
Method Summary
 boolean equals(Object obj)
           
 Addresses getAddresses()
           
 String getAdminPass()
           
 Integer getFlavorId()
           
 String getHostId()
          The Cloud Servers provisioning algorithm has an anti-affinity property that attempts to spread out customer VMs across hosts.
 int getId()
           
 Integer getImageId()
           
 Map<String,String> getMetadata()
           
 String getName()
           
 Integer getProgress()
           
 Integer getSharedIpGroupId()
           
 ServerStatus getStatus()
          Servers contain a status attribute that can be used as an indication of the current server state.
 int hashCode()
           
 void setAddresses(Addresses addresses)
           
 void setAdminPass(String adminPass)
           
 void setFlavorId(Integer flavorId)
           
 void setHostId(String hostId)
           
 void setImageId(Integer imageId)
           
 void setMetadata(Map<String,String> metadata)
           
 void setName(String name)
           
 void setProgress(Integer progress)
           
 void setSharedIpGroupId(Integer sharedIpGroupId)
           
 void setStatus(ServerStatus status)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Server

public Server()

Server

public Server(int id,
              String name)
Method Detail

setMetadata

public void setMetadata(Map<String,String> metadata)

getMetadata

public Map<String,String> getMetadata()

setAddresses

public void setAddresses(Addresses addresses)

getAddresses

public Addresses getAddresses()

setAdminPass

public void setAdminPass(String adminPass)

getAdminPass

public String getAdminPass()

setFlavorId

public void setFlavorId(Integer flavorId)

getFlavorId

public Integer getFlavorId()

setHostId

public void setHostId(String hostId)

getHostId

public String getHostId()
The Cloud Servers provisioning algorithm has an anti-affinity property that attempts to spread out customer VMs across hosts. Under certain situations, VMs from the same customer may be placed on the same host. hostId represents the host your cloud server runs on and can be used to determine this scenario if it's relevant to your application.

Note: hostId is unique PER ACCOUNT and is not globally unique.


getId

public int getId()

setImageId

public void setImageId(Integer imageId)

getImageId

public Integer getImageId()

getName

public String getName()

setProgress

public void setProgress(Integer progress)

getProgress

public Integer getProgress()

setSharedIpGroupId

public void setSharedIpGroupId(Integer sharedIpGroupId)

getSharedIpGroupId

public Integer getSharedIpGroupId()

setStatus

public void setStatus(ServerStatus status)

getStatus

public ServerStatus getStatus()
Servers contain a status attribute that can be used as an indication of the current server state. Servers with an ACTIVE status are available for use.


hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

setName

public void setName(String name)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2011 jclouds. All Rights Reserved.