Search in sources :

Example 1 with InstanceGroupYarnNetworkV4Parameters

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;
}
Also used : ImmutablePair(org.apache.commons.lang3.tuple.ImmutablePair) InstanceGroupYarnNetworkV1Parameters(com.sequenceiq.distrox.api.v1.distrox.model.network.yarn.InstanceGroupYarnNetworkV1Parameters) InstanceGroupYarnNetworkV4Parameters(com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.base.parameter.instancegroup.network.yarn.InstanceGroupYarnNetworkV4Parameters)

Example 2 with InstanceGroupYarnNetworkV4Parameters

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);
}
Also used : InstanceGroupYarnNetworkV4Parameters(com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.base.parameter.instancegroup.network.yarn.InstanceGroupYarnNetworkV4Parameters)

Aggregations

InstanceGroupYarnNetworkV4Parameters (com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.base.parameter.instancegroup.network.yarn.InstanceGroupYarnNetworkV4Parameters)2 InstanceGroupYarnNetworkV1Parameters (com.sequenceiq.distrox.api.v1.distrox.model.network.yarn.InstanceGroupYarnNetworkV1Parameters)1 ImmutablePair (org.apache.commons.lang3.tuple.ImmutablePair)1