Search in sources :

Example 1 with CloudEfsView

use of com.sequenceiq.cloudbreak.cloud.model.filesystem.CloudEfsView in project cloudbreak by hortonworks.

the class FileSystemConverter method cloudIdentityToEfsView.

private CloudEfsView cloudIdentityToEfsView(CloudIdentity cloudIdentity) {
    CloudEfsView cloudEfsView = new CloudEfsView(cloudIdentity.getIdentityType());
    EfsIdentity efsIdentity = cloudIdentity.getEfsIdentity();
    if (Objects.isNull(efsIdentity)) {
        LOGGER.warn("EFS identity is null. Identity type is {}", cloudIdentity.getIdentityType());
        return null;
    }
    cloudEfsView.setInstanceProfile(efsIdentity.getInstanceProfile());
    return cloudEfsView;
}
Also used : CloudEfsView(com.sequenceiq.cloudbreak.cloud.model.filesystem.CloudEfsView) EfsIdentity(com.sequenceiq.cloudbreak.domain.cloudstorage.EfsIdentity)

Example 2 with CloudEfsView

use of com.sequenceiq.cloudbreak.cloud.model.filesystem.CloudEfsView in project cloudbreak by hortonworks.

the class FileSystemConverter method convertEfsLegacy.

private CloudEfsView convertEfsLegacy(EfsFileSystem source) {
    CloudEfsView cloudEfsView = new CloudEfsView(CloudIdentityType.LOG);
    cloudEfsView.setInstanceProfile(source.getInstanceProfile());
    return cloudEfsView;
}
Also used : CloudEfsView(com.sequenceiq.cloudbreak.cloud.model.filesystem.CloudEfsView)

Aggregations

CloudEfsView (com.sequenceiq.cloudbreak.cloud.model.filesystem.CloudEfsView)2 EfsIdentity (com.sequenceiq.cloudbreak.domain.cloudstorage.EfsIdentity)1