org.dasein.cloud.cloudstack
Class CSTopology

java.lang.Object
  extended by org.dasein.cloud.cloudstack.CSTopology
All Implemented Interfaces:
DataCenterServices

public class CSTopology
extends Object
implements DataCenterServices


Field Summary
static String LIST_ZONES
           
 
Constructor Summary
CSTopology(CSCloud provider)
           
 
Method Summary
 DataCenter getDataCenter(String zoneId)
           
 String getProviderTermForDataCenter(Locale locale)
           
 String getProviderTermForRegion(Locale locale)
           
 Region getRegion(String regionId)
           
 Collection<DataCenter> listDataCenters(String regionId)
           
 Collection<Region> listRegions()
           
 boolean requiresNetwork(String zoneId)
           
 boolean supportsSecurityGroups(String zoneId, boolean basicOnly)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LIST_ZONES

public static final String LIST_ZONES
See Also:
Constant Field Values
Constructor Detail

CSTopology

public CSTopology(@Nonnull
                  CSCloud provider)
Method Detail

getDataCenter

@Nullable
public DataCenter getDataCenter(@Nonnull
                                         String zoneId)
                         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 regionId)
                 throws InternalException,
                        CloudException
Specified by:
getRegion in interface DataCenterServices
Throws:
InternalException
CloudException

requiresNetwork

public boolean requiresNetwork(@Nonnull
                               String zoneId)
                        throws InternalException,
                               CloudException
Throws:
InternalException
CloudException

supportsSecurityGroups

public boolean supportsSecurityGroups(@Nonnull
                                      String zoneId,
                                      boolean basicOnly)
                               throws InternalException,
                                      CloudException
Throws:
InternalException
CloudException

listDataCenters

@Nonnull
public Collection<DataCenter> listDataCenters(@Nonnull
                                                      String regionId)
                                       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 © 2012 enStratus Networks Inc. All Rights Reserved.