Search in sources :

Example 1 with SdxDatabaseAvailabilityType

use of com.sequenceiq.sdx.api.model.SdxDatabaseAvailabilityType in project cloudbreak by hortonworks.

the class SdxExternalDatabaseConfigurer method configure.

public void configure(CloudPlatform cloudPlatform, SdxDatabaseRequest databaseRequest, SdxCluster sdxCluster) {
    SdxDatabaseAvailabilityType databaseAvailabilityType = getDatabaseAvailabilityType(databaseRequest, cloudPlatform, sdxCluster);
    sdxCluster.setDatabaseAvailabilityType(databaseAvailabilityType);
    Optional.ofNullable(databaseRequest).map(SdxDatabaseRequest::getDatabaseEngineVersion).ifPresent(sdxCluster::setDatabaseEngineVersion);
    validate(cloudPlatform, sdxCluster);
}
Also used : SdxDatabaseAvailabilityType(com.sequenceiq.sdx.api.model.SdxDatabaseAvailabilityType)

Aggregations

SdxDatabaseAvailabilityType (com.sequenceiq.sdx.api.model.SdxDatabaseAvailabilityType)1