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;
}
Aggregations