org.dasein.cloud.aws.platform
Class RDS

java.lang.Object
  extended by org.dasein.cloud.aws.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
static String AUTHORIZE_DB_SECURITY_GROUP_INGRESS
           
static String CREATE_DB_INSTANCE
           
static String CREATE_DB_PARAMETER_GROUP
           
static String CREATE_DB_SECURITY_GROUP
           
static String CREATE_DB_SNAPSHOT
           
static String CREATE_SECURITY_GROUP
           
static String DELETE_DB_INSTANCE
           
static String DELETE_DB_PARAMETER_GROUP
           
static String DELETE_DB_SECURITY_GROUP
           
static String DELETE_DB_SNAPSHOT
           
static String DESCRIBE_DB_ENGINE_VERSIONS
           
static String DESCRIBE_DB_EVENTS
           
static String DESCRIBE_DB_INSTANCES
           
static String DESCRIBE_DB_PARAMETER_GROUPS
           
static String DESCRIBE_DB_PARAMETERS
           
static String DESCRIBE_DB_SECURITY_GROUPS
           
static String DESCRIBE_DB_SNAPSHOTS
           
static String DESCRIBE_ENGINE_DEFAULT_PARAMETERS
           
static String MODIFY_DB_INSTANCE
           
static String MODIFY_DB_PARAMETER_GROUP
           
static String REBOOT_DB_INSTANCE
           
static String RESET_DB_PARAMETER_GROUP
           
static String RESTORE_DB_INSTANCE_FROM_SNAPSHOT
           
static String RESTORE_DB_INSTANCE_TO_TIME
           
static String REVOKE_DB_SECURITY_GROUP_INGRESS
           
 
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
 
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)
           
static org.dasein.cloud.identity.ServiceAction[] asRDSServiceAction(String action)
           
 String createFromLatest(String databaseName, String providerDatabaseId, String productSize, String providerDataCenterId, int hostPort)
           
 String createFromScratch(String databaseName, org.dasein.cloud.platform.DatabaseProduct product, String engineVersion, String withAdminUser, String withAdminPassword, int hostPort)
           
 String createFromSnapshot(String databaseName, String providerDatabaseId, String providerDbSnapshotId, String productSize, String providerDataCenterId, int hostPort)
           
 String createFromTimestamp(String databaseName, String providerDatabaseId, long beforeTimestamp, String productSize, String providerDataCenterId, int hostPort)
           
 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 engine)
           
 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.Database> listDatabases()
           
 Iterable<org.dasein.cloud.ResourceStatus> listDatabaseStatus()
           
 Collection<org.dasein.cloud.platform.ConfigurationParameter> listDefaultParameters(org.dasein.cloud.platform.DatabaseEngine engine)
           
 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... params)
           
 void restart(String providerDatabaseId, boolean blockUntilDone)
           
 void revokeAccess(String providerDatabaseId, String sourceCidr)
           
 org.dasein.cloud.platform.DatabaseSnapshot snapshot(String providerDatabaseId, String name)
           
 void updateConfiguration(String providerConfigurationId, org.dasein.cloud.platform.ConfigurationParameter... params)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AUTHORIZE_DB_SECURITY_GROUP_INGRESS

public static final String AUTHORIZE_DB_SECURITY_GROUP_INGRESS
See Also:
Constant Field Values

CREATE_DB_INSTANCE

public static final String CREATE_DB_INSTANCE
See Also:
Constant Field Values

CREATE_DB_PARAMETER_GROUP

public static final String CREATE_DB_PARAMETER_GROUP
See Also:
Constant Field Values

CREATE_DB_SECURITY_GROUP

public static final String CREATE_DB_SECURITY_GROUP
See Also:
Constant Field Values

CREATE_SECURITY_GROUP

public static final String CREATE_SECURITY_GROUP
See Also:
Constant Field Values

CREATE_DB_SNAPSHOT

public static final String CREATE_DB_SNAPSHOT
See Also:
Constant Field Values

DELETE_DB_INSTANCE

