@Override public ResourceBlacklistRequest getResourceBlacklistRequest() { AllocateRequestProtoOrBuilder p = viaProto ? proto : builder; if (this.blacklistRequest != null) { return this.blacklistRequest; } if (!p.hasBlacklistRequest()) { return null; } this.blacklistRequest = convertFromProtoFormat(p.getBlacklistRequest()); return this.blacklistRequest; }
private void initAsks() { if (this.ask != null) { return; } AllocateRequestProtoOrBuilder p = viaProto ? proto : builder; List<ResourceRequestProto> list = p.getAskList(); this.ask = new ArrayList<ResourceRequest>(); for (ResourceRequestProto c : list) { this.ask.add(convertFromProtoFormat(c)); } }
private void initIncreaseRequests() { if (this.increaseRequests != null) { return; } AllocateRequestProtoOrBuilder p = viaProto ? proto : builder; List<ContainerResourceIncreaseRequestProto> list = p.getIncreaseRequestList(); this.increaseRequests = new ArrayList<ContainerResourceIncreaseRequest>(); for (ContainerResourceIncreaseRequestProto c : list) { this.increaseRequests.add(convertFromProtoFormat(c)); } }
private void initReleases() { if (this.release != null) { return; } AllocateRequestProtoOrBuilder p = viaProto ? proto : builder; List<ContainerIdProto> list = p.getReleaseList(); this.release = new ArrayList<ContainerId>(); for (ContainerIdProto c : list) { this.release.add(convertFromProtoFormat(c)); } }
private void initIncreaseRequests() { if (this.increaseRequests != null) { return; } AllocateRequestProtoOrBuilder p = viaProto ? proto : builder; List<ContainerResourceChangeRequestProto> list = p.getIncreaseRequestList(); this.increaseRequests = new ArrayList<ContainerResourceChangeRequest>(); for (ContainerResourceChangeRequestProto c : list) { this.increaseRequests.add(convertFromProtoFormat(c)); } }
private void initDecreaseRequests() { if (this.decreaseRequests != null) { return; } AllocateRequestProtoOrBuilder p = viaProto ? proto : builder; List<ContainerResourceChangeRequestProto> list = p.getDecreaseRequestList(); this.decreaseRequests = new ArrayList<>(); for (ContainerResourceChangeRequestProto c : list) { this.decreaseRequests.add(convertFromProtoFormat(c)); } }
private void initUpdateRequests() { if (this.updateRequests != null) { return; } AllocateRequestProtoOrBuilder p = viaProto ? proto : builder; List<UpdateContainerRequestProto> list = p.getUpdateRequestsList(); this.updateRequests = new ArrayList<>(); for (UpdateContainerRequestProto c : list) { this.updateRequests.add(convertFromProtoFormat(c)); } }
private void initIncreaseRequests() { if (this.deprecatedIncreaseReqs != null) { return; } AllocateRequestProtoOrBuilder p = viaProto ? proto : builder; List<YarnProtos.ContainerResourceIncreaseRequestProto> list = p.getIncreaseRequestList(); this.deprecatedIncreaseReqs = new ArrayList<>(); for (YarnProtos.ContainerResourceIncreaseRequestProto c : list) { this.deprecatedIncreaseReqs.add(convertFromProtoFormat(c)); } }
@Override public int getResponseId() { AllocateRequestProtoOrBuilder p = viaProto ? proto : builder; return p.getResponseId(); }
@Override public float getProgress() { AllocateRequestProtoOrBuilder p = viaProto ? proto : builder; return p.getProgress(); }