use of com.sequenceiq.cloudbreak.api.endpoint.v4.imagecatalog.responses.ClouderaManagerStackRepoDetailsV4Response in project cloudbreak by hortonworks.
the class ImagesToImagesV4ResponseConverter method getDefaultCdhStackInfo.
private List<ClouderaManagerStackDetailsV4Response> getDefaultCdhStackInfo(Map<String, ImageBasedDefaultCDHInfo> defaultStackInfo) {
List<ClouderaManagerStackDetailsV4Response> result = new ArrayList<>();
for (ImageBasedDefaultCDHInfo info : defaultStackInfo.values()) {
ClouderaManagerStackDetailsV4Response json = new ClouderaManagerStackDetailsV4Response();
ClouderaManagerStackRepoDetailsV4Response repoJson = new ClouderaManagerStackRepoDetailsV4Response();
Map<String, String> stackRepo = info.getDefaultCDHInfo().getRepo().getStack();
if (stackRepo != null) {
repoJson.setStack(stackRepo);
}
json.setRepository(repoJson);
json.setVersion(info.getDefaultCDHInfo().getVersion());
result.add(json);
}
return result;
}
use of com.sequenceiq.cloudbreak.api.endpoint.v4.imagecatalog.responses.ClouderaManagerStackRepoDetailsV4Response in project cloudbreak by hortonworks.
the class StackInfoToClouderaManagerStackDescriptorV4ResponseConverter method defaultStackRepoDetailsToStackRepoDetailsV4Response.
private ClouderaManagerStackRepoDetailsV4Response defaultStackRepoDetailsToStackRepoDetailsV4Response(ClouderaManagerDefaultStackRepoDetails cmDefaultStackRepoDetails) {
if (cmDefaultStackRepoDetails == null) {
return null;
}
ClouderaManagerStackRepoDetailsV4Response cmStackRepoDetailsV4Response = new ClouderaManagerStackRepoDetailsV4Response();
cmStackRepoDetailsV4Response.setStack(cmDefaultStackRepoDetails.getStack());
return cmStackRepoDetailsV4Response;
}
use of com.sequenceiq.cloudbreak.api.endpoint.v4.imagecatalog.responses.ClouderaManagerStackRepoDetailsV4Response in project cloudbreak by hortonworks.
the class ImagesToImagesV4ResponseConverter method convertClouderaManagerStackRepoDetailsToJson.
private ClouderaManagerStackRepoDetailsV4Response convertClouderaManagerStackRepoDetailsToJson(StackRepoDetails repo) {
ClouderaManagerStackRepoDetailsV4Response json = new ClouderaManagerStackRepoDetailsV4Response();
json.setStack(new HashMap<>(repo.getStack()));
return json;
}
use of com.sequenceiq.cloudbreak.api.endpoint.v4.imagecatalog.responses.ClouderaManagerStackRepoDetailsV4Response in project cloudbreak by hortonworks.
the class RepoTestUtil method getCMStackRepoDetailsResponse.
public static ClouderaManagerStackRepoDetailsV4Response getCMStackRepoDetailsResponse(String version) {
ClouderaManagerStackRepoDetailsV4Response cmStackRepoDetailsV4Response = new ClouderaManagerStackRepoDetailsV4Response();
cmStackRepoDetailsV4Response.setStack(getStackRepo(version, StackType.CDH));
return cmStackRepoDetailsV4Response;
}
Aggregations