org.jclouds.openstack.nova.domain
Class Server
java.lang.Object
org.jclouds.openstack.nova.domain.Resource
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
Methods inherited from class org.jclouds.openstack.nova.domain.Resource |
getURI |
Server
public Server()
Server
public Server(int id,
String name)
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.