本文整理汇总了Java中org.apache.hadoop.yarn.proto.YarnProtos.QueueInfoProtoOrBuilder类的典型用法代码示例。如果您正苦于以下问题:Java QueueInfoProtoOrBuilder类的具体用法?Java QueueInfoProtoOrBuilder怎么用?Java QueueInfoProtoOrBuilder使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
QueueInfoProtoOrBuilder类属于org.apache.hadoop.yarn.proto.YarnProtos包,在下文中一共展示了QueueInfoProtoOrBuilder类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getQueueState
import org.apache.hadoop.yarn.proto.YarnProtos.QueueInfoProtoOrBuilder; //导入依赖的package包/类
@Override
public QueueState getQueueState() {
QueueInfoProtoOrBuilder p = viaProto ? proto : builder;
if (!p.hasState()) {
return null;
}
return convertFromProtoFormat(p.getState());
}
示例2: initLocalApplicationsList
import org.apache.hadoop.yarn.proto.YarnProtos.QueueInfoProtoOrBuilder; //导入依赖的package包/类
private void initLocalApplicationsList() {
if (this.applicationsList != null) {
return;
}
QueueInfoProtoOrBuilder p = viaProto ? proto : builder;
List<ApplicationReportProto> list = p.getApplicationsList();
applicationsList = new ArrayList<ApplicationReport>();
for (ApplicationReportProto a : list) {
applicationsList.add(convertFromProtoFormat(a));
}
}
示例3: initLocalChildQueuesList
import org.apache.hadoop.yarn.proto.YarnProtos.QueueInfoProtoOrBuilder; //导入依赖的package包/类
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));
}
}
示例4: initNodeLabels
import org.apache.hadoop.yarn.proto.YarnProtos.QueueInfoProtoOrBuilder; //导入依赖的package包/类
private void initNodeLabels() {
if (this.accessibleNodeLabels != null) {
return;
}
QueueInfoProtoOrBuilder p = viaProto ? proto : builder;
this.accessibleNodeLabels = new HashSet<String>();
this.accessibleNodeLabels.addAll(p.getAccessibleNodeLabelsList());
}
示例5: getCapacity
import org.apache.hadoop.yarn.proto.YarnProtos.QueueInfoProtoOrBuilder; //导入依赖的package包/类
@Override
public float getCapacity() {
QueueInfoProtoOrBuilder p = viaProto ? proto : builder;
return (p.hasCapacity()) ? p.getCapacity() : -1;
}
示例6: getCurrentCapacity
import org.apache.hadoop.yarn.proto.YarnProtos.QueueInfoProtoOrBuilder; //导入依赖的package包/类
@Override
public float getCurrentCapacity() {
QueueInfoProtoOrBuilder p = viaProto ? proto : builder;
return (p.hasCurrentCapacity()) ? p.getCurrentCapacity() : 0;
}
示例7: getMaximumCapacity
import org.apache.hadoop.yarn.proto.YarnProtos.QueueInfoProtoOrBuilder; //导入依赖的package包/类
@Override
public float getMaximumCapacity() {
QueueInfoProtoOrBuilder p = viaProto ? proto : builder;
return (p.hasMaximumCapacity()) ? p.getMaximumCapacity() : -1;
}
示例8: getQueueName
import org.apache.hadoop.yarn.proto.YarnProtos.QueueInfoProtoOrBuilder; //导入依赖的package包/类
@Override
public String getQueueName() {
QueueInfoProtoOrBuilder p = viaProto ? proto : builder;
return (p.hasQueueName()) ? p.getQueueName() : null;
}
示例9: getDefaultNodeLabelExpression
import org.apache.hadoop.yarn.proto.YarnProtos.QueueInfoProtoOrBuilder; //导入依赖的package包/类
@Override
public String getDefaultNodeLabelExpression() {
QueueInfoProtoOrBuilder p = viaProto ? proto : builder;
return (p.hasDefaultNodeLabelExpression()) ? p
.getDefaultNodeLabelExpression().trim() : null;
}