|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dasein.cloud.services.dc.DataCenter
public class DataCenter
A data center represents a group of virtualized resources that share a significant amount of common physical infrastructure.
| Constructor Summary | |
|---|---|
DataCenter()
Constructs an empty data center object, only useful in marshalling and unmarshalling. |
|
DataCenter(String dataCenterId,
String name,
String regionId,
boolean active,
boolean available)
Constructs a new data center object from the specified state values. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object ob)
|
String |
getName()
A (hopefully) user-friendly name for the data center as known by the provider. |
String |
getProviderDataCenterId()
The unique ID as understood by the provider for representing this data center. |
String |
getRegionId()
|
boolean |
isActive()
A data center is considered to be active if it should be available. |
boolean |
isAvailable()
A data center is considered available if a customer can allocate resources in that data center. |
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 programmatically. |
void |
setName(String name)
Used only for marshalling and not to be used programmatically. |
void |
setProviderDataCenterId(String id)
Used only for marshalling and not to be used programmatically. |
void |
setRegionId(String regionId)
Used only for marshalling and not to be used programmatically. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataCenter()
public DataCenter(String dataCenterId,
String name,
String regionId,
boolean active,
boolean available)
dataCenterId - the provider identifier for the data centername - the name of the data centeractive - whether or not the data center is currently in use with the provideravailable - whether or not the data center is currently up and operating normally| Method Detail |
|---|
public boolean equals(Object ob)
equals in class Objectpublic String getName()
public String getProviderDataCenterId()
public String getRegionId()
public boolean isActive()
false only for discontinued data centers or for new data centers not quite
released for production.
true if this data center should be operationalpublic boolean isAvailable()
true if the customer should be able to expect successful resource allocation in the data centerpublic void setActive(boolean active)
active - whether or not the marshalled data center is activepublic void setAvailable(boolean available)
available - whether or not the marshalled data center is availablepublic void setName(String name)
name - the name of the marshalled data centerpublic void setProviderDataCenterId(String id)
id - the unique ID of the marshalled data centerpublic void setRegionId(String regionId)
regionId - the unique ID of the region in which the marshalled data center is located
|
||||||||||
| 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.