Java 类org.apache.hadoop.yarn.proto.YarnProtos.ContainerReportProto 实例源码

项目:hadoop    文件:GetContainersResponsePBImpl.java   
private void initLocalContainerList() {
  if (this.containerList != null) {
    return;
  }
  GetContainersResponseProtoOrBuilder p = viaProto ? proto : builder;
  List<ContainerReportProto> list = p.getContainersList();
  containerList = new ArrayList<ContainerReport>();

  for (ContainerReportProto c : list) {
    containerList.add(convertFromProtoFormat(c));
  }
}
项目:hadoop    文件:GetContainersResponsePBImpl.java   
private void addLocalContainersToProto() {
  maybeInitBuilder();
  builder.clearContainers();
  if (containerList == null) {
    return;
  }
  Iterable<ContainerReportProto> iterable =
      new Iterable<ContainerReportProto>() {
        @Override
        public Iterator<ContainerReportProto> iterator() {
          return new Iterator<ContainerReportProto>() {

            Iterator<ContainerReport> iter = containerList.iterator();

            @Override
            public boolean hasNext() {
              return iter.hasNext();
            }

            @Override
            public ContainerReportProto next() {
              return convertToProtoFormat(iter.next());
            }

            @Override
            public void remove() {
              throw new UnsupportedOperationException();

            }
          };

        }
      };
  builder.addAllContainers(iterable);
}
项目:hadoop    文件:ContainerReportPBImpl.java   
public ContainerReportProto getProto() {

    mergeLocalToProto();
    proto = viaProto ? proto : builder.build();
    viaProto = true;
    return proto;
  }
项目:aliyun-oss-hadoop-fs    文件:GetContainersResponsePBImpl.java   
private void initLocalContainerList() {
  if (this.containerList != null) {
    return;
  }
  GetContainersResponseProtoOrBuilder p = viaProto ? proto : builder;
  List<ContainerReportProto> list = p.getContainersList();
  containerList = new ArrayList<ContainerReport>();

  for (ContainerReportProto c : list) {
    containerList.add(convertFromProtoFormat(c));
  }
}
项目:aliyun-oss-hadoop-fs    文件:GetContainersResponsePBImpl.java   
private void addLocalContainersToProto() {
  maybeInitBuilder();
  builder.clearContainers();
  if (containerList == null) {
    return;
  }
  Iterable<ContainerReportProto> iterable =
      new Iterable<ContainerReportProto>() {
        @Override
        public Iterator<ContainerReportProto> iterator() {
          return new Iterator<ContainerReportProto>() {

            Iterator<ContainerReport> iter = containerList.iterator();

            @Override
            public boolean hasNext() {
              return iter.hasNext();
            }

            @Override
            public ContainerReportProto next() {
              return convertToProtoFormat(iter.next());
            }

            @Override
            public void remove() {
              throw new UnsupportedOperationException();

            }
          };

        }
      };
  builder.addAllContainers(iterable);
}
项目:aliyun-oss-hadoop-fs    文件:ContainerReportPBImpl.java   
public ContainerReportProto getProto() {

    mergeLocalToProto();
    proto = viaProto ? proto : builder.build();
    viaProto = true;
    return proto;
  }
项目:big-c    文件:GetContainersResponsePBImpl.java   
private void initLocalContainerList() {
  if (this.containerList != null) {
    return;
  }
  GetContainersResponseProtoOrBuilder p = viaProto ? proto : builder;
  List<ContainerReportProto> list = p.getContainersList();
  containerList = new ArrayList<ContainerReport>();

  for (ContainerReportProto c : list) {
    containerList.add(convertFromProtoFormat(c));
  }
}
项目:big-c    文件:GetContainersResponsePBImpl.java   
private void addLocalContainersToProto() {
  maybeInitBuilder();
  builder.clearContainers();
  if (containerList == null) {
    return;
  }
  Iterable<ContainerReportProto> iterable =
      new Iterable<ContainerReportProto>() {
        @Override
        public Iterator<ContainerReportProto> iterator() {
          return new Iterator<ContainerReportProto>() {

            Iterator<ContainerReport> iter = containerList.iterator();

            @Override
            public boolean hasNext() {
              return iter.hasNext();
            }

            @Override
            public ContainerReportProto next() {
              return convertToProtoFormat(iter.next());
            }

            @Override
            public void remove() {
              throw new UnsupportedOperationException();

            }
          };

        }
      };
  builder.addAllContainers(iterable);
}
项目:big-c    文件:ContainerReportPBImpl.java   
public ContainerReportProto getProto() {

    mergeLocalToProto();
    proto = viaProto ? proto : builder.build();
    viaProto = true;
    return proto;
  }
