org.jclouds.deltacloud.domain
Class Realm

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

public class Realm
extends Object

Within a cloud provider a realm represents a boundary containing resources. The exact definition of a realm is left to the cloud provider. In some cases, a realm may represent different datacenters, different continents, or different pools of resources within a single datacenter. A cloud provider may insist that resources must all exist within a single realm in order to cooperate. For instance, storage volumes may only be allowed to be mounted to instances within the same realm.

Author:
Adrian Cole

Nested Class Summary
static class Realm.State
           
 
Constructor Summary
Realm(URI href, String id, String name, String limit, Realm.State state)
           
 
Method Summary
 boolean equals(Object obj)
           
 URI getHref()
           
 String getId()
           
 String getLimit()
          for example limitation of how many machine you can launch in given region / how much computing power is available for you.
 String getName()
           
 Realm.State getState()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Realm

public Realm(URI href,
             String id,
             String name,
             @Nullable
             String limit,
             Realm.State state)
Method Detail

getHref

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

getId

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

getName

public String getName()
Returns:
A short label

getLimit

@Nullable
public String getLimit()
for example limitation of how many machine you can launch in given region / how much computing power is available for you.

Returns:
Limits applicable for the current requester

getState

public Realm.State getState()
Returns:
indicator of the realm's current state

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.