org.jclouds.deltacloud.domain
Class Instance

java.lang.Object
  extended by org.jclouds.deltacloud.domain.Instance

public class Instance
extends Object

An instance is a concrete machine realized from an image.

Author:
Adrian Cole

Nested Class Summary
static class Instance.Action
           
static interface Instance.Authentication
           
static class Instance.State
           
 
Constructor Summary
Instance(URI href, String id, String ownerId, String name, URI image, URI hardwareProfile, URI realm, Instance.State state, Map<Instance.Action,HttpRequest> actions, Instance.Authentication authentication, Set<String> publicAddresses, Set<String> privateAddresses)
           
 
Method Summary
 boolean equals(Object obj)
           
 Map<Instance.Action,HttpRequest> getActions()
           
 Instance.Authentication getAuthentication()
           
 URI getHardwareProfile()
           
 URI getHref()
           
 String getId()
           
 URI getImage()
           
 String getName()
           
 String getOwnerId()
           
 Set<String> getPrivateAddresses()
           
 Set<String> getPublicAddresses()
           
 URI getRealm()
           
 Instance.State getState()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Instance

public Instance(URI href,
                String id,
                String ownerId,
                @Nullable
                String name,
                URI image,
                URI hardwareProfile,
                URI realm,
                Instance.State state,
                Map<Instance.Action,HttpRequest> actions,
                @Nullable
                Instance.Authentication authentication,
                Set<String> publicAddresses,
                Set<String> privateAddresses)
Method Detail

getHref

public URI getHref()
Returns:
URL to manipulate a specific instance

getId

public String getId()
Returns:
A unique identifier for the instance

getOwnerId

public String getOwnerId()
Returns:
An opaque identifier which indicates the owner of an instance

getName

@Nullable
public String getName()
Returns:
An optional short label describing the instance

getImage

public URI getImage()
Returns:

getHardwareProfile

public URI getHardwareProfile()
Returns:
a link to the hardware profile in use by the instance

getRealm

public URI getRealm()
Returns:
a link to the realm where the instance is deployed

getState

public Instance.State getState()
Returns:
indicator of the instance's current state

getActions

public Map<Instance.Action,HttpRequest> getActions()
Returns:
valid actions for the instance, along with the URL which may be used to perform the action

getAuthentication

@Nullable
public Instance.Authentication getAuthentication()
Returns:
authentication of the instance or null

getPublicAddresses

public Set<String> getPublicAddresses()
Returns:
publicly routable IP addresses or names for the instance

getPrivateAddresses

public Set<String> getPrivateAddresses()
Returns:
Private network IP addresses or names for the instance

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2011 jclouds. All Rights Reserved.