org.jclouds.openstack.nova.domain
Class Server

java.lang.Object
  extended by org.jclouds.openstack.nova.domain.Resource
      extended by org.jclouds.openstack.nova.domain.Server

public class Server
extends Resource

A server is a virtual machine instance in the OpenStack Nova 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()
           
 String getAffinityId()
           
 Date getCreated()
           
 String getFlavorRef()
           
 String getHostId()
          The OpenStack Nova provisioning algorithm has an anti-affinity property that attempts to spread out customer VMs across hosts.
 int getId()
           
 String getImageRef()
           
 Map<String,String> getMetadata()
           
 String getName()
           
 Integer getProgress()
           
 ServerStatus getStatus()
          Servers contain a status attribute that can be used as an indication of the current server state.
 Date getUpdated()
           
 int hashCode()
           
 void setAddresses(Addresses addresses)
           
 void setAdminPass(String adminPass)
           
 void setAffinityId(String affinityId)
           
 void setFlavorRef(String flavorRef)
           
 void setHostId(String hostId)
           
 void setImageRef(String imageRef)
           
 void setMetadata(Map<String,String> metadata)
           
 void setName(String name)
           
 void setProgress(Integer progress)
           
 void setStatus(ServerStatus status)
           
 String toString()
           
 
Methods inherited from class org.jclouds.openstack.nova.domain.Resource
getURI
 
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

getCreated

public Date getCreated()

getUpdated

public Date getUpdated()

getAffinityId

public String getAffinityId()

setAffinityId

public void setAffinityId(String affinityId)

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()

setFlavorRef

public void setFlavorRef(String flavorRef)

getFlavorRef

public String getFlavorRef()

setHostId

public void setHostId(String hostId)

getHostId

public String getHostId()
The OpenStack Nova 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()

setImageRef

public void setImageRef(String imageRef)

getImageRef

public String getImageRef()

getName

public String getName()

setProgress

public void setProgress(Integer progress)

getProgress

public Integer getProgress()

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.