public enum RDSEngine extends Enum<RDSEngine>
Enum Constant and Description |
---|
MARIADB
The MariaDB engine.
|
MYSQL
The MySQL engine.
|
Modifier and Type | Method and Description |
---|---|
com.cloudera.director.spi.v1.database.DatabaseType |
getDatabaseType()
Returns the generic database type for the engine.
|
String |
getDefaultDescription()
Returns the default human-readable description of the engine, used when a
localized description cannot be found.
|
static RDSEngine |
getDefaultEngine(com.cloudera.director.spi.v1.database.DatabaseType databaseType)
Returns the default database engine for the specified database type.
|
String |
getEngineName()
Returns the engine name, as required by RDS.
|
static Set<com.cloudera.director.spi.v1.database.DatabaseType> |
getSupportedDatabaseTypes()
Returns the supported database types.
|
static RDSEngine |
getSupportedEngineByEngineName(String engineName)
Returns the supported engine with the specified name.
|
static List<String> |
getSupportedEngineNames()
Returns the list of supported engine names.
|
static Collection<String> |
getSupportedEngineNames(com.cloudera.director.spi.v1.database.DatabaseType databaseType)
Returns the supported database engine names for the specified database type.
|
static com.google.common.collect.Multimap<com.cloudera.director.spi.v1.database.DatabaseType,String> |
getSupportedEngineNamesByDatabaseType()
Returns the valid supported names for each database type.
|
static Map<String,RDSEngine> |
getSupportedEnginesByEngineName()
Returns the map from supported engine name to supported engine.
|
boolean |
isDefaultForType()
Returns whether the engine is the default engine for its database type.
|
static RDSEngine |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RDSEngine[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RDSEngine MYSQL
public static final RDSEngine MARIADB
public static RDSEngine[] values()
for (RDSEngine c : RDSEngine.values()) System.out.println(c);
public static RDSEngine valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static Map<String,RDSEngine> getSupportedEnginesByEngineName()
public static List<String> getSupportedEngineNames()
public static com.google.common.collect.Multimap<com.cloudera.director.spi.v1.database.DatabaseType,String> getSupportedEngineNamesByDatabaseType()
public static RDSEngine getSupportedEngineByEngineName(String engineName)
engineName
- the engine nameIllegalArgumentException
- if there is no such supported enginepublic static Collection<String> getSupportedEngineNames(com.cloudera.director.spi.v1.database.DatabaseType databaseType)
databaseType
- the database typepublic static Set<com.cloudera.director.spi.v1.database.DatabaseType> getSupportedDatabaseTypes()
public static RDSEngine getDefaultEngine(com.cloudera.director.spi.v1.database.DatabaseType databaseType)
databaseType
- the database typepublic com.cloudera.director.spi.v1.database.DatabaseType getDatabaseType()
public String getEngineName()
public String getDefaultDescription()
public boolean isDefaultForType()
Copyright © 2016. All rights reserved.