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;
}
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;
}
Aggregations