本文整理汇总了Java中org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProtoOrBuilder类的典型用法代码示例。如果您正苦于以下问题:Java RegisterApplicationMasterResponseProtoOrBuilder类的具体用法?Java RegisterApplicationMasterResponseProtoOrBuilder怎么用?Java RegisterApplicationMasterResponseProtoOrBuilder使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
RegisterApplicationMasterResponseProtoOrBuilder类属于org.apache.hadoop.yarn.proto.YarnServiceProtos包,在下文中一共展示了RegisterApplicationMasterResponseProtoOrBuilder类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getMaximumResourceCapability
import org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProtoOrBuilder; //导入依赖的package包/类
@Override
public Resource getMaximumResourceCapability() {
if (this.maximumResourceCapability != null) {
return this.maximumResourceCapability;
}
RegisterApplicationMasterResponseProtoOrBuilder p = viaProto ? proto : builder;
if (!p.hasMaximumCapability()) {
return null;
}
this.maximumResourceCapability = convertFromProtoFormat(p.getMaximumCapability());
return this.maximumResourceCapability;
}
开发者ID:naver,项目名称:hadoop,代码行数:15,代码来源:RegisterApplicationMasterResponsePBImpl.java
示例2: initApplicationACLs
import org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProtoOrBuilder; //导入依赖的package包/类
private void initApplicationACLs() {
if (this.applicationACLS != null) {
return;
}
RegisterApplicationMasterResponseProtoOrBuilder p = viaProto ? proto
: builder;
List<ApplicationACLMapProto> list = p.getApplicationACLsList();
this.applicationACLS = new HashMap<ApplicationAccessType, String>(list
.size());
for (ApplicationACLMapProto aclProto : list) {
this.applicationACLS.put(ProtoUtils.convertFromProtoFormat(aclProto
.getAccessType()), aclProto.getAcl());
}
}
开发者ID:naver,项目名称:hadoop,代码行数:16,代码来源:RegisterApplicationMasterResponsePBImpl.java
示例3: getQueue
import org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProtoOrBuilder; //导入依赖的package包/类
@Override
public String getQueue() {
RegisterApplicationMasterResponseProtoOrBuilder p = viaProto ? proto : builder;
if (!p.hasQueue()) {
return null;
}
return p.getQueue();
}
开发者ID:naver,项目名称:hadoop,代码行数:9,代码来源:RegisterApplicationMasterResponsePBImpl.java
示例4: initContainersPreviousAttemptList
import org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProtoOrBuilder; //导入依赖的package包/类
private void initContainersPreviousAttemptList() {
RegisterApplicationMasterResponseProtoOrBuilder p =
viaProto ? proto : builder;
List<ContainerProto> list = p.getContainersFromPreviousAttemptsList();
containersFromPreviousAttempts = new ArrayList<Container>();
for (ContainerProto c : list) {
containersFromPreviousAttempts.add(convertFromProtoFormat(c));
}
}
开发者ID:naver,项目名称:hadoop,代码行数:10,代码来源:RegisterApplicationMasterResponsePBImpl.java
示例5: initLocalNewNMTokenList
import org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProtoOrBuilder; //导入依赖的package包/类
private synchronized void initLocalNewNMTokenList() {
RegisterApplicationMasterResponseProtoOrBuilder p = viaProto ? proto : builder;
List<NMTokenProto> list = p.getNmTokensFromPreviousAttemptsList();
nmTokens = new ArrayList<NMToken>();
for (NMTokenProto t : list) {
nmTokens.add(convertFromProtoFormat(t));
}
}
开发者ID:naver,项目名称:hadoop,代码行数:9,代码来源:RegisterApplicationMasterResponsePBImpl.java
示例6: initSchedulerResourceTypes
import org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProtoOrBuilder; //导入依赖的package包/类
private void initSchedulerResourceTypes() {
if (this.schedulerResourceTypes != null) {
return;
}
RegisterApplicationMasterResponseProtoOrBuilder p =
viaProto ? proto : builder;
List<SchedulerResourceTypes> list = p.getSchedulerResourceTypesList();
if (list.isEmpty()) {
this.schedulerResourceTypes =
EnumSet.noneOf(SchedulerResourceTypes.class);
} else {
this.schedulerResourceTypes = EnumSet.copyOf(list);
}
}
开发者ID:naver,项目名称:hadoop,代码行数:16,代码来源:RegisterApplicationMasterResponsePBImpl.java
注:本文中的org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProtoOrBuilder类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论