Search in sources :

Example 6 with YarnStackV4Parameters

use of com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.base.parameter.stack.YarnStackV4Parameters in project cloudbreak by hortonworks.

the class DistroXParameterConverter method convert.

public YarnStackV4Parameters convert(YarnDistroXV1Parameters source) {
    YarnStackV4Parameters response = new YarnStackV4Parameters();
    response.setYarnQueue(source.getYarnQueue());
    response.setLifetime(source.getLifetime());
    return response;
}
Also used : YarnStackV4Parameters(com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.base.parameter.stack.YarnStackV4Parameters)

Example 7 with YarnStackV4Parameters

use of com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.base.parameter.stack.YarnStackV4Parameters in project cloudbreak by hortonworks.

the class DistroXParameterConverter method convert.

public YarnStackV4Parameters convert(EnvironmentNetworkYarnParams environmentNetworkYarnParams) {
    YarnStackV4Parameters response = new YarnStackV4Parameters();
    response.setYarnQueue(environmentNetworkYarnParams.getQueue());
    response.setLifetime(environmentNetworkYarnParams.getLifetime());
    return response;
}
Also used : YarnStackV4Parameters(com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.base.parameter.stack.YarnStackV4Parameters)

Aggregations

YarnStackV4Parameters (com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.base.parameter.stack.YarnStackV4Parameters)7 Test (org.junit.jupiter.api.Test)3 YarnDistroXV1Parameters (com.sequenceiq.distrox.api.v1.distrox.model.YarnDistroXV1Parameters)2 EnvironmentNetworkYarnParams (com.sequenceiq.environment.api.v1.environment.model.EnvironmentNetworkYarnParams)2 BadRequestException (com.sequenceiq.cloudbreak.common.exception.BadRequestException)1