org.dasein.cloud.google.platform
Class RDS

java.lang.Object
  extended by org.dasein.cloud.google.platform.RDS
All Implemented Interfaces:
org.dasein.cloud.AccessControlledService, org.dasein.cloud.platform.RelationalDatabaseSupport

public class RDS
extends Object
implements org.dasein.cloud.platform.RelationalDatabaseSupport


Field Summary
 
Fields inherited from interface org.dasein.cloud.platform.RelationalDatabaseSupport
ALTER_DB, ANY, CREATE_RDBMS, CREATE_RDBMS_FROM_SNAP, CREATE_RDBMS_SNAP, GET_RDBMS, GET_RDBMS_SNAP, LIST_RDBMS, LIST_RDBMS_SNAP, REMOVE_RDBMS, REMOVE_RDBMS_SNAP, RESTART, UPDATE_RDBMS_FIREWALL
 
Constructor Summary
RDS(Google provider)
           
 
Method Summary
 void addAccess(String providerDatabaseId, String sourceCidr)
           
 void alterDatabase(String providerDatabaseId, boolean applyImmediately, String productSize, int storageInGigabytes, String configurationId, String newAdminUser, String newAdminPassword, int newPort, int snapshotRetentionInDays, org.dasein.cloud.TimeWindow preferredMaintenanceWindow, org.dasein.cloud.TimeWindow preferredBackupWindow)
           
 String createFromLatest(String dataSourceName, String providerDatabaseId, String productSize, String providerDataCenterId, int hostPort)
           
 String createFromScratch(String dataSourceName, org.dasein.cloud.platform.DatabaseProduct product, String databaseVersion, String withAdminUser, String withAdminPassword, int hostPort)
           
 String createFromSnapshot(String dataSourceName, String providerDatabaseId, String providerDbSnapshotId, String productSize, String providerDataCenterId, int hostPort)
           
 String createFromTimestamp(String dataSourceName, String providerDatabaseId, long beforeTimestamp, String productSize, String providerDataCenterId, int hostPort)
           
 org.dasein.cloud.platform.RelationalDatabaseCapabilities getCapabilities()
           
 org.dasein.cloud.platform.DatabaseConfiguration getConfiguration(String providerConfigurationId)
           
 org.dasein.cloud.platform.Database getDatabase(String providerDatabaseId)
           
 Iterable<org.dasein.cloud.platform.DatabaseEngine> getDatabaseEngines()
           
 Iterable<org.dasein.cloud.platform.DatabaseProduct> getDatabaseProducts(org.dasein.cloud.platform.DatabaseEngine forEngine)
           
 String getDefaultVersion(org.dasein.cloud.platform.DatabaseEngine forEngine)
           
 String getProviderTermForDatabase(Locale locale)
           
 String getProviderTermForSnapshot(Locale locale)
           
 org.dasein.cloud.platform.DatabaseSnapshot getSnapshot(String providerDbSnapshotId)
           
 Iterable<String> getSupportedVersions(org.dasein.cloud.platform.DatabaseEngine forEngine)
           
 boolean isSubscribed()
           
 boolean isSupportsFirewallRules()
           
 boolean isSupportsHighAvailability()
           
 boolean isSupportsLowAvailability()
           
 boolean isSupportsMaintenanceWindows()
           
 boolean isSupportsSnapshots()
           
 Iterable<String> listAccess(String toProviderDatabaseId)
           
 Iterable<org.dasein.cloud.platform.DatabaseConfiguration> listConfigurations()
           
 Iterable<org.dasein.cloud.platform.DatabaseProduct> listDatabaseProducts(org.dasein.cloud.platform.DatabaseEngine forEngine)
           
 Iterable<org.dasein.cloud.platform.Database> listDatabases()
           
 Iterable<org.dasein.cloud.ResourceStatus> listDatabaseStatus()
           
 Collection<org.dasein.cloud.platform.ConfigurationParameter> listParameters(String forProviderConfigurationId)
           
 Iterable<org.dasein.cloud.platform.DatabaseSnapshot> listSnapshots(String forOptionalProviderDatabaseId)
           
 String[] mapServiceAction(org.dasein.cloud.identity.ServiceAction action)
           
 void removeConfiguration(String providerConfigurationId)
           
 void removeDatabase(String providerDatabaseId)
           
 void removeSnapshot(String providerSnapshotId)
           
 void resetConfiguration(String providerConfigurationId, String... parameters)
           
 void restart(String providerDatabaseId, boolean blockUntilDone)
           
 void revokeAccess(String providerDatabaseId, String sourceCide)
           
 org.dasein.cloud.platform.DatabaseSnapshot snapshot(String providerDatabaseId, String name)
           
 void updateConfiguration(String providerConfigurationId, org.dasein.cloud.platform.ConfigurationParameter... parameters)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RDS

