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

项目:hadoop    文件:GetApplicationsResponsePBImpl.java   
private void initLocalApplicationsList() {
  if (this.applicationList != null) {
    return;
  }
  GetApplicationsResponseProtoOrBuilder p = viaProto ? proto : builder;
  List<ApplicationReportProto> list = p.getApplicationsList();
  applicationList = new ArrayList<ApplicationReport>();

  for (ApplicationReportProto a : list) {
    applicationList.add(convertFromProtoFormat(a));
  }
}
项目:hadoop    文件:GetApplicationsResponsePBImpl.java   
private void addLocalApplicationsToProto() {
  maybeInitBuilder();
  builder.clearApplications();
  if (applicationList == null)
    return;
  Iterable<ApplicationReportProto> iterable = new Iterable<ApplicationReportProto>() {
    @Override
    public Iterator<ApplicationReportProto> iterator() {
      return new Iterator<ApplicationReportProto>() {

        Iterator<ApplicationReport> iter = applicationList.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllApplications(iterable);
}
项目:hadoop    文件:QueueInfoPBImpl.java   
private void initLocalApplicationsList() {
  if (this.applicationsList != null) {
    return;
  }
  QueueInfoProtoOrBuilder p = viaProto ? proto : builder;
  List<ApplicationReportProto> list = p.getApplicationsList();
  applicationsList = new ArrayList<ApplicationReport>();

  for (ApplicationReportProto a : list) {
    applicationsList.add(convertFromProtoFormat(a));
  }
}
项目:hadoop    文件:QueueInfoPBImpl.java   
private void addApplicationsToProto() {
  maybeInitBuilder();
  builder.clearApplications();
  if (applicationsList == null)
    return;
  Iterable<ApplicationReportProto> iterable = new Iterable<ApplicationReportProto>() {
    @Override
    public Iterator<ApplicationReportProto> iterator() {
      return new Iterator<ApplicationReportProto>() {

        Iterator<ApplicationReport> iter = applicationsList.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllApplications(iterable);
}
项目:aliyun-oss-hadoop-fs    文件:GetApplicationsResponsePBImpl.java   
private void initLocalApplicationsList() {
  if (this.applicationList != null) {
    return;
  }
  GetApplicationsResponseProtoOrBuilder p = viaProto ? proto : builder;
  List<ApplicationReportProto> list = p.getApplicationsList();
  applicationList = new ArrayList<ApplicationReport>();

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

        Iterator<ApplicationReport> iter = applicationList.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllApplications(iterable);
}
项目:aliyun-oss-hadoop-fs    文件:QueueInfoPBImpl.java   
private void initLocalApplicationsList() {
  if (this.applicationsList != null) {
    return;
  }
  QueueInfoProtoOrBuilder p = viaProto ? proto : builder;
  List<ApplicationReportProto> list = p.getApplicationsList();
  applicationsList = new ArrayList<ApplicationReport>();

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

        Iterator<ApplicationReport> iter = applicationsList.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllApplications(iterable);
}
项目:big-c    文件:GetApplicationsResponsePBImpl.java   
private void initLocalApplicationsList() {
  if (this.applicationList != null) {
    return;
  }
  GetApplicationsResponseProtoOrBuilder p = viaProto ? proto : builder;
  List<ApplicationReportProto> list = p.getApplicationsList();
  applicationList = new ArrayList<ApplicationReport>();

  for (ApplicationReportProto a : list) {
    applicationList.add(convertFromProtoFormat(a));
  }
}
项目:big-c    文件:GetApplicationsResponsePBImpl.java   
private void addLocalApplicationsToProto() {
  maybeInitBuilder();
  builder.clearApplications();
  if (applicationList == null)
    return;
  Iterable<ApplicationReportProto> iterable = new Iterable<ApplicationReportProto>() {
    @Override
    public Iterator<ApplicationReportProto> iterator() {
      return new Iterator<ApplicationReportProto>() {

        Iterator<ApplicationReport> iter = applicationList.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllApplications(iterable);
}
项目:big-c    文件:QueueInfoPBImpl.java   
private void initLocalApplicationsList() {
  if (this.applicationsList != null) {
    return;
  }
  QueueInfoProtoOrBuilder p = viaProto ? proto : builder;
  List<ApplicationReportProto> list = p.getApplicationsList();
  applicationsList = new ArrayList<ApplicationReport>();

  for (ApplicationReportProto a : list) {
    applicationsList.add(convertFromProtoFormat(a));
  }
}
项目:big-c    文件:QueueInfoPBImpl.java   
private void addApplicationsToProto() {
  maybeInitBuilder();
  builder.clearApplications();
  if (applicationsList == null)
    return;
  Iterable<ApplicationReportProto> iterable = new Iterable<ApplicationReportProto>() {
    @Override
    public Iterator<ApplicationReportProto> iterator() {
      return new Iterator<ApplicationReportProto>() {

        Iterator<ApplicationReport> iter = applicationsList.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllApplications(iterable);
}
项目:hadoop-2.6.0-cdh5.4.3    文件:GetApplicationsResponsePBImpl.java   
private void initLocalApplicationsList() {
  if (this.applicationList != null) {
    return;
  }
  GetApplicationsResponseProtoOrBuilder p = viaProto ? proto : builder;
  List<ApplicationReportProto> list = p.getApplicationsList();
  applicationList = new ArrayList<ApplicationReport>();

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

        Iterator<ApplicationReport> iter = applicationList.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllApplications(iterable);
}
项目:hadoop-2.6.0-cdh5.4.3    文件:QueueInfoPBImpl.java   
private void initLocalApplicationsList() {
  if (this.applicationsList != null) {
    return;
  }
  QueueInfoProtoOrBuilder p = viaProto ? proto : builder;
  List<ApplicationReportProto> list = p.getApplicationsList();
  applicationsList = new ArrayList<ApplicationReport>();

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

        Iterator<ApplicationReport> iter = applicationsList.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllApplications(iterable);
}
项目:hadoop-plus    文件:GetApplicationsResponsePBImpl.java   
private void initLocalApplicationsList() {
  if (this.applicationList != null) {
    return;
  }
  GetApplicationsResponseProtoOrBuilder p = viaProto ? proto : builder;
  List<ApplicationReportProto> list = p.getApplicationsList();
  applicationList = new ArrayList<ApplicationReport>();

  for (ApplicationReportProto a : list) {
    applicationList.add(convertFromProtoFormat(a));
  }
}
项目:hadoop-plus    文件:GetApplicationsResponsePBImpl.java   
private void addLocalApplicationsToProto() {
  maybeInitBuilder();
  builder.clearApplications();
  if (applicationList == null)
    return;
  Iterable<ApplicationReportProto> iterable = new Iterable<ApplicationReportProto>() {
    @Override
    public Iterator<ApplicationReportProto> iterator() {
      return new Iterator<ApplicationReportProto>() {

        Iterator<ApplicationReport> iter = applicationList.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllApplications(iterable);
}
项目:hadoop-plus    文件:QueueInfoPBImpl.java   
private void initLocalApplicationsList() {
  if (this.applicationsList != null) {
    return;
  }
  QueueInfoProtoOrBuilder p = viaProto ? proto : builder;
  List<ApplicationReportProto> list = p.getApplicationsList();
  applicationsList = new ArrayList<ApplicationReport>();

  for (ApplicationReportProto a : list) {
    applicationsList.add(convertFromProtoFormat(a));
  }
}
项目:hadoop-plus    文件:QueueInfoPBImpl.java   
private void addApplicationsToProto() {
  maybeInitBuilder();
  builder.clearApplications();
  if (applicationsList == null)
    return;
  Iterable<ApplicationReportProto> iterable = new Iterable<ApplicationReportProto>() {
    @Override
    public Iterator<ApplicationReportProto> iterator() {
      return new Iterator<ApplicationReportProto>() {

        Iterator<ApplicationReport> iter = applicationsList.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllApplications(iterable);
}
项目:hops    文件:GetApplicationsResponsePBImpl.java   
private void initLocalApplicationsList() {
  if (this.applicationList != null) {
    return;
  }
  GetApplicationsResponseProtoOrBuilder p = viaProto ? proto : builder;
  List<ApplicationReportProto> list = p.getApplicationsList();
  applicationList = new ArrayList<ApplicationReport>();

  for (ApplicationReportProto a : list) {
    applicationList.add(convertFromProtoFormat(a));
  }
}
项目:hops    文件:GetApplicationsResponsePBImpl.java   
private void addLocalApplicationsToProto() {
  maybeInitBuilder();
  builder.clearApplications();
  if (applicationList == null)
    return;
  Iterable<ApplicationReportProto> iterable = new Iterable<ApplicationReportProto>() {
    @Override
    public Iterator<ApplicationReportProto> iterator() {
      return new Iterator<ApplicationReportProto>() {

        Iterator<ApplicationReport> iter = applicationList.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllApplications(iterable);
}
项目:hops    文件:QueueInfoPBImpl.java   
private void initLocalApplicationsList() {
  if (this.applicationsList != null) {
    return;
  }
  QueueInfoProtoOrBuilder p = viaProto ? proto : builder;
  List<ApplicationReportProto> list = p.getApplicationsList();
  applicationsList = new ArrayList<ApplicationReport>();

  for (ApplicationReportProto a : list) {
    applicationsList.add(convertFromProtoFormat(a));
  }
}
项目:hops    文件:QueueInfoPBImpl.java   
private void addApplicationsToProto() {
  maybeInitBuilder();
  builder.clearApplications();
  if (applicationsList == null)
    return;
  Iterable<ApplicationReportProto> iterable = new Iterable<ApplicationReportProto>() {
    @Override
    public Iterator<ApplicationReportProto> iterator() {
      return new Iterator<ApplicationReportProto>() {

        Iterator<ApplicationReport> iter = applicationsList.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllApplications(iterable);
}
项目:hadoop-TCP    文件:GetApplicationsResponsePBImpl.java   
private void initLocalApplicationsList() {
  if (this.applicationList != null) {
    return;
  }
  GetApplicationsResponseProtoOrBuilder p = viaProto ? proto : builder;
  List<ApplicationReportProto> list = p.getApplicationsList();
  applicationList = new ArrayList<ApplicationReport>();

  for (ApplicationReportProto a : list) {
    applicationList.add(convertFromProtoFormat(a));
  }
}
项目:hadoop-TCP    文件:GetApplicationsResponsePBImpl.java   
private void addLocalApplicationsToProto() {
  maybeInitBuilder();
  builder.clearApplications();
  if (applicationList == null)
    return;
  Iterable<ApplicationReportProto> iterable = new Iterable<ApplicationReportProto>() {
    @Override
    public Iterator<ApplicationReportProto> iterator() {
      return new Iterator<ApplicationReportProto>() {

        Iterator<ApplicationReport> iter = applicationList.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllApplications(iterable);
}
项目:hadoop-TCP    文件:QueueInfoPBImpl.java   
private void initLocalApplicationsList() {
  if (this.applicationsList != null) {
    return;
  }
  QueueInfoProtoOrBuilder p = viaProto ? proto : builder;
  List<ApplicationReportProto> list = p.getApplicationsList();
  applicationsList = new ArrayList<ApplicationReport>();

  for (ApplicationReportProto a : list) {
    applicationsList.add(convertFromProtoFormat(a));
  }
}
项目:hadoop-TCP    文件:QueueInfoPBImpl.java   
private void addApplicationsToProto() {
  maybeInitBuilder();
  builder.clearApplications();
  if (applicationsList == null)
    return;
  Iterable<ApplicationReportProto> iterable = new Iterable<ApplicationReportProto>() {
    @Override
    public Iterator<ApplicationReportProto> iterator() {
      return new Iterator<ApplicationReportProto>() {

        Iterator<ApplicationReport> iter = applicationsList.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllApplications(iterable);
}
项目:hardfs    文件:GetApplicationsResponsePBImpl.java   
private void initLocalApplicationsList() {
  if (this.applicationList != null) {
    return;
  }
  GetApplicationsResponseProtoOrBuilder p = viaProto ? proto : builder;
  List<ApplicationReportProto> list = p.getApplicationsList();
  applicationList = new ArrayList<ApplicationReport>();

  for (ApplicationReportProto a : list) {
    applicationList.add(convertFromProtoFormat(a));
  }
}
项目:hardfs    文件:GetApplicationsResponsePBImpl.java   
private void addLocalApplicationsToProto() {
  maybeInitBuilder();
  builder.clearApplications();
  if (applicationList == null)
    return;
  Iterable<ApplicationReportProto> iterable = new Iterable<ApplicationReportProto>() {
    @Override
    public Iterator<ApplicationReportProto> iterator() {
      return new Iterator<ApplicationReportProto>() {

        Iterator<ApplicationReport> iter = applicationList.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllApplications(iterable);
}
项目:hardfs    文件:QueueInfoPBImpl.java   
private void initLocalApplicationsList() {
  if (this.applicationsList != null) {
    return;
  }
  QueueInfoProtoOrBuilder p = viaProto ? proto : builder;
  List<ApplicationReportProto> list = p.getApplicationsList();
  applicationsList = new ArrayList<ApplicationReport>();

  for (ApplicationReportProto a : list) {
    applicationsList.add(convertFromProtoFormat(a));
  }
}
项目:hardfs    文件:QueueInfoPBImpl.java   
private void addApplicationsToProto() {
  maybeInitBuilder();
  builder.clearApplications();
  if (applicationsList == null)
    return;
  Iterable<ApplicationReportProto> iterable = new Iterable<ApplicationReportProto>() {
    @Override
    public Iterator<ApplicationReportProto> iterator() {
      return new Iterator<ApplicationReportProto>() {

        Iterator<ApplicationReport> iter = applicationsList.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllApplications(iterable);
}
项目:hadoop-on-lustre2    文件:GetApplicationsResponsePBImpl.java   
private void initLocalApplicationsList() {
  if (this.applicationList != null) {
    return;
  }
  GetApplicationsResponseProtoOrBuilder p = viaProto ? proto : builder;
  List<ApplicationReportProto> list = p.getApplicationsList();
  applicationList = new ArrayList<ApplicationReport>();

  for (ApplicationReportProto a : list) {
    applicationList.add(convertFromProtoFormat(a));
  }
}
项目:hadoop-on-lustre2    文件:GetApplicationsResponsePBImpl.java   
private void addLocalApplicationsToProto() {
  maybeInitBuilder();
  builder.clearApplications();
  if (applicationList == null)
    return;
  Iterable<ApplicationReportProto> iterable = new Iterable<ApplicationReportProto>() {
    @Override
    public Iterator<ApplicationReportProto> iterator() {
      return new Iterator<ApplicationReportProto>() {

        Iterator<ApplicationReport> iter = applicationList.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllApplications(iterable);
}
项目:hadoop-on-lustre2    文件:QueueInfoPBImpl.java   
private void initLocalApplicationsList() {
  if (this.applicationsList != null) {
    return;
  }
  QueueInfoProtoOrBuilder p = viaProto ? proto : builder;
  List<ApplicationReportProto> list = p.getApplicationsList();
  applicationsList = new ArrayList<ApplicationReport>();

  for (ApplicationReportProto a : list) {
    applicationsList.add(convertFromProtoFormat(a));
  }
}
项目:hadoop-on-lustre2    文件:QueueInfoPBImpl.java   
private void addApplicationsToProto() {
  maybeInitBuilder();
  builder.clearApplications();
  if (applicationsList == null)
    return;
  Iterable<ApplicationReportProto> iterable = new Iterable<ApplicationReportProto>() {
    @Override
    public Iterator<ApplicationReportProto> iterator() {
      return new Iterator<ApplicationReportProto>() {

        Iterator<ApplicationReport> iter = applicationsList.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllApplications(iterable);
}
项目:hadoop    文件:GetApplicationReportResponsePBImpl.java   
private ApplicationReportPBImpl convertFromProtoFormat(ApplicationReportProto p) {
  return new ApplicationReportPBImpl(p);
}
项目:hadoop    文件:GetApplicationReportResponsePBImpl.java   
private ApplicationReportProto convertToProtoFormat(ApplicationReport t) {
  return ((ApplicationReportPBImpl)t).getProto();
}
项目:hadoop    文件:GetApplicationsResponsePBImpl.java   
private ApplicationReportPBImpl convertFromProtoFormat(ApplicationReportProto p) {
  return new ApplicationReportPBImpl(p);
}
项目:hadoop    文件:GetApplicationsResponsePBImpl.java   
private ApplicationReportProto convertToProtoFormat(ApplicationReport t) {
  return ((ApplicationReportPBImpl)t).getProto();
}