Search in sources :

Example 1 with SdxRecipe

use of com.sequenceiq.sdx.api.model.SdxRecipe in project cloudbreak by hortonworks.

the class SdxTestDto method withRecipe.

public SdxTestDto withRecipe(String recipeName, String hostGroup) {
    if (CollectionUtils.isEmpty(getRequest().getRecipes())) {
        getRequest().setRecipes(new HashSet<>());
    }
    Set<SdxRecipe> recipes = getRequest().getRecipes();
    SdxRecipe sdxRecipe = new SdxRecipe();
    sdxRecipe.setName(recipeName);
    sdxRecipe.setHostGroup(hostGroup);
    recipes.add(sdxRecipe);
    return this;
}
Also used : SdxRecipe(com.sequenceiq.sdx.api.model.SdxRecipe)

Example 2 with SdxRecipe

use of com.sequenceiq.sdx.api.model.SdxRecipe in project cloudbreak by hortonworks.

the class SdxServiceTest method withRecipe.

private void withRecipe(SdxClusterRequest sdxClusterRequest) {
    SdxRecipe recipe = new SdxRecipe();
    recipe.setHostGroup("master");
    recipe.setName("post-install");
    sdxClusterRequest.setRecipes(Set.of(recipe));
}
Also used : SdxRecipe(com.sequenceiq.sdx.api.model.SdxRecipe)

Aggregations

SdxRecipe (com.sequenceiq.sdx.api.model.SdxRecipe)2