public RDS(Google provider)
Method Detail

mapServiceAction

public String[] mapServiceAction(org.dasein.cloud.identity.ServiceAction action)
Specified by:
mapServiceAction in interface org.dasein.cloud.AccessControlledService

addAccess

public void addAccess(String providerDatabaseId,
                      String sourceCidr)
               throws org.dasein.cloud.CloudException,
                      org.dasein.cloud.InternalException
Specified by:
addAccess in interface org.dasein.cloud.platform.RelationalDatabaseSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

alterDatabase

public void alterDatabase(String providerDatabaseId,
                          boolean applyImmediately,
                          String productSize,
                          int storageInGigabytes,
                          String configurationId,
                          String newAdminUser,
                          String newAdminPassword,
                          int newPort,
                          int snapshotRetentionInDays,
                          org.dasein.cloud.TimeWindow preferredMaintenanceWindow,
                          org.dasein.cloud.TimeWindow preferredBackupWindow)
                   throws org.dasein.cloud.CloudException,
                          org.dasein.cloud.InternalException
Specified by:
alterDatabase in interface org.dasein.cloud.platform.RelationalDatabaseSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

createFromScratch

public String createFromScratch(String dataSourceName,
                                org.dasein.cloud.platform.DatabaseProduct product,
                                String databaseVersion,
                                String withAdminUser,
                                String withAdminPassword,
                                int hostPort)
                         throws org.dasein.cloud.CloudException,
                                org.dasein.cloud.InternalException
Specified by:
createFromScratch in interface org.dasein.cloud.platform.RelationalDatabaseSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

createFromLatest

public String createFromLatest(String dataSourceName,
                               String providerDatabaseId,
                               String productSize,
                               String providerDataCenterId,
                               int hostPort)
                        throws org.dasein.cloud.InternalException,
                               org.dasein.cloud.CloudException
Specified by:
createFromLatest in interface org.dasein.cloud.platform.RelationalDatabaseSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

createFromSnapshot

public String createFromSnapshot(String dataSourceName,
                                 String providerDatabaseId,
                                 String providerDbSnapshotId,
                                 String productSize,
                                 String providerDataCenterId,
                                 int hostPort)
                          throws org.dasein.cloud.CloudException,
                                 org.dasein.cloud.InternalException
Specified by:
createFromSnapshot in interface org.dasein.cloud.platform.RelationalDatabaseSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

createFromTimestamp

public String createFromTimestamp(String dataSourceName,
                                  String providerDatabaseId,
                                  long beforeTimestamp,
                                  String productSize,
                                  String providerDataCenterId,
                                  int hostPort)
                           throws org.dasein.cloud.InternalException,
                                  org.dasein.cloud.CloudException
Specified by:
createFromTimestamp in interface org.dasein.cloud.platform.RelationalDatabaseSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

getConfiguration

public org.dasein.cloud.platform.DatabaseConfiguration getConfiguration(String providerConfigurationId)
                                                                 throws org.dasein.cloud.CloudException,
                                                                        org.dasein.cloud.InternalException
Specified by:
getConfiguration in interface org.dasein.cloud.platform.RelationalDatabaseSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

getDatabase

public org.dasein.cloud.platform.Database getDatabase(String providerDatabaseId)
                                               throws org.dasein.cloud.CloudException,
                                                      org.dasein.cloud.InternalException
Specified by:
getDatabase in interface org.dasein.cloud.platform.RelationalDatabaseSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

getDatabaseEngines

public Iterable<org.dasein.cloud.platform.DatabaseEngine> getDatabaseEngines()
                                                                      throws org.dasein.cloud.CloudException,
                                                                             org.dasein.cloud.InternalException
