Search in sources :

Example 1 with ObjectStorageConnector

use of com.sequenceiq.cloudbreak.cloud.ObjectStorageConnector in project cloudbreak by hortonworks.

the class CloudProviderService method validateObjectStorage.

public ObjectStorageValidateResponse validateObjectStorage(ObjectStorageValidateRequest request) {
    ObjectStorageConnector objectStorageConnector = getCloudConnector(request).objectStorage();
    if (request.getMockAccountMappingSettings() != null) {
        objectStorageValidateRequestDecorator.decorateWithMockAccountMapping(request);
    }
    SpiFileSystem spiFileSystem = cloudStorageConverter.requestToSpiFileSystem(request.getCloudStorageRequest());
    request.setSpiFileSystem(spiFileSystem);
    return objectStorageConnector.validateObjectStorage(request);
}
Also used : ObjectStorageConnector(com.sequenceiq.cloudbreak.cloud.ObjectStorageConnector) SpiFileSystem(com.sequenceiq.cloudbreak.cloud.model.SpiFileSystem)

Aggregations

ObjectStorageConnector (com.sequenceiq.cloudbreak.cloud.ObjectStorageConnector)1 SpiFileSystem (com.sequenceiq.cloudbreak.cloud.model.SpiFileSystem)1