项目:hadoop-2.6.0-cdh5.4.3    文件:GetContainersResponsePBImpl.java   
private void initLocalContainerList() {
  if (this.containerList != null) {
    return;
  }
  GetContainersResponseProtoOrBuilder p = viaProto ? proto : builder;
  List<ContainerReportProto> list = p.getContainersList();
  containerList = new ArrayList<ContainerReport>();

  for (ContainerReportProto c : list) {
    containerList.add(convertFromProtoFormat(c));
  }
}
项目:hadoop-2.6.0-cdh5.4.3    文件:GetContainersResponsePBImpl.java   
private void addLocalContainersToProto() {
  maybeInitBuilder();
  builder.clearContainers();
  if (containerList == null) {
    return;
  }
  Iterable<ContainerReportProto> iterable =
      new Iterable<ContainerReportProto>() {
        @Override
        public Iterator<ContainerReportProto> iterator() {
          return new Iterator<ContainerReportProto>() {

            Iterator<ContainerReport> iter = containerList.iterator();

            @Override
            public boolean hasNext() {
              return iter.hasNext();
            }

            @Override
            public ContainerReportProto next() {
              return convertToProtoFormat(iter.next());
            }

            @Override
            public void remove() {
              throw new UnsupportedOperationException();

            }
          };

        }
      };
  builder.addAllContainers(iterable);
}
项目:hadoop-2.6.0-cdh5.4.3    文件:ContainerReportPBImpl.java   
public ContainerReportProto getProto() {

    mergeLocalToProto();
    proto = viaProto ? proto : builder.build();
    viaProto = true;
    return proto;
  }
项目:hops    文件:GetContainersResponsePBImpl.java   
private void initLocalContainerList() {
  if (this.containerList != null) {
    return;
  }
  GetContainersResponseProtoOrBuilder p = viaProto ? proto : builder;
  List<ContainerReportProto> list = p.getContainersList();
  containerList = new ArrayList<ContainerReport>();

  for (ContainerReportProto c : list) {
    containerList.add(convertFromProtoFormat(c));
  }
}
项目:hops    文件:GetContainersResponsePBImpl.java   
private void addLocalContainersToProto() {
  maybeInitBuilder();
  builder.clearContainers();
  if (containerList == null) {
    return;
  }
  Iterable<ContainerReportProto> iterable =
      new Iterable<ContainerReportProto>() {
        @Override
        public Iterator<ContainerReportProto> iterator() {
          return new Iterator<ContainerReportProto>() {

            Iterator<ContainerReport> iter = containerList.iterator();

            @Override
            public boolean hasNext() {
              return iter.hasNext();
            }

            @Override
            public ContainerReportProto next() {
              return convertToProtoFormat(iter.next());
            }

            @Override
            public void remove() {
              throw new UnsupportedOperationException();

            }
          };

        }
      };
  builder.addAllContainers(iterable);
}
项目:hops    文件:ContainerReportPBImpl.java   
public ContainerReportProto getProto() {

    mergeLocalToProto();
    proto = viaProto ? proto : builder.build();
    viaProto = true;
    return proto;
  }
项目:hadoop-on-lustre2    文件:GetContainersResponsePBImpl.java   
private void initLocalContainerList() {
  if (this.containerList != null) {
    return;
  }
  GetContainersResponseProtoOrBuilder p = viaProto ? proto : builder;
  List<ContainerReportProto> list = p.getContainersList();
  containerList = new ArrayList<ContainerReport>();

  for (ContainerReportProto c : list) {
    containerList.add(convertFromProtoFormat(c));
  }
}
项目:hadoop-on-lustre2    文件:GetContainersResponsePBImpl.java   
private void addLocalContainersToProto() {
  maybeInitBuilder();
  builder.clearContainers();
  if (containerList == null) {
    return;
  }
  Iterable<ContainerReportProto> iterable =
      new Iterable<ContainerReportProto>() {
        @Override
        public Iterator<ContainerReportProto> iterator() {
          return new Iterator<ContainerReportProto>() {

            Iterator<ContainerReport> iter = containerList.iterator();

            @Override
            public boolean hasNext() {
              return iter.hasNext();
            }

            @Override
            public ContainerReportProto next() {
              return convertToProtoFormat(iter.next());
            }

            @Override
            public void remove() {
              throw new UnsupportedOperationException();

            }
          };

        }
      };
  builder.addAllContainers(iterable);
}
项目:hadoop-on-lustre2    文件:ContainerReportPBImpl.java   
public ContainerReportProto getProto() {

    mergeLocalToProto();
    proto = viaProto ? proto : builder.build();
    viaProto = true;
    return proto;
  }
