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;
}
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;
}
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;
}
Aggregations