private void InitSucceededContainers()
        {
            if (this.succeededContainers != null)
            {
                return;
            }
            YarnServiceProtos.StartContainersResponseProtoOrBuilder p = viaProto ? proto : builder;
            IList <YarnProtos.ContainerIdProto> list = p.GetSucceededRequestsList();

            this.succeededContainers = new AList <ContainerId>();
            foreach (YarnProtos.ContainerIdProto c in list)
            {
                this.succeededContainers.AddItem(ConvertFromProtoFormat(c));
            }
        }
        private void InitServicesMetaData()
        {
            if (this.servicesMetaData != null)
            {
                return;
            }
            YarnServiceProtos.StartContainersResponseProtoOrBuilder p = viaProto ? proto : builder;
            IList <YarnProtos.StringBytesMapProto> list = p.GetServicesMetaDataList();

            this.servicesMetaData = new Dictionary <string, ByteBuffer>();
            foreach (YarnProtos.StringBytesMapProto c in list)
            {
                this.servicesMetaData[c.GetKey()] = ConvertFromProtoFormat(c.GetValue());
            }
        }
        private void InitFailedContainers()
        {
            if (this.failedContainers != null)
            {
                return;
            }
            YarnServiceProtos.StartContainersResponseProtoOrBuilder p         = viaProto ? proto : builder;
            IList <YarnServiceProtos.ContainerExceptionMapProto>    protoList = p.GetFailedRequestsList
                                                                                    ();

            this.failedContainers = new Dictionary <ContainerId, SerializedException>();
            foreach (YarnServiceProtos.ContainerExceptionMapProto ce in protoList)
            {
                this.failedContainers[ConvertFromProtoFormat(ce.GetContainerId())] = ConvertFromProtoFormat
                                                                                         (ce.GetException());
            }
        }