Java 类org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodeLabelsResponseProtoOrBuilder 实例源码

项目:hadoop    文件:GetClusterNodeLabelsResponsePBImpl.java   
private void initNodeLabels() {
  if (this.labels != null) {
    return;
  }
  GetClusterNodeLabelsResponseProtoOrBuilder p = viaProto ? proto : builder;
  this.labels = new HashSet<String>();
  this.labels.addAll(p.getNodeLabelsList());
}
项目:aliyun-oss-hadoop-fs    文件:GetClusterNodeLabelsResponsePBImpl.java   
private void initLocalNodeLabels() {
  GetClusterNodeLabelsResponseProtoOrBuilder p = viaProto ? proto : builder;
  List<NodeLabelProto> attributesProtoList = p.getNodeLabelsList();
  this.updatedNodeLabels = new ArrayList<NodeLabel>();
  for (NodeLabelProto r : attributesProtoList) {
    this.updatedNodeLabels.add(convertFromProtoFormat(r));
  }
}
项目:big-c    文件:GetClusterNodeLabelsResponsePBImpl.java   
private void initNodeLabels() {
  if (this.labels != null) {
    return;
  }
  GetClusterNodeLabelsResponseProtoOrBuilder p = viaProto ? proto : builder;
  this.labels = new HashSet<String>();
  this.labels.addAll(p.getNodeLabelsList());
}
项目:hadoop-2.6.0-cdh5.4.3    文件:GetClusterNodeLabelsResponsePBImpl.java   
private void initNodeLabels() {
  if (this.labels != null) {
    return;
  }
  GetClusterNodeLabelsResponseProtoOrBuilder p = viaProto ? proto : builder;
  this.labels = new HashSet<String>();
  this.labels.addAll(p.getNodeLabelsList());
}
项目:hops    文件:GetClusterNodeLabelsResponsePBImpl.java   
private void initLocalNodeLabels() {
  GetClusterNodeLabelsResponseProtoOrBuilder p = viaProto ? proto : builder;
  List<NodeLabelProto> attributesProtoList = p.getNodeLabelsList();
  this.updatedNodeLabels = new ArrayList<NodeLabel>();
  for (NodeLabelProto r : attributesProtoList) {
    this.updatedNodeLabels.add(convertFromProtoFormat(r));
  }
}