Search in sources :

Example 1 with BlueprintStackInfo

use of com.sequenceiq.cloudbreak.template.model.BlueprintStackInfo in project cloudbreak by hortonworks.

the class BlueprintViewProvider method getBlueprintView.

public BlueprintView getBlueprintView(@Nonnull Blueprint blueprint) {
    String blueprintText = blueprint.getBlueprintText();
    BlueprintStackInfo blueprintStackInfo = stackInfoService.blueprintStackInfo(blueprintText);
    BlueprintTextProcessor processor = blueprintTextProcessorFactory.createBlueprintTextProcessor(blueprintText);
    return new BlueprintView(blueprintText, blueprintStackInfo.getVersion(), blueprintStackInfo.getType(), processor);
}
Also used : BlueprintStackInfo(com.sequenceiq.cloudbreak.template.model.BlueprintStackInfo) BlueprintTextProcessor(com.sequenceiq.cloudbreak.template.processor.BlueprintTextProcessor) BlueprintView(com.sequenceiq.cloudbreak.template.views.BlueprintView)

Aggregations

BlueprintStackInfo (com.sequenceiq.cloudbreak.template.model.BlueprintStackInfo)1 BlueprintTextProcessor (com.sequenceiq.cloudbreak.template.processor.BlueprintTextProcessor)1 BlueprintView (com.sequenceiq.cloudbreak.template.views.BlueprintView)1