Specified by:
getDatabaseEngines in interface org.dasein.cloud.platform.RelationalDatabaseSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

getDefaultVersion

public String getDefaultVersion(org.dasein.cloud.platform.DatabaseEngine forEngine)
                         throws org.dasein.cloud.CloudException,
                                org.dasein.cloud.InternalException
Specified by:
getDefaultVersion in interface org.dasein.cloud.platform.RelationalDatabaseSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

getSupportedVersions

public Iterable<String> getSupportedVersions(org.dasein.cloud.platform.DatabaseEngine forEngine)
                                      throws org.dasein.cloud.CloudException,
                                             org.dasein.cloud.InternalException
Specified by:
getSupportedVersions in interface org.dasein.cloud.platform.RelationalDatabaseSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

getDatabaseProducts

public Iterable<org.dasein.cloud.platform.DatabaseProduct> getDatabaseProducts(org.dasein.cloud.platform.DatabaseEngine forEngine)
                                                                        throws org.dasein.cloud.CloudException,
                                                                               org.dasein.cloud.InternalException
Specified by:
getDatabaseProducts in interface org.dasein.cloud.platform.RelationalDatabaseSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

getProviderTermForDatabase

public String getProviderTermForDatabase(Locale locale)
Specified by:
getProviderTermForDatabase in interface org.dasein.cloud.platform.RelationalDatabaseSupport

getProviderTermForSnapshot

public String getProviderTermForSnapshot(Locale locale)
Specified by:
getProviderTermForSnapshot in interface org.dasein.cloud.platform.RelationalDatabaseSupport

getSnapshot

public org.dasein.cloud.platform.DatabaseSnapshot getSnapshot(String providerDbSnapshotId)
                                                       throws org.dasein.cloud.CloudException,
                                                              org.dasein.cloud.InternalException
Specified by:
getSnapshot in interface org.dasein.cloud.platform.RelationalDatabaseSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

isSubscribed

public boolean isSubscribed()
                     throws org.dasein.cloud.CloudException,
                            org.dasein.cloud.InternalException
Specified by:
isSubscribed in interface org.dasein.cloud.platform.RelationalDatabaseSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

isSupportsFirewallRules

public boolean isSupportsFirewallRules()
Specified by:
isSupportsFirewallRules in interface org.dasein.cloud.platform.RelationalDatabaseSupport

isSupportsHighAvailability

public boolean isSupportsHighAvailability()
                                   throws org.dasein.cloud.CloudException,
                                          org.dasein.cloud.InternalException
Specified by:
isSupportsHighAvailability in interface org.dasein.cloud.platform.RelationalDatabaseSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

isSupportsLowAvailability

public boolean isSupportsLowAvailability()
                                  throws org.dasein.cloud.CloudException,
                                         org.dasein.cloud.InternalException
Specified by:
isSupportsLowAvailability in interface org.dasein.cloud.platform.RelationalDatabaseSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

isSupportsMaintenanceWindows

public boolean isSupportsMaintenanceWindows()
Specified by:
isSupportsMaintenanceWindows in interface org.dasein.cloud.platform.RelationalDatabaseSupport

isSupportsSnapshots

public boolean isSupportsSnapshots()
Specified by:
isSupportsSnapshots in interface org.dasein.cloud.platform.RelationalDatabaseSupport

listAccess

public Iterable<String> listAccess(String toProviderDatabaseId)
                            throws org.dasein.cloud.CloudException,
                                   org.dasein.cloud.InternalException
Specified by:
listAccess in interface org.dasein.cloud.platform.RelationalDatabaseSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

listConfigurations

public Iterable<org.dasein.cloud.platform.DatabaseConfiguration> listConfigurations()
                                                                             throws org.dasein.cloud.CloudException,
                                                                                    org.dasein.cloud.InternalException
Specified by:
listConfigurations in interface org.dasein.cloud.platform.RelationalDatabaseSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

listDatabaseStatus

public Iterable<org.dasein.cloud.ResourceStatus> listDatabaseStatus()
                                                             throws org.dasein.cloud.CloudException,
                                                                    org.dasein.cloud.InternalException
