Search in sources :

Example 1 with IncreaseContainersResourceRequestProtoOrBuilder

use of org.apache.hadoop.yarn.proto.YarnServiceProtos.IncreaseContainersResourceRequestProtoOrBuilder in project hadoop by apache.

the class IncreaseContainersResourceRequestPBImpl method getContainersToIncrease.

@Override
public List<Token> getContainersToIncrease() {
    if (containersToIncrease != null) {
        return containersToIncrease;
    }
    IncreaseContainersResourceRequestProtoOrBuilder p = viaProto ? proto : builder;
    List<TokenProto> list = p.getIncreaseContainersList();
    containersToIncrease = new ArrayList<>();
    for (TokenProto c : list) {
        containersToIncrease.add(convertFromProtoFormat(c));
    }
    return containersToIncrease;
}
Also used : TokenProto(org.apache.hadoop.security.proto.SecurityProtos.TokenProto) IncreaseContainersResourceRequestProtoOrBuilder(org.apache.hadoop.yarn.proto.YarnServiceProtos.IncreaseContainersResourceRequestProtoOrBuilder)

Aggregations

TokenProto (org.apache.hadoop.security.proto.SecurityProtos.TokenProto)1 IncreaseContainersResourceRequestProtoOrBuilder (org.apache.hadoop.yarn.proto.YarnServiceProtos.IncreaseContainersResourceRequestProtoOrBuilder)1