use of com.sequenceiq.cloudbreak.api.model.v2.InstanceGroupV2Request in project cloudbreak by hortonworks.
the class CloudProviderHelper method worker.
InstanceGroupV2Request worker(String securityGroupId) {
InstanceGroupV2Request r = new InstanceGroupV2Request();
r.setNodeCount(1);
r.setGroup("worker");
r.setType(InstanceGroupType.CORE);
SecurityGroupV2Request s = new SecurityGroupV2Request();
s.setSecurityGroupId(securityGroupId);
r.setSecurityGroup(s);
r.setTemplate(template());
return r;
}
use of com.sequenceiq.cloudbreak.api.model.v2.InstanceGroupV2Request in project cloudbreak by hortonworks.
the class CloudProviderHelper method compute.
InstanceGroupV2Request compute() {
InstanceGroupV2Request r = new InstanceGroupV2Request();
r.setNodeCount(1);
r.setGroup("compute");
r.setType(InstanceGroupType.CORE);
SecurityGroupV2Request s = new SecurityGroupV2Request();
s.setSecurityRules(rules());
r.setSecurityGroup(s);
r.setTemplate(template());
return r;
}
Aggregations