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

项目:hadoop    文件:NodeHeartbeatResponsePBImpl.java   
private void initApplicationsToCleanup() {
  if (this.applicationsToCleanup != null) {
    return;
  }
  NodeHeartbeatResponseProtoOrBuilder p = viaProto ? proto : builder;
  List<ApplicationIdProto> list = p.getApplicationsToCleanupList();
  this.applicationsToCleanup = new ArrayList<ApplicationId>();

  for (ApplicationIdProto c : list) {
    this.applicationsToCleanup.add(convertFromProtoFormat(c));
  }
}
项目:hadoop    文件:NodeHeartbeatResponsePBImpl.java   
private void addApplicationsToCleanupToProto() {
  maybeInitBuilder();
  builder.clearApplicationsToCleanup();
  if (applicationsToCleanup == null)
    return;
  Iterable<ApplicationIdProto> iterable = new Iterable<ApplicationIdProto>() {

    @Override
    public Iterator<ApplicationIdProto> iterator() {
      return new Iterator<ApplicationIdProto>() {

        Iterator<ApplicationId> iter = applicationsToCleanup.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllApplicationsToCleanup(iterable);
}
项目:hadoop    文件:RegisterNodeManagerRequestPBImpl.java   
private void initRunningApplications() {
  if (this.runningApplications != null) {
    return;
  }
  RegisterNodeManagerRequestProtoOrBuilder p = viaProto ? proto : builder;
  List<ApplicationIdProto> list = p.getRunningApplicationsList();
  this.runningApplications = new ArrayList<ApplicationId>();
  for (ApplicationIdProto c : list) {
    this.runningApplications.add(convertFromProtoFormat(c));
  }
}
项目:hadoop    文件:RegisterNodeManagerRequestPBImpl.java   
private void addRunningApplicationsToProto() {
  maybeInitBuilder();
  builder.clearRunningApplications();
  if (runningApplications == null) {
    return;
  }
  Iterable<ApplicationIdProto> it = new Iterable<ApplicationIdProto>() {

    @Override
    public Iterator<ApplicationIdProto> iterator() {
      return new Iterator<ApplicationIdProto>() {
        Iterator<ApplicationId> iter = runningApplications.iterator();

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

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

        @Override
        public void remove() {
          throw new UnsupportedOperationException();
        }
      };
    }
  };
  builder.addAllRunningApplications(it);
}
项目:hadoop    文件:NodeStatusPBImpl.java   
private synchronized void addKeepAliveApplicationsToProto() {
  maybeInitBuilder();
  builder.clearKeepAliveApplications();
  if (keepAliveApplications == null)
    return;
  Iterable<ApplicationIdProto> iterable = new Iterable<ApplicationIdProto>() {
    @Override
    public Iterator<ApplicationIdProto> iterator() {
      return new Iterator<ApplicationIdProto>() {

        Iterator<ApplicationId> iter = keepAliveApplications.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllKeepAliveApplications(iterable);
}
项目:hadoop    文件:NodeStatusPBImpl.java   
private synchronized void initKeepAliveApplications() {
  if (this.keepAliveApplications != null) {
    return;
  }
  NodeStatusProtoOrBuilder p = viaProto ? proto : builder;
  List<ApplicationIdProto> list = p.getKeepAliveApplicationsList();
  this.keepAliveApplications = new ArrayList<ApplicationId>();

  for (ApplicationIdProto c : list) {
    this.keepAliveApplications.add(convertFromProtoFormat(c));
  }

}
项目:aliyun-oss-hadoop-fs    文件:NodeHeartbeatResponsePBImpl.java   
private void initApplicationsToCleanup() {
  if (this.applicationsToCleanup != null) {
    return;
  }
  NodeHeartbeatResponseProtoOrBuilder p = viaProto ? proto : builder;
  List<ApplicationIdProto> list = p.getApplicationsToCleanupList();
  this.applicationsToCleanup = new ArrayList<ApplicationId>();

  for (ApplicationIdProto c : list) {
    this.applicationsToCleanup.add(convertFromProtoFormat(c));
  }
}
项目:aliyun-oss-hadoop-fs    文件:NodeHeartbeatResponsePBImpl.java   
private void addApplicationsToCleanupToProto() {
  maybeInitBuilder();
  builder.clearApplicationsToCleanup();
  if (applicationsToCleanup == null)
    return;
  Iterable<ApplicationIdProto> iterable = new Iterable<ApplicationIdProto>() {

    @Override
    public Iterator<ApplicationIdProto> iterator() {
      return new Iterator<ApplicationIdProto>() {

        Iterator<ApplicationId> iter = applicationsToCleanup.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllApplicationsToCleanup(iterable);
}
项目:aliyun-oss-hadoop-fs    文件:RegisterNodeManagerRequestPBImpl.java   
private void initRunningApplications() {
  if (this.runningApplications != null) {
    return;
  }
  RegisterNodeManagerRequestProtoOrBuilder p = viaProto ? proto : builder;
  List<ApplicationIdProto> list = p.getRunningApplicationsList();
  this.runningApplications = new ArrayList<ApplicationId>();
  for (ApplicationIdProto c : list) {
    this.runningApplications.add(convertFromProtoFormat(c));
  }
}
项目:aliyun-oss-hadoop-fs    文件:RegisterNodeManagerRequestPBImpl.java   
private void addRunningApplicationsToProto() {
  maybeInitBuilder();
  builder.clearRunningApplications();
  if (runningApplications == null) {
    return;
  }
  Iterable<ApplicationIdProto> it = new Iterable<ApplicationIdProto>() {

    @Override
    public Iterator<ApplicationIdProto> iterator() {
      return new Iterator<ApplicationIdProto>() {
        Iterator<ApplicationId> iter = runningApplications.iterator();

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

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

        @Override
        public void remove() {
          throw new UnsupportedOperationException();
        }
      };
    }
  };
  builder.addAllRunningApplications(it);
}
项目:aliyun-oss-hadoop-fs    文件:NodeStatusPBImpl.java   
private synchronized void addKeepAliveApplicationsToProto() {
  maybeInitBuilder();
  builder.clearKeepAliveApplications();
  if (keepAliveApplications == null)
    return;
  Iterable<ApplicationIdProto> iterable = new Iterable<ApplicationIdProto>() {
    @Override
    public Iterator<ApplicationIdProto> iterator() {
      return new Iterator<ApplicationIdProto>() {

        Iterator<ApplicationId> iter = keepAliveApplications.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllKeepAliveApplications(iterable);
}
项目:aliyun-oss-hadoop-fs    文件:NodeStatusPBImpl.java   
private synchronized void initKeepAliveApplications() {
  if (this.keepAliveApplications != null) {
    return;
  }
  NodeStatusProtoOrBuilder p = viaProto ? proto : builder;
  List<ApplicationIdProto> list = p.getKeepAliveApplicationsList();
  this.keepAliveApplications = new ArrayList<ApplicationId>();

  for (ApplicationIdProto c : list) {
    this.keepAliveApplications.add(convertFromProtoFormat(c));
  }

}
项目:big-c    文件:NodeHeartbeatResponsePBImpl.java   
private void initApplicationsToCleanup() {
  if (this.applicationsToCleanup != null) {
    return;
  }
  NodeHeartbeatResponseProtoOrBuilder p = viaProto ? proto : builder;
  List<ApplicationIdProto> list = p.getApplicationsToCleanupList();
  this.applicationsToCleanup = new ArrayList<ApplicationId>();

  for (ApplicationIdProto c : list) {
    this.applicationsToCleanup.add(convertFromProtoFormat(c));
  }
}
项目:big-c    文件:NodeHeartbeatResponsePBImpl.java   
private void addApplicationsToCleanupToProto() {
  maybeInitBuilder();
  builder.clearApplicationsToCleanup();
  if (applicationsToCleanup == null)
    return;
  Iterable<ApplicationIdProto> iterable = new Iterable<ApplicationIdProto>() {

    @Override
    public Iterator<ApplicationIdProto> iterator() {
      return new Iterator<ApplicationIdProto>() {

        Iterator<ApplicationId> iter = applicationsToCleanup.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllApplicationsToCleanup(iterable);
}
项目:big-c    文件:RegisterNodeManagerRequestPBImpl.java   
private void initRunningApplications() {
  if (this.runningApplications != null) {
    return;
  }
  RegisterNodeManagerRequestProtoOrBuilder p = viaProto ? proto : builder;
  List<ApplicationIdProto> list = p.getRunningApplicationsList();
  this.runningApplications = new ArrayList<ApplicationId>();
  for (ApplicationIdProto c : list) {
    this.runningApplications.add(convertFromProtoFormat(c));
  }
}
项目:big-c    文件:RegisterNodeManagerRequestPBImpl.java   
private void addRunningApplicationsToProto() {
  maybeInitBuilder();
  builder.clearRunningApplications();
  if (runningApplications == null) {
    return;
  }
  Iterable<ApplicationIdProto> it = new Iterable<ApplicationIdProto>() {

    @Override
    public Iterator<ApplicationIdProto> iterator() {
      return new Iterator<ApplicationIdProto>() {
        Iterator<ApplicationId> iter = runningApplications.iterator();

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

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

        @Override
        public void remove() {
          throw new UnsupportedOperationException();
        }
      };
    }
  };
  builder.addAllRunningApplications(it);
}
项目:big-c    文件:NodeStatusPBImpl.java   
private synchronized void addKeepAliveApplicationsToProto() {
  maybeInitBuilder();
  builder.clearKeepAliveApplications();
  if (keepAliveApplications == null)
    return;
  Iterable<ApplicationIdProto> iterable = new Iterable<ApplicationIdProto>() {
    @Override
    public Iterator<ApplicationIdProto> iterator() {
      return new Iterator<ApplicationIdProto>() {

        Iterator<ApplicationId> iter = keepAliveApplications.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllKeepAliveApplications(iterable);
}
项目:big-c    文件:NodeStatusPBImpl.java   
private synchronized void initKeepAliveApplications() {
  if (this.keepAliveApplications != null) {
    return;
  }
  NodeStatusProtoOrBuilder p = viaProto ? proto : builder;
  List<ApplicationIdProto> list = p.getKeepAliveApplicationsList();
  this.keepAliveApplications = new ArrayList<ApplicationId>();

  for (ApplicationIdProto c : list) {
    this.keepAliveApplications.add(convertFromProtoFormat(c));
  }

}
项目:hadoop-2.6.0-cdh5.4.3    文件:NodeHeartbeatResponsePBImpl.java   
private void initApplicationsToCleanup() {
  if (this.applicationsToCleanup != null) {
    return;
  }
  NodeHeartbeatResponseProtoOrBuilder p = viaProto ? proto : builder;
  List<ApplicationIdProto> list = p.getApplicationsToCleanupList();
  this.applicationsToCleanup = new ArrayList<ApplicationId>();

  for (ApplicationIdProto c : list) {
    this.applicationsToCleanup.add(convertFromProtoFormat(c));
  }
}
项目:hadoop-2.6.0-cdh5.4.3    文件:NodeHeartbeatResponsePBImpl.java   
private void addApplicationsToCleanupToProto() {
  maybeInitBuilder();
  builder.clearApplicationsToCleanup();
  if (applicationsToCleanup == null)
    return;
  Iterable<ApplicationIdProto> iterable = new Iterable<ApplicationIdProto>() {

    @Override
    public Iterator<ApplicationIdProto> iterator() {
      return new Iterator<ApplicationIdProto>() {

        Iterator<ApplicationId> iter = applicationsToCleanup.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllApplicationsToCleanup(iterable);
}
项目:hadoop-2.6.0-cdh5.4.3    文件:RegisterNodeManagerRequestPBImpl.java   
private void initRunningApplications() {
  if (this.runningApplications != null) {
    return;
  }
  RegisterNodeManagerRequestProtoOrBuilder p = viaProto ? proto : builder;
  List<ApplicationIdProto> list = p.getRunningApplicationsList();
  this.runningApplications = new ArrayList<ApplicationId>();
  for (ApplicationIdProto c : list) {
    this.runningApplications.add(convertFromProtoFormat(c));
  }
}
项目:hadoop-2.6.0-cdh5.4.3    文件:RegisterNodeManagerRequestPBImpl.java   
private void addRunningApplicationsToProto() {
  maybeInitBuilder();
  builder.clearRunningApplications();
  if (runningApplications == null) {
    return;
  }
  Iterable<ApplicationIdProto> it = new Iterable<ApplicationIdProto>() {

    @Override
    public Iterator<ApplicationIdProto> iterator() {
      return new Iterator<ApplicationIdProto>() {
        Iterator<ApplicationId> iter = runningApplications.iterator();

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

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

        @Override
        public void remove() {
          throw new UnsupportedOperationException();
        }
      };
    }
  };
  builder.addAllRunningApplications(it);
}
项目:hadoop-2.6.0-cdh5.4.3    文件:NodeStatusPBImpl.java   
private synchronized void addKeepAliveApplicationsToProto() {
  maybeInitBuilder();
  builder.clearKeepAliveApplications();
  if (keepAliveApplications == null)
    return;
  Iterable<ApplicationIdProto> iterable = new Iterable<ApplicationIdProto>() {
    @Override
    public Iterator<ApplicationIdProto> iterator() {
      return new Iterator<ApplicationIdProto>() {

        Iterator<ApplicationId> iter = keepAliveApplications.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllKeepAliveApplications(iterable);
}
项目:hadoop-2.6.0-cdh5.4.3    文件:NodeStatusPBImpl.java   
private synchronized void initKeepAliveApplications() {
  if (this.keepAliveApplications != null) {
    return;
  }
  NodeStatusProtoOrBuilder p = viaProto ? proto : builder;
  List<ApplicationIdProto> list = p.getKeepAliveApplicationsList();
  this.keepAliveApplications = new ArrayList<ApplicationId>();

  for (ApplicationIdProto c : list) {
    this.keepAliveApplications.add(convertFromProtoFormat(c));
  }

}
项目:hadoop-plus    文件:NodeHeartbeatResponsePBImpl.java   
private void initApplicationsToCleanup() {
  if (this.applicationsToCleanup != null) {
    return;
  }
  NodeHeartbeatResponseProtoOrBuilder p = viaProto ? proto : builder;
  List<ApplicationIdProto> list = p.getApplicationsToCleanupList();
  this.applicationsToCleanup = new ArrayList<ApplicationId>();

  for (ApplicationIdProto c : list) {
    this.applicationsToCleanup.add(convertFromProtoFormat(c));
  }
}
项目:hadoop-plus    文件:NodeHeartbeatResponsePBImpl.java   
private void addApplicationsToCleanupToProto() {
  maybeInitBuilder();
  builder.clearApplicationsToCleanup();
  if (applicationsToCleanup == null)
    return;
  Iterable<ApplicationIdProto> iterable = new Iterable<ApplicationIdProto>() {

    @Override
    public Iterator<ApplicationIdProto> iterator() {
      return new Iterator<ApplicationIdProto>() {

        Iterator<ApplicationId> iter = applicationsToCleanup.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllApplicationsToCleanup(iterable);
}
项目:hadoop-plus    文件:NodeStatusPBImpl.java   
private synchronized void addKeepAliveApplicationsToProto() {
  maybeInitBuilder();
  builder.clearKeepAliveApplications();
  if (keepAliveApplications == null)
    return;
  Iterable<ApplicationIdProto> iterable = new Iterable<ApplicationIdProto>() {
    @Override
    public Iterator<ApplicationIdProto> iterator() {
      return new Iterator<ApplicationIdProto>() {

        Iterator<ApplicationId> iter = keepAliveApplications.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllKeepAliveApplications(iterable);
}
项目:hadoop-plus    文件:NodeStatusPBImpl.java   
private synchronized void initKeepAliveApplications() {
  if (this.keepAliveApplications != null) {
    return;
  }
  NodeStatusProtoOrBuilder p = viaProto ? proto : builder;
  List<ApplicationIdProto> list = p.getKeepAliveApplicationsList();
  this.keepAliveApplications = new ArrayList<ApplicationId>();

  for (ApplicationIdProto c : list) {
    this.keepAliveApplications.add(convertFromProtoFormat(c));
  }

}
项目:hops    文件:NodeHeartbeatResponsePBImpl.java   
private void addApplicationsToCleanupToProto() {
  maybeInitBuilder();
  builder.clearApplicationsToCleanup();
  if (applicationsToCleanup == null)
    return;
  Iterable<ApplicationIdProto> iterable = new Iterable<ApplicationIdProto>() {

    @Override
    public Iterator<ApplicationIdProto> iterator() {
      return new Iterator<ApplicationIdProto>() {

        Iterator<ApplicationId> iter = applicationsToCleanup.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllApplicationsToCleanup(iterable);
}
项目:hops    文件:RegisterNodeManagerRequestPBImpl.java   
private void initRunningApplications() {
  if (this.runningApplications != null) {
    return;
  }
  RegisterNodeManagerRequestProtoOrBuilder p = viaProto ? proto : builder;
  List<ApplicationIdProto> list = p.getRunningApplicationsList();
  this.runningApplications = new ArrayList<ApplicationId>();
  for (ApplicationIdProto c : list) {
    this.runningApplications.add(convertFromProtoFormat(c));
  }
}
项目:hops    文件:RegisterNodeManagerRequestPBImpl.java   
private void addRunningApplicationsToProto() {
  maybeInitBuilder();
  builder.clearRunningApplications();
  if (runningApplications == null) {
    return;
  }
  Iterable<ApplicationIdProto> it = new Iterable<ApplicationIdProto>() {

    @Override
    public Iterator<ApplicationIdProto> iterator() {
      return new Iterator<ApplicationIdProto>() {
        Iterator<ApplicationId> iter = runningApplications.iterator();

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

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

        @Override
        public void remove() {
          throw new UnsupportedOperationException();
        }
      };
    }
  };
  builder.addAllRunningApplications(it);
}
项目:hops    文件:NodeStatusPBImpl.java   
private synchronized void addKeepAliveApplicationsToProto() {
  maybeInitBuilder();
  builder.clearKeepAliveApplications();
  if (keepAliveApplications == null)
    return;
  Iterable<ApplicationIdProto> iterable = new Iterable<ApplicationIdProto>() {
    @Override
    public Iterator<ApplicationIdProto> iterator() {
      return new Iterator<ApplicationIdProto>() {

        Iterator<ApplicationId> iter = keepAliveApplications.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllKeepAliveApplications(iterable);
}
项目:hops    文件:NodeStatusPBImpl.java   
private synchronized void initKeepAliveApplications() {
  if (this.keepAliveApplications != null) {
    return;
  }
  NodeStatusProtoOrBuilder p = viaProto ? proto : builder;
  List<ApplicationIdProto> list = p.getKeepAliveApplicationsList();
  this.keepAliveApplications = new ArrayList<ApplicationId>();

  for (ApplicationIdProto c : list) {
    this.keepAliveApplications.add(convertFromProtoFormat(c));
  }

}
项目:hadoop    文件:GetApplicationReportRequestPBImpl.java   
private ApplicationIdPBImpl convertFromProtoFormat(ApplicationIdProto p) {
  return new ApplicationIdPBImpl(p);
}
项目:hadoop    文件:GetApplicationReportRequestPBImpl.java   
private ApplicationIdProto convertToProtoFormat(ApplicationId t) {
  return ((ApplicationIdPBImpl)t).getProto();
}
项目:hadoop    文件:MoveApplicationAcrossQueuesRequestPBImpl.java   
private ApplicationIdPBImpl convertFromProtoFormat(ApplicationIdProto p) {
  return new ApplicationIdPBImpl(p);
}
项目:hadoop    文件:MoveApplicationAcrossQueuesRequestPBImpl.java   
private ApplicationIdProto convertToProtoFormat(ApplicationId t) {
  return ((ApplicationIdPBImpl)t).getProto();
}
项目:hadoop    文件:GetNewApplicationResponsePBImpl.java   
private ApplicationIdPBImpl convertFromProtoFormat(ApplicationIdProto p) {
  return new ApplicationIdPBImpl(p);
}
项目:hadoop    文件:GetNewApplicationResponsePBImpl.java   
private ApplicationIdProto convertToProtoFormat(ApplicationId t) {
  return ((ApplicationIdPBImpl)t).getProto();
}
项目:hadoop    文件:ReleaseSharedCacheResourceRequestPBImpl.java   
private ApplicationIdPBImpl convertFromProtoFormat(ApplicationIdProto p) {
  return new ApplicationIdPBImpl(p);
}