org.jclouds.cloudservers.domain
Class Server
java.lang.Object
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
Server
public Server()
Server
public Server(int id,
String name)
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.