项目:hadoop    文件:GetContainerReportResponsePBImpl.java   
private ContainerReportPBImpl convertFromProtoFormat(ContainerReportProto p) {
  return new ContainerReportPBImpl(p);
}
项目:hadoop    文件:GetContainerReportResponsePBImpl.java   
private ContainerReportProto convertToProtoFormat(ContainerReport t) {
  return ((ContainerReportPBImpl) t).getProto();
}
项目:hadoop    文件:GetContainersResponsePBImpl.java   
private ContainerReportPBImpl convertFromProtoFormat(ContainerReportProto p) {
  return new ContainerReportPBImpl(p);
}
项目:hadoop    文件:GetContainersResponsePBImpl.java   
private ContainerReportProto convertToProtoFormat(ContainerReport t) {
  return ((ContainerReportPBImpl) t).getProto();
}
项目:hadoop    文件:ContainerReportPBImpl.java   
public ContainerReportPBImpl() {
  builder = ContainerReportProto.newBuilder();
}
项目:hadoop    文件:ContainerReportPBImpl.java   
public ContainerReportPBImpl(ContainerReportProto proto) {
  this.proto = proto;
  viaProto = true;
}
项目:hadoop    文件:ContainerReportPBImpl.java   
private void maybeInitBuilder() {
  if (viaProto || builder == null) {
    builder = ContainerReportProto.newBuilder(proto);
  }
  viaProto = false;
}
项目:aliyun-oss-hadoop-fs    文件:GetContainerReportResponsePBImpl.java   
private ContainerReportPBImpl convertFromProtoFormat(ContainerReportProto p) {
  return new ContainerReportPBImpl(p);
}
项目:aliyun-oss-hadoop-fs    文件:GetContainerReportResponsePBImpl.java   
private ContainerReportProto convertToProtoFormat(ContainerReport t) {
  return ((ContainerReportPBImpl) t).getProto();
}
项目:aliyun-oss-hadoop-fs    文件:GetContainersResponsePBImpl.java   
private ContainerReportPBImpl convertFromProtoFormat(ContainerReportProto p) {
  return new ContainerReportPBImpl(p);
}
项目:aliyun-oss-hadoop-fs    文件:GetContainersResponsePBImpl.java   
private ContainerReportProto convertToProtoFormat(ContainerReport t) {
  return ((ContainerReportPBImpl) t).getProto();
}
项目:aliyun-oss-hadoop-fs    文件:ContainerReportPBImpl.java   
public ContainerReportPBImpl() {
  builder = ContainerReportProto.newBuilder();
}
项目:aliyun-oss-hadoop-fs    文件:ContainerReportPBImpl.java   
public ContainerReportPBImpl(ContainerReportProto proto) {
  this.proto = proto;
  viaProto = true;
}
项目:aliyun-oss-hadoop-fs    文件:ContainerReportPBImpl.java   
private void maybeInitBuilder() {
  if (viaProto || builder == null) {
    builder = ContainerReportProto.newBuilder(proto);
  }
  viaProto = false;
}
项目:aliyun-oss-hadoop-fs    文件:TestPBImplRecords.java   
@Test
public void testContainerReportPBImpl() throws Exception {
  validatePBImplRecord(ContainerReportPBImpl.class, ContainerReportProto.class);
}
项目:big-c    文件:GetContainerReportResponsePBImpl.java   
private ContainerReportPBImpl convertFromProtoFormat(ContainerReportProto p) {
  return new ContainerReportPBImpl(p);
}
项目:big-c    文件:GetContainerReportResponsePBImpl.java   
private ContainerReportProto convertToProtoFormat(ContainerReport t) {
  return ((ContainerReportPBImpl) t).getProto();
}
项目:big-c    文件:GetContainersResponsePBImpl.java   
private ContainerReportPBImpl convertFromProtoFormat(ContainerReportProto p) {
  return new ContainerReportPBImpl(p);
}
项目:big-c    文件:GetContainersResponsePBImpl.java   
private ContainerReportProto convertToProtoFormat(ContainerReport t) {
  return ((ContainerReportPBImpl) t).getProto();
}
项目:big-c    文件:ContainerReportPBImpl.java   
public ContainerReportPBImpl() {
  builder = ContainerReportProto.newBuilder();
}
项目:big-c    文件:ContainerReportPBImpl.java   
public ContainerReportPBImpl(ContainerReportProto proto) {
  this.proto = proto;
  viaProto = true;
}
项目:big-c    文件:ContainerReportPBImpl.java   
private void maybeInitBuilder() {
  if (viaProto || builder == null) {
    builder = ContainerReportProto.newBuilder(proto);
  }
  viaProto = false;
}