private void initServicesMetaData() { if (this.servicesMetaData != null) { return; } StartContainersResponseProtoOrBuilder p = viaProto ? proto : builder; List<StringBytesMapProto> list = p.getServicesMetaDataList(); this.servicesMetaData = new HashMap<String, ByteBuffer>(); for (StringBytesMapProto c : list) { this.servicesMetaData.put(c.getKey(), convertFromProtoFormat(c.getValue())); } }
private void initSucceededContainers() { if (this.succeededContainers != null) return; StartContainersResponseProtoOrBuilder p = viaProto ? proto : builder; List<ContainerIdProto> list = p.getSucceededRequestsList(); this.succeededContainers = new ArrayList<ContainerId>(); for (ContainerIdProto c : list) { this.succeededContainers.add(convertFromProtoFormat(c)); } }
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())); } }