use of org.apache.hadoop.yarn.proto.YarnServiceProtos.ContainerExceptionMapProto in project hadoop by apache.
the class StopContainersResponsePBImpl method initFailedRequests.
private void initFailedRequests() {
if (this.failedRequests != null) {
return;
}
StopContainersResponseProtoOrBuilder p = viaProto ? proto : builder;
List<ContainerExceptionMapProto> protoList = p.getFailedRequestsList();
this.failedRequests = new HashMap<ContainerId, SerializedException>();
for (ContainerExceptionMapProto ce : protoList) {
this.failedRequests.put(convertFromProtoFormat(ce.getContainerId()), convertFromProtoFormat(ce.getException()));
}
}
use of org.apache.hadoop.yarn.proto.YarnServiceProtos.ContainerExceptionMapProto in project hadoop by apache.
the class GetContainerStatusesResponsePBImpl method initFailedRequests.
private void initFailedRequests() {
if (this.failedRequests != null) {
return;
}
GetContainerStatusesResponseProtoOrBuilder p = viaProto ? proto : builder;
List<ContainerExceptionMapProto> protoList = p.getFailedRequestsList();
this.failedRequests = new HashMap<ContainerId, SerializedException>();
for (ContainerExceptionMapProto ce : protoList) {
this.failedRequests.put(convertFromProtoFormat(ce.getContainerId()), convertFromProtoFormat(ce.getException()));
}
}
use of org.apache.hadoop.yarn.proto.YarnServiceProtos.ContainerExceptionMapProto in project hadoop by apache.
the class StartContainersResponsePBImpl method initFailedContainers.
private void initFailedContainers() {
if (this.failedContainers != null) {
return;
}
StartContainersResponseProtoOrBuilder p = viaProto ? proto : builder;
List<ContainerExceptionMapProto> protoList = p.getFailedRequestsList();
this.failedContainers = new HashMap<ContainerId, SerializedException>();
for (ContainerExceptionMapProto ce : protoList) {
this.failedContainers.put(convertFromProtoFormat(ce.getContainerId()), convertFromProtoFormat(ce.getException()));
}
}
use of org.apache.hadoop.yarn.proto.YarnServiceProtos.ContainerExceptionMapProto in project hadoop by apache.
the class IncreaseContainersResourceResponsePBImpl method initFailedRequests.
private void initFailedRequests() {
if (this.failedRequests != null) {
return;
}
IncreaseContainersResourceResponseProtoOrBuilder p = viaProto ? proto : builder;
List<ContainerExceptionMapProto> protoList = p.getFailedRequestsList();
this.failedRequests = new HashMap<ContainerId, SerializedException>();
for (ContainerExceptionMapProto ce : protoList) {
this.failedRequests.put(convertFromProtoFormat(ce.getContainerId()), convertFromProtoFormat(ce.getException()));
}
}
Aggregations