Specified by:
listDatabaseStatus in interface org.dasein.cloud.platform.RelationalDatabaseSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

listDatabases

public Iterable<org.dasein.cloud.platform.Database> listDatabases()
                                                           throws org.dasein.cloud.CloudException,
                                                                  org.dasein.cloud.InternalException
Specified by:
listDatabases in interface org.dasein.cloud.platform.RelationalDatabaseSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

listParameters

public Collection<org.dasein.cloud.platform.ConfigurationParameter> listParameters(String forProviderConfigurationId)
                                                                            throws org.dasein.cloud.CloudException,
                                                                                   org.dasein.cloud.InternalException
Specified by:
listParameters in interface org.dasein.cloud.platform.RelationalDatabaseSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

listSnapshots

public Iterable<org.dasein.cloud.platform.DatabaseSnapshot> listSnapshots(String forOptionalProviderDatabaseId)
                                                                   throws org.dasein.cloud.CloudException,
                                                                          org.dasein.cloud.InternalException
Specified by:
listSnapshots in interface org.dasein.cloud.platform.RelationalDatabaseSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

removeConfiguration

public void removeConfiguration(String providerConfigurationId)
                         throws org.dasein.cloud.CloudException,
                                org.dasein.cloud.InternalException
Specified by:
removeConfiguration in interface org.dasein.cloud.platform.RelationalDatabaseSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

removeDatabase

public void removeDatabase(String providerDatabaseId)
                    throws org.dasein.cloud.CloudException,
                           org.dasein.cloud.InternalException
Specified by:
removeDatabase in interface org.dasein.cloud.platform.RelationalDatabaseSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

removeSnapshot

public void removeSnapshot(String providerSnapshotId)
                    throws org.dasein.cloud.CloudException,
                           org.dasein.cloud.InternalException
Specified by:
removeSnapshot in interface org.dasein.cloud.platform.RelationalDatabaseSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

resetConfiguration

public void resetConfiguration(String providerConfigurationId,
                               String... parameters)
                        throws org.dasein.cloud.CloudException,
                               org.dasein.cloud.InternalException
Specified by:
resetConfiguration in interface org.dasein.cloud.platform.RelationalDatabaseSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

restart

public void restart(String providerDatabaseId,
                    boolean blockUntilDone)
             throws org.dasein.cloud.CloudException,
                    org.dasein.cloud.InternalException
Specified by:
restart in interface org.dasein.cloud.platform.RelationalDatabaseSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

revokeAccess

public void revokeAccess(String providerDatabaseId,
                         String sourceCide)
                  throws org.dasein.cloud.CloudException,
                         org.dasein.cloud.InternalException
Specified by:
revokeAccess in interface org.dasein.cloud.platform.RelationalDatabaseSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

updateConfiguration

public void updateConfiguration(String providerConfigurationId,
                                org.dasein.cloud.platform.ConfigurationParameter... parameters)
                         throws org.dasein.cloud.CloudException,
                                org.dasein.cloud.InternalException
Specified by:
updateConfiguration in interface org.dasein.cloud.platform.RelationalDatabaseSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

snapshot

public org.dasein.cloud.platform.DatabaseSnapshot snapshot(String providerDatabaseId,
                                                           String name)
                                                    throws org.dasein.cloud.CloudException,
                                                           org.dasein.cloud.InternalException
Specified by:
snapshot in interface org.dasein.cloud.platform.RelationalDatabaseSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

listDatabaseProducts

public Iterable<org.dasein.cloud.platform.DatabaseProduct> listDatabaseProducts(org.dasein.cloud.platform.DatabaseEngine forEngine)
                                                                         throws org.dasein.cloud.CloudException,
                                                                                org.dasein.cloud.InternalException
Specified by:
listDatabaseProducts in interface org.dasein.cloud.platform.RelationalDatabaseSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

getCapabilities

public org.dasein.cloud.platform.RelationalDatabaseCapabilities getCapabilities()
                                                                         throws org.dasein.cloud.InternalException,
                                                                                org.dasein.cloud.CloudException
Specified by:
getCapabilities in interface org.dasein.cloud.platform.RelationalDatabaseSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException


Copyright © 2014 Dell, Inc. All Rights Reserved.