use of com.sequenceiq.cloudbreak.cloud.model.component.DefaultCDHInfo in project cloudbreak by hortonworks.
the class StackMatrixService method getImageBasedStackMatrix.
private StackMatrixV4Response getImageBasedStackMatrix(Long workspaceId, String platform, String imageCatalogName) throws CloudbreakImageCatalogException {
Map<String, ImageBasedDefaultCDHInfo> cdhEntries = imageBasedDefaultCDHEntries.getEntries(workspaceId, platform, imageCatalogName);
StackMatrixV4Response stackMatrixV4Response = new StackMatrixV4Response();
Map<String, ClouderaManagerStackDescriptorV4Response> cdhStackDescriptors = new HashMap<>();
for (Entry<String, ImageBasedDefaultCDHInfo> defaultCDHInfoEntry : cdhEntries.entrySet()) {
DefaultCDHInfo defaultCDHInfo = defaultCDHInfoEntry.getValue().getDefaultCDHInfo();
Image image = defaultCDHInfoEntry.getValue().getImage();
ClouderaManagerStackDescriptorV4Response stackDescriptorV4 = getImageBasedCMStackDescriptor(defaultCDHInfo, image);
cdhStackDescriptors.put(defaultCDHInfoEntry.getKey(), stackDescriptorV4);
}
stackMatrixV4Response.setCdh(cdhStackDescriptors);
return stackMatrixV4Response;
}
Aggregations