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

项目:hadoop    文件:GetApplicationAttemptsResponsePBImpl.java   
private void initLocalApplicationAttemptsList() {
  if (this.applicationAttemptList != null) {
    return;
  }
  GetApplicationAttemptsResponseProtoOrBuilder p = viaProto ? proto : builder;
  List<ApplicationAttemptReportProto> list = p.getApplicationAttemptsList();
  applicationAttemptList = new ArrayList<ApplicationAttemptReport>();

  for (ApplicationAttemptReportProto a : list) {
    applicationAttemptList.add(convertFromProtoFormat(a));
  }
}
项目:hadoop    文件:GetApplicationAttemptsResponsePBImpl.java   
private void addLocalApplicationAttemptsToProto() {
  maybeInitBuilder();
  builder.clearApplicationAttempts();
  if (applicationAttemptList == null) {
    return;
  }
  Iterable<ApplicationAttemptReportProto> iterable =
      new Iterable<ApplicationAttemptReportProto>() {
        @Override
        public Iterator<ApplicationAttemptReportProto> iterator() {
          return new Iterator<ApplicationAttemptReportProto>() {

            Iterator<ApplicationAttemptReport> iter = applicationAttemptList
              .iterator();

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

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

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

            }
          };

        }
      };
  builder.addAllApplicationAttempts(iterable);
}
项目:aliyun-oss-hadoop-fs    文件:GetApplicationAttemptsResponsePBImpl.java   
private void initLocalApplicationAttemptsList() {
  if (this.applicationAttemptList != null) {
    return;
  }
  GetApplicationAttemptsResponseProtoOrBuilder p = viaProto ? proto : builder;
  List<ApplicationAttemptReportProto> list = p.getApplicationAttemptsList();
  applicationAttemptList = new ArrayList<ApplicationAttemptReport>();

  for (ApplicationAttemptReportProto a : list) {
    applicationAttemptList.add(convertFromProtoFormat(a));
  }
}
项目:aliyun-oss-hadoop-fs    文件:GetApplicationAttemptsResponsePBImpl.java   
private void addLocalApplicationAttemptsToProto() {
  maybeInitBuilder();
  builder.clearApplicationAttempts();
  if (applicationAttemptList == null) {
    return;
  }
  Iterable<ApplicationAttemptReportProto> iterable =
      new Iterable<ApplicationAttemptReportProto>() {
        @Override
        public Iterator<ApplicationAttemptReportProto> iterator() {
          return new Iterator<ApplicationAttemptReportProto>() {

            Iterator<ApplicationAttemptReport> iter = applicationAttemptList
              .iterator();

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

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

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

            }
          };

        }
      };
  builder.addAllApplicationAttempts(iterable);
}
项目:big-c    文件:GetApplicationAttemptsResponsePBImpl.java   
private void initLocalApplicationAttemptsList() {
  if (this.applicationAttemptList != null) {
    return;
  }
  GetApplicationAttemptsResponseProtoOrBuilder p = viaProto ? proto : builder;
  List<ApplicationAttemptReportProto> list = p.getApplicationAttemptsList();
  applicationAttemptList = new ArrayList<ApplicationAttemptReport>();

  for (ApplicationAttemptReportProto a : list) {
    applicationAttemptList.add(convertFromProtoFormat(a));
  }
}
项目:big-c    文件:GetApplicationAttemptsResponsePBImpl.java   
private void addLocalApplicationAttemptsToProto() {
  maybeInitBuilder();
  builder.clearApplicationAttempts();
  if (applicationAttemptList == null) {
    return;
  }
  Iterable<ApplicationAttemptReportProto> iterable =
      new Iterable<ApplicationAttemptReportProto>() {
        @Override
        public Iterator<ApplicationAttemptReportProto> iterator() {
          return new Iterator<ApplicationAttemptReportProto>() {

            Iterator<ApplicationAttemptReport> iter = applicationAttemptList
              .iterator();

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

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

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

            }
          };

        }
      };
  builder.addAllApplicationAttempts(iterable);
}
项目:hadoop-2.6.0-cdh5.4.3    文件:GetApplicationAttemptsResponsePBImpl.java   
private void initLocalApplicationAttemptsList() {
  if (this.applicationAttemptList != null) {
    return;
  }
  GetApplicationAttemptsResponseProtoOrBuilder p = viaProto ? proto : builder;
  List<ApplicationAttemptReportProto> list = p.getApplicationAttemptsList();
  applicationAttemptList = new ArrayList<ApplicationAttemptReport>();

  for (ApplicationAttemptReportProto a : list) {
    applicationAttemptList.add(convertFromProtoFormat(a));
  }
}
项目:hadoop-2.6.0-cdh5.4.3    文件:GetApplicationAttemptsResponsePBImpl.java   
private void addLocalApplicationAttemptsToProto() {
  maybeInitBuilder();
  builder.clearApplicationAttempts();
  if (applicationAttemptList == null) {
    return;
  }
  Iterable<ApplicationAttemptReportProto> iterable =
      new Iterable<ApplicationAttemptReportProto>() {
        @Override
        public Iterator<ApplicationAttemptReportProto> iterator() {
          return new Iterator<ApplicationAttemptReportProto>() {

            Iterator<ApplicationAttemptReport> iter = applicationAttemptList
              .iterator();

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

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

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

            }
          };

        }
      };
  builder.addAllApplicationAttempts(iterable);
}
项目:hops    文件:GetApplicationAttemptsResponsePBImpl.java   
private void initLocalApplicationAttemptsList() {
  if (this.applicationAttemptList != null) {
    return;
  }
  GetApplicationAttemptsResponseProtoOrBuilder p = viaProto ? proto : builder;
  List<ApplicationAttemptReportProto> list = p.getApplicationAttemptsList();
  applicationAttemptList = new ArrayList<ApplicationAttemptReport>();

  for (ApplicationAttemptReportProto a : list) {
    applicationAttemptList.add(convertFromProtoFormat(a));
  }
}
项目:hops    文件:GetApplicationAttemptsResponsePBImpl.java   
private void addLocalApplicationAttemptsToProto() {
  maybeInitBuilder();
  builder.clearApplicationAttempts();
  if (applicationAttemptList == null) {
    return;
  }
  Iterable<ApplicationAttemptReportProto> iterable =
      new Iterable<ApplicationAttemptReportProto>() {
        @Override
        public Iterator<ApplicationAttemptReportProto> iterator() {
          return new Iterator<ApplicationAttemptReportProto>() {

            Iterator<ApplicationAttemptReport> iter = applicationAttemptList
              .iterator();

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

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

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

            }
          };

        }
      };
  builder.addAllApplicationAttempts(iterable);
}
项目:hadoop-on-lustre2    文件:GetApplicationAttemptsResponsePBImpl.java   
private void initLocalApplicationAttemptsList() {
  if (this.applicationAttemptList != null) {
    return;
  }
  GetApplicationAttemptsResponseProtoOrBuilder p = viaProto ? proto : builder;
  List<ApplicationAttemptReportProto> list = p.getApplicationAttemptsList();
  applicationAttemptList = new ArrayList<ApplicationAttemptReport>();

  for (ApplicationAttemptReportProto a : list) {
    applicationAttemptList.add(convertFromProtoFormat(a));
  }
}
项目:hadoop-on-lustre2    文件:GetApplicationAttemptsResponsePBImpl.java   
private void addLocalApplicationAttemptsToProto() {
  maybeInitBuilder();
  builder.clearApplicationAttempts();
  if (applicationAttemptList == null) {
    return;
  }
  Iterable<ApplicationAttemptReportProto> iterable =
      new Iterable<ApplicationAttemptReportProto>() {
        @Override
        public Iterator<ApplicationAttemptReportProto> iterator() {
          return new Iterator<ApplicationAttemptReportProto>() {

            Iterator<ApplicationAttemptReport> iter = applicationAttemptList
              .iterator();

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

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

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

            }
          };

        }
      };
  builder.addAllApplicationAttempts(iterable);
}
项目:hadoop    文件:GetApplicationAttemptsResponsePBImpl.java   
private ApplicationAttemptReportPBImpl convertFromProtoFormat(
    ApplicationAttemptReportProto p) {
  return new ApplicationAttemptReportPBImpl(p);
}
项目:hadoop    文件:GetApplicationAttemptsResponsePBImpl.java   
private ApplicationAttemptReportProto convertToProtoFormat(
    ApplicationAttemptReport t) {
  return ((ApplicationAttemptReportPBImpl) t).getProto();
}
项目:hadoop    文件:GetApplicationAttemptReportResponsePBImpl.java   
private ApplicationAttemptReportPBImpl convertFromProtoFormat(
    ApplicationAttemptReportProto p) {
  return new ApplicationAttemptReportPBImpl(p);
}
项目:hadoop    文件:GetApplicationAttemptReportResponsePBImpl.java   
private ApplicationAttemptReportProto convertToProtoFormat(
    ApplicationAttemptReport t) {
  return ((ApplicationAttemptReportPBImpl) t).getProto();
}
项目:hadoop    文件:ApplicationAttemptReportPBImpl.java   
public ApplicationAttemptReportPBImpl() {
  builder = ApplicationAttemptReportProto.newBuilder();
}
项目:hadoop    文件:ApplicationAttemptReportPBImpl.java   
public ApplicationAttemptReportPBImpl(ApplicationAttemptReportProto proto) {
  this.proto = proto;
  viaProto = true;
}
项目:hadoop    文件:ApplicationAttemptReportPBImpl.java   
public ApplicationAttemptReportProto getProto() {
  mergeLocalToProto();
  proto = viaProto ? proto : builder.build();
  viaProto = true;
  return proto;
}
项目:hadoop    文件:ApplicationAttemptReportPBImpl.java   
private void maybeInitBuilder() {
  if (viaProto || builder == null) {
    builder = ApplicationAttemptReportProto.newBuilder(proto);
  }
  viaProto = false;
}
项目:aliyun-oss-hadoop-fs    文件:GetApplicationAttemptsResponsePBImpl.java   
private ApplicationAttemptReportPBImpl convertFromProtoFormat(
    ApplicationAttemptReportProto p) {
  return new ApplicationAttemptReportPBImpl(p);
}
项目:aliyun-oss-hadoop-fs    文件:GetApplicationAttemptsResponsePBImpl.java   
private ApplicationAttemptReportProto convertToProtoFormat(
    ApplicationAttemptReport t) {
  return ((ApplicationAttemptReportPBImpl) t).getProto();
}
项目:aliyun-oss-hadoop-fs    文件:GetApplicationAttemptReportResponsePBImpl.java   
private ApplicationAttemptReportPBImpl convertFromProtoFormat(
    ApplicationAttemptReportProto p) {
  return new ApplicationAttemptReportPBImpl(p);
}
项目:aliyun-oss-hadoop-fs    文件:GetApplicationAttemptReportResponsePBImpl.java   
private ApplicationAttemptReportProto convertToProtoFormat(
    ApplicationAttemptReport t) {
  return ((ApplicationAttemptReportPBImpl) t).getProto();
}
项目:aliyun-oss-hadoop-fs    文件:ApplicationAttemptReportPBImpl.java   
public ApplicationAttemptReportPBImpl() {
  builder = ApplicationAttemptReportProto.newBuilder();
}
项目:aliyun-oss-hadoop-fs    文件:ApplicationAttemptReportPBImpl.java   
public ApplicationAttemptReportPBImpl(ApplicationAttemptReportProto proto) {
  this.proto = proto;
  viaProto = true;
}
项目:aliyun-oss-hadoop-fs    文件:ApplicationAttemptReportPBImpl.java   
public ApplicationAttemptReportProto getProto() {
  mergeLocalToProto();
  proto = viaProto ? proto : builder.build();
  viaProto = true;
  return proto;
}
项目:aliyun-oss-hadoop-fs    文件:ApplicationAttemptReportPBImpl.java   
private void maybeInitBuilder() {
  if (viaProto || builder == null) {
    builder = ApplicationAttemptReportProto.newBuilder(proto);
  }
  viaProto = false;
}
项目:aliyun-oss-hadoop-fs    文件:TestPBImplRecords.java   
@Test
public void testApplicationAttemptReportPBImpl() throws Exception {
  validatePBImplRecord(ApplicationAttemptReportPBImpl.class,
      ApplicationAttemptReportProto.class);
}
项目:big-c    文件:GetApplicationAttemptsResponsePBImpl.java   
private ApplicationAttemptReportPBImpl convertFromProtoFormat(
    ApplicationAttemptReportProto p) {
  return new ApplicationAttemptReportPBImpl(p);
}
项目:big-c    文件:GetApplicationAttemptsResponsePBImpl.java   
private ApplicationAttemptReportProto convertToProtoFormat(
    ApplicationAttemptReport t) {
  return ((ApplicationAttemptReportPBImpl) t).getProto();
}
项目:big-c    文件:GetApplicationAttemptReportResponsePBImpl.java   
private ApplicationAttemptReportPBImpl convertFromProtoFormat(
    ApplicationAttemptReportProto p) {
  return new ApplicationAttemptReportPBImpl(p);
}
项目:big-c    文件:GetApplicationAttemptReportResponsePBImpl.java   
private ApplicationAttemptReportProto convertToProtoFormat(
    ApplicationAttemptReport t) {
  return ((ApplicationAttemptReportPBImpl) t).getProto();
}
项目:big-c    文件:ApplicationAttemptReportPBImpl.java   
public ApplicationAttemptReportPBImpl() {
  builder = ApplicationAttemptReportProto.newBuilder();
}
项目:big-c    文件:ApplicationAttemptReportPBImpl.java   
public ApplicationAttemptReportPBImpl(ApplicationAttemptReportProto proto) {
  this.proto = proto;
  viaProto = true;
}
项目:big-c    文件:ApplicationAttemptReportPBImpl.java   
public ApplicationAttemptReportProto getProto() {
  mergeLocalToProto();
  proto = viaProto ? proto : builder.build();
  viaProto = true;
  return proto;
}
项目:big-c    文件:ApplicationAttemptReportPBImpl.java   
private void maybeInitBuilder() {
  if (viaProto || builder == null) {
    builder = ApplicationAttemptReportProto.newBuilder(proto);
  }
  viaProto = false;
}
项目:hadoop-2.6.0-cdh5.4.3    文件:GetApplicationAttemptsResponsePBImpl.java   
private ApplicationAttemptReportPBImpl convertFromProtoFormat(
    ApplicationAttemptReportProto p) {
  return new ApplicationAttemptReportPBImpl(p);
}
项目:hadoop-2.6.0-cdh5.4.3    文件:GetApplicationAttemptsResponsePBImpl.java   
private ApplicationAttemptReportProto convertToProtoFormat(
    ApplicationAttemptReport t) {
  return ((ApplicationAttemptReportPBImpl) t).getProto();
}
项目:hadoop-2.6.0-cdh5.4.3    文件:GetApplicationAttemptReportResponsePBImpl.java   
private ApplicationAttemptReportPBImpl convertFromProtoFormat(
    ApplicationAttemptReportProto p) {
  return new ApplicationAttemptReportPBImpl(p);
}