本文整理汇总了Java中org.apache.hadoop.yarn.proto.YarnProtos.QueueACLProto类的典型用法代码示例。如果您正苦于以下问题:Java QueueACLProto类的具体用法?Java QueueACLProto怎么用?Java QueueACLProto使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
QueueACLProto类属于org.apache.hadoop.yarn.proto.YarnProtos包,在下文中一共展示了QueueACLProto类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initLocalQueueUserAclsList
import org.apache.hadoop.yarn.proto.YarnProtos.QueueACLProto; //导入依赖的package包/类
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));
}
}
示例2: addQueueACLsToProto
import org.apache.hadoop.yarn.proto.YarnProtos.QueueACLProto; //导入依赖的package包/类
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);
}
示例3: convertFromProtoFormat
import org.apache.hadoop.yarn.proto.YarnProtos.QueueACLProto; //导入依赖的package包/类
private QueueACL convertFromProtoFormat(QueueACLProto q) {
return ProtoUtils.convertFromProtoFormat(q);
}
示例4: convertToProtoFormat
import org.apache.hadoop.yarn.proto.YarnProtos.QueueACLProto; //导入依赖的package包/类
private QueueACLProto convertToProtoFormat(QueueACL queueAcl) {
return ProtoUtils.convertToProtoFormat(queueAcl);
}
示例5: convertToProtoFormat
import org.apache.hadoop.yarn.proto.YarnProtos.QueueACLProto; //导入依赖的package包/类
public static QueueACLProto convertToProtoFormat(QueueACL e) {
return QueueACLProto.valueOf(QUEUE_ACL_PREFIX + e.name());
}
示例6: convertFromProtoFormat
import org.apache.hadoop.yarn.proto.YarnProtos.QueueACLProto; //导入依赖的package包/类
public static QueueACL convertFromProtoFormat(QueueACLProto e) {
return QueueACL.valueOf(e.name().replace(QUEUE_ACL_PREFIX, ""));
}