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

项目:hadoop    文件:QueueInfoPBImpl.java   
private void initLocalChildQueuesList() {
  if (this.childQueuesList != null) {
    return;
  }
  QueueInfoProtoOrBuilder p = viaProto ? proto : builder;
  List<QueueInfoProto> list = p.getChildQueuesList();
  childQueuesList = new ArrayList<QueueInfo>();

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

        Iterator<QueueInfo> iter = childQueuesList.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllChildQueues(iterable);
}
项目:aliyun-oss-hadoop-fs    文件:QueueInfoPBImpl.java   
private void initLocalChildQueuesList() {
  if (this.childQueuesList != null) {
    return;
  }
  QueueInfoProtoOrBuilder p = viaProto ? proto : builder;
  List<QueueInfoProto> list = p.getChildQueuesList();
  childQueuesList = new ArrayList<QueueInfo>();

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

        Iterator<QueueInfo> iter = childQueuesList.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllChildQueues(iterable);
}
项目:big-c    文件:QueueInfoPBImpl.java   
private void initLocalChildQueuesList() {
  if (this.childQueuesList != null) {
    return;
  }
  QueueInfoProtoOrBuilder p = viaProto ? proto : builder;
  List<QueueInfoProto> list = p.getChildQueuesList();
  childQueuesList = new ArrayList<QueueInfo>();

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

        Iterator<QueueInfo> iter = childQueuesList.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllChildQueues(iterable);
}
项目:hadoop-2.6.0-cdh5.4.3    文件:QueueInfoPBImpl.java   
private void initLocalChildQueuesList() {
  if (this.childQueuesList != null) {
    return;
  }
  QueueInfoProtoOrBuilder p = viaProto ? proto : builder;
  List<QueueInfoProto> list = p.getChildQueuesList();
  childQueuesList = new ArrayList<QueueInfo>();

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

        Iterator<QueueInfo> iter = childQueuesList.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllChildQueues(iterable);
}
项目:hadoop-plus    文件:QueueInfoPBImpl.java   
private void initLocalChildQueuesList() {
  if (this.childQueuesList != null) {
    return;
  }
  QueueInfoProtoOrBuilder p = viaProto ? proto : builder;
  List<QueueInfoProto> list = p.getChildQueuesList();
  childQueuesList = new ArrayList<QueueInfo>();

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

        Iterator<QueueInfo> iter = childQueuesList.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllChildQueues(iterable);
}
项目:hops    文件:QueueInfoPBImpl.java   
private void initLocalChildQueuesList() {
  if (this.childQueuesList != null) {
    return;
  }
  QueueInfoProtoOrBuilder p = viaProto ? proto : builder;
  List<QueueInfoProto> list = p.getChildQueuesList();
  childQueuesList = new ArrayList<QueueInfo>();

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

        Iterator<QueueInfo> iter = childQueuesList.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllChildQueues(iterable);
}
项目:hadoop-TCP    文件:QueueInfoPBImpl.java   
private void initLocalChildQueuesList() {
  if (this.childQueuesList != null) {
    return;
  }
  QueueInfoProtoOrBuilder p = viaProto ? proto : builder;
  List<QueueInfoProto> list = p.getChildQueuesList();
  childQueuesList = new ArrayList<QueueInfo>();

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

        Iterator<QueueInfo> iter = childQueuesList.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllChildQueues(iterable);
}
项目:hardfs    文件:QueueInfoPBImpl.java   
private void initLocalChildQueuesList() {
  if (this.childQueuesList != null) {
    return;
  }
  QueueInfoProtoOrBuilder p = viaProto ? proto : builder;
  List<QueueInfoProto> list = p.getChildQueuesList();
  childQueuesList = new ArrayList<QueueInfo>();

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

        Iterator<QueueInfo> iter = childQueuesList.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllChildQueues(iterable);
}
项目:hadoop-on-lustre2    文件:QueueInfoPBImpl.java   
private void initLocalChildQueuesList() {
  if (this.childQueuesList != null) {
    return;
  }
  QueueInfoProtoOrBuilder p = viaProto ? proto : builder;
  List<QueueInfoProto> list = p.getChildQueuesList();
  childQueuesList = new ArrayList<QueueInfo>();

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

        Iterator<QueueInfo> iter = childQueuesList.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllChildQueues(iterable);
}
项目:hadoop    文件:GetQueueInfoResponsePBImpl.java   
private QueueInfo convertFromProtoFormat(QueueInfoProto queueInfo) {
  return new QueueInfoPBImpl(queueInfo);
}
项目:hadoop    文件:GetQueueInfoResponsePBImpl.java   
private QueueInfoProto convertToProtoFormat(QueueInfo queueInfo) {
  return ((QueueInfoPBImpl)queueInfo).getProto();
}
项目:hadoop    文件:QueueInfoPBImpl.java   
public QueueInfoPBImpl() {
  builder = QueueInfoProto.newBuilder();
}
项目:hadoop    文件:QueueInfoPBImpl.java   
public QueueInfoPBImpl(QueueInfoProto proto) {
  this.proto = proto;
  viaProto = true;
}
项目:hadoop    文件:QueueInfoPBImpl.java   
public QueueInfoProto getProto() {
  mergeLocalToProto();
  proto = viaProto ? proto : builder.build();
  viaProto = true;
  return proto;
}
项目:hadoop    文件:QueueInfoPBImpl.java   
private void maybeInitBuilder() {
  if (viaProto || builder == null) {
    builder = QueueInfoProto.newBuilder(proto);
  }
  viaProto = false;
}
项目:hadoop    文件:QueueInfoPBImpl.java   
private QueueInfoPBImpl convertFromProtoFormat(QueueInfoProto a) {
  return new QueueInfoPBImpl(a);
}
项目:hadoop    文件:QueueInfoPBImpl.java   
private QueueInfoProto convertToProtoFormat(QueueInfo q) {
  return ((QueueInfoPBImpl)q).getProto();
}
项目:aliyun-oss-hadoop-fs    文件:GetQueueInfoResponsePBImpl.java   
private QueueInfo convertFromProtoFormat(QueueInfoProto queueInfo) {
  return new QueueInfoPBImpl(queueInfo);
}
项目:aliyun-oss-hadoop-fs    文件:GetQueueInfoResponsePBImpl.java   
private QueueInfoProto convertToProtoFormat(QueueInfo queueInfo) {
  return ((QueueInfoPBImpl)queueInfo).getProto();
}
项目:aliyun-oss-hadoop-fs    文件:QueueInfoPBImpl.java   
public QueueInfoPBImpl() {
  builder = QueueInfoProto.newBuilder();
}
项目:aliyun-oss-hadoop-fs    文件:QueueInfoPBImpl.java   
public QueueInfoPBImpl(QueueInfoProto proto) {
  this.proto = proto;
  viaProto = true;
}
项目:aliyun-oss-hadoop-fs    文件:QueueInfoPBImpl.java   
public QueueInfoProto getProto() {
  mergeLocalToProto();
  proto = viaProto ? proto : builder.build();
  viaProto = true;
  return proto;
}
项目:aliyun-oss-hadoop-fs    文件:QueueInfoPBImpl.java   
private void maybeInitBuilder() {
  if (viaProto || builder == null) {
    builder = QueueInfoProto.newBuilder(proto);
  }
  viaProto = false;
}
项目:aliyun-oss-hadoop-fs    文件:QueueInfoPBImpl.java   
private QueueInfoPBImpl convertFromProtoFormat(QueueInfoProto a) {
  return new QueueInfoPBImpl(a);
}
项目:aliyun-oss-hadoop-fs    文件:QueueInfoPBImpl.java   
private QueueInfoProto convertToProtoFormat(QueueInfo q) {
  return ((QueueInfoPBImpl)q).getProto();
}
项目:aliyun-oss-hadoop-fs    文件:TestPBImplRecords.java   
@Test
public void testQueueInfoPBImpl() throws Exception {
  validatePBImplRecord(QueueInfoPBImpl.class, QueueInfoProto.class);
}
项目:big-c    文件:GetQueueInfoResponsePBImpl.java   
private QueueInfo convertFromProtoFormat(QueueInfoProto queueInfo) {
  return new QueueInfoPBImpl(queueInfo);
}
项目:big-c    文件:GetQueueInfoResponsePBImpl.java   
private QueueInfoProto convertToProtoFormat(QueueInfo queueInfo) {
  return ((QueueInfoPBImpl)queueInfo).getProto();
}
项目:big-c    文件:QueueInfoPBImpl.java   
public QueueInfoPBImpl() {
  builder = QueueInfoProto.newBuilder();
}
项目:big-c    文件:QueueInfoPBImpl.java   
public QueueInfoPBImpl(QueueInfoProto proto) {
  this.proto = proto;
  viaProto = true;
}
项目:big-c    文件:QueueInfoPBImpl.java   
public QueueInfoProto getProto() {
  mergeLocalToProto();
  proto = viaProto ? proto : builder.build();
  viaProto = true;
  return proto;
}