use of com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.base.parameter.instancegroup.network.yarn.InstanceGroupYarnNetworkV4Parameters in project cloudbreak by hortonworks.
the class InstanceGroupNetworkParameterConverter method convert.
public InstanceGroupYarnNetworkV4Parameters convert(InstanceGroupYarnNetworkV1Parameters yarn, EnvironmentNetworkResponse value, CloudPlatform cloudPlatform) {
InstanceGroupYarnNetworkV4Parameters response = null;
if (CloudPlatform.YARN == cloudPlatform) {
InstanceGroupYarnNetworkV1Parameters params = yarn == null ? new InstanceGroupYarnNetworkV1Parameters() : yarn;
response = convertToYarnNetworkParams(new ImmutablePair<>(params, value));
}
return response;
}
use of com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.base.parameter.instancegroup.network.yarn.InstanceGroupYarnNetworkV4Parameters in project cloudbreak by hortonworks.
the class StackV4RequestToStackConverter method setUpYarn.
private void setUpYarn(InstanceGroupV4Request instanceGroup, InstanceGroupNetworkV4Request instanceGroupNetworkV4Request) {
InstanceGroupYarnNetworkV4Parameters yarn = new InstanceGroupYarnNetworkV4Parameters();
instanceGroupNetworkV4Request.setYarn(yarn);
instanceGroup.setNetwork(instanceGroupNetworkV4Request);
}
Aggregations