Search in sources :

Example 1 with SdxInstanceGroupRequest

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

the class SdxTestDto method withCustomInstanceGroup.

public SdxTestDto withCustomInstanceGroup(String instanceGroup, String instanceType) {
    if (getRequest().getCustomInstanceGroups() == null) {
        getRequest().setCustomInstanceGroups(new ArrayList<>());
    }
    List<SdxInstanceGroupRequest> customInstanceGroups = getRequest().getCustomInstanceGroups();
    SdxInstanceGroupRequest customInstanceGroup = new SdxInstanceGroupRequest();
    customInstanceGroup.setName(instanceGroup);
    customInstanceGroup.setInstanceType(instanceType);
    customInstanceGroups.add(customInstanceGroup);
    return this;
}
Also used : SdxInstanceGroupRequest(com.sequenceiq.sdx.api.model.SdxInstanceGroupRequest)

Example 2 with SdxInstanceGroupRequest

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

the class SdxCustomTestDto method withCustomInstanceGroup.

public SdxCustomTestDto withCustomInstanceGroup(String instanceGroup, String instanceType) {
    if (getRequest().getCustomInstanceGroups() == null) {
        getRequest().setCustomInstanceGroups(new ArrayList<>());
    }
    List<SdxInstanceGroupRequest> customInstanceGroups = getRequest().getCustomInstanceGroups();
    SdxInstanceGroupRequest customInstanceGroup = new SdxInstanceGroupRequest();
    customInstanceGroup.setName(instanceGroup);
    customInstanceGroup.setInstanceType(instanceType);
    customInstanceGroups.add(customInstanceGroup);
    return this;
}
Also used : SdxInstanceGroupRequest(com.sequenceiq.sdx.api.model.SdxInstanceGroupRequest)

Example 3 with SdxInstanceGroupRequest

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

the class SdxServiceTest method withInstanceGroup.

private SdxInstanceGroupRequest withInstanceGroup(String name, String instanceType) {
    SdxInstanceGroupRequest masterInstanceGroup = new SdxInstanceGroupRequest();
    masterInstanceGroup.setName(name);
    masterInstanceGroup.setInstanceType(instanceType);
    return masterInstanceGroup;
}
Also used : SdxInstanceGroupRequest(com.sequenceiq.sdx.api.model.SdxInstanceGroupRequest)

Aggregations

SdxInstanceGroupRequest (com.sequenceiq.sdx.api.model.SdxInstanceGroupRequest)3