org.dasein.cloud.vcloud
Class VDCServices

java.lang.Object
  extended by org.dasein.cloud.vcloud.VDCServices
All Implemented Interfaces:
DataCenterServices

public class VDCServices
extends Object
implements DataCenterServices

vCloud VDC support to describe the data centers in a specific vCloud-based cloud. Dasein Cloud maps your vCloud organization to both an accountNumber and a Dasein Cloud region. Dasein Cloud data centers map to vCloud VDCs. There's a further nuance in the ID format of regions and data centers. They can take the format /org/ORG_ID and /vdc/VDC_ID, respectively, OR they can simply be ORG_ID and VDC_ID respectively. By default, the Region.getProviderRegionId() == ORG_ID. However, if the ProviderContext.getCustomProperties() property "compat" or system property "vCloudCompat" are set to true, Dasein Cloud will mimic the old Dasein Cloud + jclouds behavior in which Region.getProviderRegionId() == /org/ORG_ID.

Created by George Reese: 9/17/12 11:00 AM

Since:
2012.09
Version:
2012.09 initial version
Author:
George Reese

Method Summary
 DataCenter getDataCenter(String providerDataCenterId)
           
 String getProviderTermForDataCenter(Locale locale)
           
 String getProviderTermForRegion(Locale locale)
           
 Region getRegion(String providerRegionId)
           
 Collection<DataCenter> listDataCenters(String providerRegionId)
           
 Collection<Region> listRegions()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDataCenter

@Nullable
public DataCenter getDataCenter(@Nonnull
                                         String providerDataCenterId)
                         throws InternalException,
                                CloudException
Specified by:
getDataCenter in interface DataCenterServices
Throws:
InternalException
CloudException

getProviderTermForDataCenter

@Nonnull
public String getProviderTermForDataCenter(@Nonnull
                                                   Locale locale)
Specified by:
getProviderTermForDataCenter in interface DataCenterServices

getProviderTermForRegion

@Nonnull
public String getProviderTermForRegion(@Nonnull
                                               Locale locale)
Specified by:
getProviderTermForRegion in interface DataCenterServices

getRegion

@Nullable
public Region getRegion(@Nonnull
                                 String providerRegionId)
                 throws InternalException,
                        CloudException
Specified by:
getRegion in interface DataCenterServices
Throws:
InternalException
CloudException

listDataCenters

@Nonnull
public Collection<DataCenter> listDataCenters(@Nonnull
                                                      String providerRegionId)
                                       throws InternalException,
                                              CloudException
Specified by:
listDataCenters in interface DataCenterServices
Throws:
InternalException
CloudException

listRegions

@Nonnull
public Collection<Region> listRegions()
                               throws InternalException,
                                      CloudException
Specified by:
listRegions in interface DataCenterServices
Throws:
InternalException
CloudException


Copyright © 2013 enStratus Networks Inc. All Rights Reserved.