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

项目:hadoop    文件:QueueUserACLInfoPBImpl.java   
private void initLocalQueueUserAclsList() {
  if (this.userAclsList != null) {
    return;
  }
  QueueUserACLInfoProtoOrBuilder p = viaProto ? proto : builder;
  List<QueueACLProto> list = p.getUserAclsList();
  userAclsList = new ArrayList<QueueACL>();

  for (QueueACLProto a : list) {
    userAclsList.add(convertFromProtoFormat(a));
  }
}
项目:hadoop    文件:QueueUserACLInfoPBImpl.java   
private void addQueueACLsToProto() {
  maybeInitBuilder();
  builder.clearUserAcls();
  if (userAclsList == null)
    return;
  Iterable<QueueACLProto> iterable = new Iterable<QueueACLProto>() {
    @Override
    public Iterator<QueueACLProto> iterator() {
      return new Iterator<QueueACLProto>() {

        Iterator<QueueACL> iter = userAclsList.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllUserAcls(iterable);
}
项目:aliyun-oss-hadoop-fs    文件:QueueUserACLInfoPBImpl.java   
private void initLocalQueueUserAclsList() {
  if (this.userAclsList != null) {
    return;
  }
  QueueUserACLInfoProtoOrBuilder p = viaProto ? proto : builder;
  List<QueueACLProto> list = p.getUserAclsList();
  userAclsList = new ArrayList<QueueACL>();

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

        Iterator<QueueACL> iter = userAclsList.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllUserAcls(iterable);
}
项目:big-c    文件:QueueUserACLInfoPBImpl.java   
private void initLocalQueueUserAclsList() {
  if (this.userAclsList != null) {
    return;
  }
  QueueUserACLInfoProtoOrBuilder p = viaProto ? proto : builder;
  List<QueueACLProto> list = p.getUserAclsList();
  userAclsList = new ArrayList<QueueACL>();

  for (QueueACLProto a : list) {
    userAclsList.add(convertFromProtoFormat(a));
  }
}
项目:big-c    文件:QueueUserACLInfoPBImpl.java   
private void addQueueACLsToProto() {
  maybeInitBuilder();
  builder.clearUserAcls();
  if (userAclsList == null)
    return;
  Iterable<QueueACLProto> iterable = new Iterable<QueueACLProto>() {
    @Override
    public Iterator<QueueACLProto> iterator() {
      return new Iterator<QueueACLProto>() {

        Iterator<QueueACL> iter = userAclsList.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllUserAcls(iterable);
}
项目:hadoop-2.6.0-cdh5.4.3    文件:QueueUserACLInfoPBImpl.java   
private void initLocalQueueUserAclsList() {
  if (this.userAclsList != null) {
    return;
  }
  QueueUserACLInfoProtoOrBuilder p = viaProto ? proto : builder;
  List<QueueACLProto> list = p.getUserAclsList();
  userAclsList = new ArrayList<QueueACL>();

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

        Iterator<QueueACL> iter = userAclsList.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllUserAcls(iterable);
}
项目:hadoop-plus    文件:QueueUserACLInfoPBImpl.java   
private void initLocalQueueUserAclsList() {
  if (this.userAclsList != null) {
    return;
  }
  QueueUserACLInfoProtoOrBuilder p = viaProto ? proto : builder;
  List<QueueACLProto> list = p.getUserAclsList();
  userAclsList = new ArrayList<QueueACL>();

  for (QueueACLProto a : list) {
    userAclsList.add(convertFromProtoFormat(a));
  }
}
项目:hadoop-plus    文件:QueueUserACLInfoPBImpl.java   
private void addQueueACLsToProto() {
  maybeInitBuilder();
  builder.clearUserAcls();
  if (userAclsList == null)
    return;
  Iterable<QueueACLProto> iterable = new Iterable<QueueACLProto>() {
    @Override
    public Iterator<QueueACLProto> iterator() {
      return new Iterator<QueueACLProto>() {

        Iterator<QueueACL> iter = userAclsList.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllUserAcls(iterable);
}
项目:hops    文件:QueueUserACLInfoPBImpl.java   
private void initLocalQueueUserAclsList() {
  if (this.userAclsList != null) {
    return;
  }
  QueueUserACLInfoProtoOrBuilder p = viaProto ? proto : builder;
  List<QueueACLProto> list = p.getUserAclsList();
  userAclsList = new ArrayList<QueueACL>();

  for (QueueACLProto a : list) {
    userAclsList.add(convertFromProtoFormat(a));
  }
}
项目:hops    文件:QueueUserACLInfoPBImpl.java   
private void addQueueACLsToProto() {
  maybeInitBuilder();
  builder.clearUserAcls();
  if (userAclsList == null)
    return;
  Iterable<QueueACLProto> iterable = new Iterable<QueueACLProto>() {
    @Override
    public Iterator<QueueACLProto> iterator() {
      return new Iterator<QueueACLProto>() {

        Iterator<QueueACL> iter = userAclsList.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllUserAcls(iterable);
}
项目:hadoop-TCP    文件:QueueUserACLInfoPBImpl.java   
private void initLocalQueueUserAclsList() {
  if (this.userAclsList != null) {
    return;
  }
  QueueUserACLInfoProtoOrBuilder p = viaProto ? proto : builder;
  List<QueueACLProto> list = p.getUserAclsList();
  userAclsList = new ArrayList<QueueACL>();

  for (QueueACLProto a : list) {
    userAclsList.add(convertFromProtoFormat(a));
  }
}
项目:hadoop-TCP    文件:QueueUserACLInfoPBImpl.java   
private void addQueueACLsToProto() {
  maybeInitBuilder();
  builder.clearUserAcls();
  if (userAclsList == null)
    return;
  Iterable<QueueACLProto> iterable = new Iterable<QueueACLProto>() {
    @Override
    public Iterator<QueueACLProto> iterator() {
      return new Iterator<QueueACLProto>() {

        Iterator<QueueACL> iter = userAclsList.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllUserAcls(iterable);
}
项目:hardfs    文件:QueueUserACLInfoPBImpl.java   
private void initLocalQueueUserAclsList() {
  if (this.userAclsList != null) {
    return;
  }
  QueueUserACLInfoProtoOrBuilder p = viaProto ? proto : builder;
  List<QueueACLProto> list = p.getUserAclsList();
  userAclsList = new ArrayList<QueueACL>();

  for (QueueACLProto a : list) {
    userAclsList.add(convertFromProtoFormat(a));
  }
}
项目:hardfs    文件:QueueUserACLInfoPBImpl.java   
private void addQueueACLsToProto() {
  maybeInitBuilder();
  builder.clearUserAcls();
  if (userAclsList == null)
    return;
  Iterable<QueueACLProto> iterable = new Iterable<QueueACLProto>() {
    @Override
    public Iterator<QueueACLProto> iterator() {
      return new Iterator<QueueACLProto>() {

        Iterator<QueueACL> iter = userAclsList.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllUserAcls(iterable);
}
项目:hadoop-on-lustre2    文件:QueueUserACLInfoPBImpl.java   
private void initLocalQueueUserAclsList() {
  if (this.userAclsList != null) {
    return;
  }
  QueueUserACLInfoProtoOrBuilder p = viaProto ? proto : builder;
  List<QueueACLProto> list = p.getUserAclsList();
  userAclsList = new ArrayList<QueueACL>();

  for (QueueACLProto a : list) {
    userAclsList.add(convertFromProtoFormat(a));
  }
}
项目:hadoop-on-lustre2    文件:QueueUserACLInfoPBImpl.java   
private void addQueueACLsToProto() {
  maybeInitBuilder();
  builder.clearUserAcls();
  if (userAclsList == null)
    return;
  Iterable<QueueACLProto> iterable = new Iterable<QueueACLProto>() {
    @Override
    public Iterator<QueueACLProto> iterator() {
      return new Iterator<QueueACLProto>() {

        Iterator<QueueACL> iter = userAclsList.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllUserAcls(iterable);
}
项目:hadoop    文件:QueueUserACLInfoPBImpl.java   
private QueueACL convertFromProtoFormat(QueueACLProto q) {
  return ProtoUtils.convertFromProtoFormat(q);
}
项目:hadoop    文件:QueueUserACLInfoPBImpl.java   
private QueueACLProto convertToProtoFormat(QueueACL queueAcl) {
  return ProtoUtils.convertToProtoFormat(queueAcl);
}
项目:hadoop    文件:ProtoUtils.java   
public static QueueACLProto convertToProtoFormat(QueueACL e) {
  return QueueACLProto.valueOf(QUEUE_ACL_PREFIX + e.name());
}
项目:hadoop    文件:ProtoUtils.java   
public static QueueACL convertFromProtoFormat(QueueACLProto e) {
  return QueueACL.valueOf(e.name().replace(QUEUE_ACL_PREFIX, ""));
}
项目:aliyun-oss-hadoop-fs    文件:QueueUserACLInfoPBImpl.java   
private QueueACL convertFromProtoFormat(QueueACLProto q) {
  return ProtoUtils.convertFromProtoFormat(q);
}
项目:aliyun-oss-hadoop-fs    文件:QueueUserACLInfoPBImpl.java   
private QueueACLProto convertToProtoFormat(QueueACL queueAcl) {
  return ProtoUtils.convertToProtoFormat(queueAcl);
}
项目:aliyun-oss-hadoop-fs    文件:ProtoUtils.java   
public static QueueACLProto convertToProtoFormat(QueueACL e) {
  return QueueACLProto.valueOf(QUEUE_ACL_PREFIX + e.name());
}
项目:aliyun-oss-hadoop-fs    文件:ProtoUtils.java   
public static QueueACL convertFromProtoFormat(QueueACLProto e) {
  return QueueACL.valueOf(e.name().replace(QUEUE_ACL_PREFIX, ""));
}
项目:big-c    文件:QueueUserACLInfoPBImpl.java   
private QueueACL convertFromProtoFormat(QueueACLProto q) {
  return ProtoUtils.convertFromProtoFormat(q);
}
项目:big-c    文件:QueueUserACLInfoPBImpl.java   
private QueueACLProto convertToProtoFormat(QueueACL queueAcl) {
  return ProtoUtils.convertToProtoFormat(queueAcl);
}
项目:big-c    文件:ProtoUtils.java   
public static QueueACLProto convertToProtoFormat(QueueACL e) {
  return QueueACLProto.valueOf(QUEUE_ACL_PREFIX + e.name());
}
项目:big-c    文件:ProtoUtils.java   
public static QueueACL convertFromProtoFormat(QueueACLProto e) {
  return QueueACL.valueOf(e.name().replace(QUEUE_ACL_PREFIX, ""));
}
项目:hadoop-2.6.0-cdh5.4.3    文件:QueueUserACLInfoPBImpl.java   
private QueueACL convertFromProtoFormat(QueueACLProto q) {
  return ProtoUtils.convertFromProtoFormat(q);
}
项目:hadoop-2.6.0-cdh5.4.3    文件:QueueUserACLInfoPBImpl.java   
private QueueACLProto convertToProtoFormat(QueueACL queueAcl) {
  return ProtoUtils.convertToProtoFormat(queueAcl);
}
项目:hadoop-2.6.0-cdh5.4.3    文件:ProtoUtils.java   
public static QueueACLProto convertToProtoFormat(QueueACL e) {
  return QueueACLProto.valueOf(QUEUE_ACL_PREFIX + e.name());
}
项目:hadoop-2.6.0-cdh5.4.3    文件:ProtoUtils.java   
public static QueueACL convertFromProtoFormat(QueueACLProto e) {
  return QueueACL.valueOf(e.name().replace(QUEUE_ACL_PREFIX, ""));
}
项目:hadoop-plus    文件:QueueUserACLInfoPBImpl.java   
private QueueACL convertFromProtoFormat(QueueACLProto q) {
  return ProtoUtils.convertFromProtoFormat(q);
}
项目:hadoop-plus    文件:QueueUserACLInfoPBImpl.java   
private QueueACLProto convertToProtoFormat(QueueACL queueAcl) {
  return ProtoUtils.convertToProtoFormat(queueAcl);
}
项目:hadoop-plus    文件:ProtoUtils.java   
public static QueueACLProto convertToProtoFormat(QueueACL e) {
  return QueueACLProto.valueOf(QUEUE_ACL_PREFIX + e.name());
}
项目:hadoop-plus    文件:ProtoUtils.java   
public static QueueACL convertFromProtoFormat(QueueACLProto e) {
  return QueueACL.valueOf(e.name().replace(QUEUE_ACL_PREFIX, ""));
}
项目:hops    文件:QueueUserACLInfoPBImpl.java   
private QueueACL convertFromProtoFormat(QueueACLProto q) {
  return ProtoUtils.convertFromProtoFormat(q);
}
项目:hops    文件:QueueUserACLInfoPBImpl.java   
private QueueACLProto convertToProtoFormat(QueueACL queueAcl) {
  return ProtoUtils.convertToProtoFormat(queueAcl);
}