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)
           
 String getAccessIPv4()
           
 String getAccessIPv6()
           
 Addresses getAddresses()
           
 String getAdminPass()
           
 String getAffinityId()
           
 Date getCreated()
           
 Flavor getFlavor()
           
 String getFlavorRef()
          Deprecated. in nova 1.1 api at the Diablo release, replaced by getFlavor()
 String getHostId()
          The OpenStack Nova provisioning algorithm has an anti-affinity property that attempts to spread out customer VMs across hosts.
 int getId()
           
 Image getImage()
           
 String getImageRef()
          Deprecated. in nova 1.1 api at the Diablo release, replaced by getImage().
 String getKeyName()
           
 Map<String,String> getMetadata()
           
 String getName()
           
 Integer getProgress()
           
 Set<SecurityGroup> getSecurityGroups()
           
 ServerStatus getStatus()
          Servers contain a status attribute that can be used as an indication of the current server state.
 Date getUpdated()
           
 String getUuid()
           
 int hashCode()
           
 void setAccessIPv4(String accessIPv4)
           
 void setAccessIPv6(String accessIPv6)
           
 void setAddresses(Addresses addresses)
           
 void setAdminPass(String adminPass)
           
 void setAffinityId(String affinityId)
           
 void setFlavor(Flavor flavor)
           
 void setFlavorRef(String flavorRef)
           
 void setHostId(String hostId)
           
 void setImage(Image image)
           
 void setImageRef(String imageRef)
           
 void setKeyName(String keyName)
           
 void setMetadata(Map<String,String> metadata)
           
 void setName(String name)
           
 void setProgress(Integer progress)
           
 void setSecurityGroups(Set<SecurityGroup> securityGroups)
           
 void setStatus(ServerStatus status)
           
 void setUuid(String uuid)
           
 String toString()
           
 
Methods inherited from class org.jclouds.openstack.nova.domain.Resource
getSelfURI, 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

@Deprecated
public String getFlavorRef()
Deprecated. in nova 1.1 api at the Diablo release, replaced by getFlavor()


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

@Deprecated
public String getImageRef()
Deprecated. in nova 1.1 api at the Diablo release, replaced by getImage().


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.


getUuid

public String getUuid()

setUuid

public void setUuid(String uuid)

getFlavor

public Flavor getFlavor()

setFlavor

public void setFlavor(Flavor flavor)

getImage

public Image getImage()

setImage

public void setImage(Image image)

getKeyName

public String getKeyName()

setKeyName

public void setKeyName(String keyName)

getSecurityGroups

public Set<SecurityGroup> getSecurityGroups()

setSecurityGroups

public void setSecurityGroups(Set<SecurityGroup> securityGroups)

getAccessIPv4

public String getAccessIPv4()
Returns:
the accessIPv4

setAccessIPv4

public void setAccessIPv4(String accessIPv4)
Parameters:
accessIPv4 - the accessIPv4 to set

getAccessIPv6

public String getAccessIPv6()
Returns:
the accessIPv6

setAccessIPv6

public void setAccessIPv6(String accessIPv6)
Parameters:
accessIPv6 - the accessIPv6 to set

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-2012 jclouds. All Rights Reserved.