public static final String DELETE_DB_INSTANCE
See Also:
Constant Field Values

DELETE_DB_PARAMETER_GROUP

public static final String DELETE_DB_PARAMETER_GROUP
See Also:
Constant Field Values

DELETE_DB_SECURITY_GROUP

public static final String DELETE_DB_SECURITY_GROUP
See Also:
Constant Field Values

DELETE_DB_SNAPSHOT

public static final String DELETE_DB_SNAPSHOT
See Also:
Constant Field Values

DESCRIBE_DB_ENGINE_VERSIONS

public static final String DESCRIBE_DB_ENGINE_VERSIONS
See Also:
Constant Field Values

DESCRIBE_DB_INSTANCES

public static final String DESCRIBE_DB_INSTANCES
See Also:
Constant Field Values

DESCRIBE_ENGINE_DEFAULT_PARAMETERS

public static final String DESCRIBE_ENGINE_DEFAULT_PARAMETERS
See Also:
Constant Field Values

DESCRIBE_DB_PARAMETER_GROUPS

public static final String DESCRIBE_DB_PARAMETER_GROUPS
See Also:
Constant Field Values

DESCRIBE_DB_PARAMETERS

public static final String DESCRIBE_DB_PARAMETERS
See Also:
Constant Field Values

DESCRIBE_DB_SECURITY_GROUPS

public static final String DESCRIBE_DB_SECURITY_GROUPS
See Also:
Constant Field Values

DESCRIBE_DB_SNAPSHOTS

public static final String DESCRIBE_DB_SNAPSHOTS
See Also:
Constant Field Values

DESCRIBE_DB_EVENTS

public static final String DESCRIBE_DB_EVENTS
See Also:
Constant Field Values

MODIFY_DB_INSTANCE

public static final String MODIFY_DB_INSTANCE
See Also:
Constant Field Values

MODIFY_DB_PARAMETER_GROUP

public static final String MODIFY_DB_PARAMETER_GROUP
See Also:
Constant Field Values

REBOOT_DB_INSTANCE

public static final String REBOOT_DB_INSTANCE
See Also:
Constant Field Values

RESET_DB_PARAMETER_GROUP

public static final String RESET_DB_PARAMETER_GROUP
See Also:
Constant Field Values

RESTORE_DB_INSTANCE_FROM_SNAPSHOT

public static final String RESTORE_DB_INSTANCE_FROM_SNAPSHOT
See Also:
Constant Field Values

RESTORE_DB_INSTANCE_TO_TIME

public static final String RESTORE_DB_INSTANCE_TO_TIME
See Also:
Constant Field Values

REVOKE_DB_SECURITY_GROUP_INGRESS

public static final String REVOKE_DB_SECURITY_GROUP_INGRESS
See Also:
Constant Field Values
Method Detail

asRDSServiceAction

@Nonnull
public static org.dasein.cloud.identity.ServiceAction[] asRDSServiceAction(@Nonnull
                                                                                   String action)

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 databaseName,
                                org.dasein.cloud.platform.DatabaseProduct product,
                                String engineVersion,
                                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 databaseName,
                               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 databaseName,
                                 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 databaseName,
                                  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()
Specified by:
getDatabaseEngines in interface org.dasein.cloud.platform.RelationalDatabaseSupport

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 engine)
Specified by:
getDatabaseProducts in interface org.dasein.cloud.platform.RelationalDatabaseSupport

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()
Specified by:
isSupportsHighAvailability in interface org.dasein.cloud.platform.RelationalDatabaseSupport

isSupportsLowAvailability

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

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

@Nonnull
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

listDefaultParameters

public Collection<org.dasein.cloud.platform.ConfigurationParameter> listDefaultParameters(org.dasein.cloud.platform.DatabaseEngine engine)
                                                                                   throws org.dasein.cloud.CloudException,
                                                                                          org.dasein.cloud.InternalException
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

mapServiceAction

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

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... params)
                        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 sourceCidr)
                  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... params)
                         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


Copyright © 2009-2014 Dell, Inc.. All Rights Reserved.