|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dasein.cloud.services.dc.Region
public class Region
A group of data centers that share a jurisidiction and some common points of failure. If a data center is in two different regions, it should have no common failure points. Similarly, if two data centers are in the same region, they share the same jurisdiction.
| Constructor Summary | |
|---|---|
Region()
Constructs an empty region instance used in marshalling a region across the wire. |
|
Region(String regionId,
String name,
boolean active,
boolean available)
Constructs a region with the specified state characteristics. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object ob)
|
String |
getName()
A (hopefully) user-friendly name for the region as known by the provider. |
String |
getProviderRegionId()
|
boolean |
isActive()
A regionis considered to be active if it should have at least one available data center. |
boolean |
isAvailable()
A region is considered available if at least one of its data centers is available. |
void |
setActive(boolean active)
Used only for marshalling and not to be used programatically. |
void |
setAvailable(boolean available)
Used only for marshalling and not to be used programatically. |
void |
setName(String name)
Used only for marshalling and not to be used programatically. |
void |
setProviderRegionId(String id)
Used only for marshalling and not to be used programatically. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Region()
public Region(String regionId,
String name,
boolean active,
boolean available)
regionId - the unique provider ID for the regionname - the user-friendly name for the regionactive - whether or not the active zones in this region should be availableavailable - whether or not at least one zone in this region is available| Method Detail |
|---|
public boolean equals(Object ob)
equals in class Objectpublic String getName()
public String getProviderRegionId()
public boolean isActive()
false only for discontinued regions or for new regions not quite
released for production.
true if this region should be operationalpublic boolean isAvailable()
true if at least one data center in the region is availablepublic void setActive(boolean active)
active - whether or not the marshalled region is activepublic void setAvailable(boolean available)
available - whether or not the marshalled region is availablepublic void setName(String name)
name - the name of the region being marshalledpublic void setProviderRegionId(String id)
id - the unique provider ID of the region being marshalled
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 2009 enStratus Networks LLC – Available under the terms of the Artistic License 2.0.