use of com.sequenceiq.cloudbreak.cloud.model.component.StackType in project cloudbreak by hortonworks.
the class ImageService method addCmRepo.
private void addCmRepo(Stack stack, Set<Component> components, com.sequenceiq.cloudbreak.cloud.model.catalog.Image catalogBasedImage) throws CloudbreakImageCatalogException {
if (catalogBasedImage.getStackDetails() != null) {
ImageStackDetails stackDetails = catalogBasedImage.getStackDetails();
StackType stackType = determineStackType(stackDetails);
ClouderaManagerRepo clouderaManagerRepo = getClouderaManagerRepo(catalogBasedImage, stackType);
components.add(new Component(CM_REPO_DETAILS, CM_REPO_DETAILS.name(), new Json(clouderaManagerRepo), stack));
} else {
LOGGER.debug("There are no stackDetails for stack {}, cannot determine CM repo version.", stack.getName());
}
}
use of com.sequenceiq.cloudbreak.cloud.model.component.StackType in project cloudbreak by hortonworks.
the class ImageService method addStackRepo.
private void addStackRepo(Stack stack, Set<Component> components, com.sequenceiq.cloudbreak.cloud.model.catalog.Image catalogBasedImage) throws CloudbreakImageCatalogException {
if (catalogBasedImage.getStackDetails() != null) {
ImageStackDetails stackDetails = catalogBasedImage.getStackDetails();
StackType stackType = determineStackType(stackDetails);
Component stackRepoComponent = getStackComponent(stack, stackDetails, stackType, catalogBasedImage.getOsType());
components.add(stackRepoComponent);
}
}
Aggregations