• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java NMContainerStatusProto类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProto的典型用法代码示例。如果您正苦于以下问题:Java NMContainerStatusProto类的具体用法?Java NMContainerStatusProto怎么用?Java NMContainerStatusProto使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

NMContainerStatusProto类属于org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos包,在下文中一共展示了NMContainerStatusProto类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: getProto

点赞 2

import org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProto; //导入依赖的package包/类
public NMContainerStatusProto getProto() {

    mergeLocalToProto();
    proto = viaProto ? proto : builder.build();
    viaProto = true;
    return proto;
  }
 

开发者ID:naver,
项目名称:hadoop,
代码行数:8,
代码来源:NMContainerStatusPBImpl.java

示例2: addNMContainerStatusesToProto

点赞 2

import org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProto; //导入依赖的package包/类
private synchronized void addNMContainerStatusesToProto() {
  maybeInitBuilder();
  builder.clearContainerStatuses();
  List<NMContainerStatusProto> list =
      new ArrayList<NMContainerStatusProto>();
  for (NMContainerStatus status : this.containerStatuses) {
    list.add(convertToProtoFormat(status));
  }
  builder.addAllContainerStatuses(list);
}
 

开发者ID:naver,
项目名称:hadoop,
代码行数:11,
代码来源:RegisterNodeManagerRequestPBImpl.java

示例3: initContainerRecoveryReports

点赞 2

import org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProto; //导入依赖的package包/类
private void initContainerRecoveryReports() {
  if (this.containerStatuses != null) {
    return;
  }
  RegisterNodeManagerRequestProtoOrBuilder p = viaProto ? proto : builder;
  List<NMContainerStatusProto> list = p.getContainerStatusesList();
  this.containerStatuses = new ArrayList<NMContainerStatus>();
  for (NMContainerStatusProto c : list) {
    this.containerStatuses.add(convertFromProtoFormat(c));
  }
}
 

开发者ID:naver,
项目名称:hadoop,
代码行数:12,
代码来源:RegisterNodeManagerRequestPBImpl.java

示例4: NMContainerStatusPBImpl

点赞 2

import org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProto; //导入依赖的package包/类
public NMContainerStatusPBImpl() {
  builder = NMContainerStatusProto.newBuilder();
}
 

开发者ID:naver,
项目名称:hadoop,
代码行数:4,
代码来源:NMContainerStatusPBImpl.java

示例5: maybeInitBuilder

点赞 2

import org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProto; //导入依赖的package包/类
private void maybeInitBuilder() {
  if (viaProto || builder == null) {
    builder = NMContainerStatusProto.newBuilder(proto);
  }
  viaProto = false;
}
 

开发者ID:naver,
项目名称:hadoop,
代码行数:7,
代码来源:NMContainerStatusPBImpl.java

示例6: convertFromProtoFormat

点赞 2

import org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProto; //导入依赖的package包/类
private NMContainerStatusPBImpl convertFromProtoFormat(NMContainerStatusProto c) {
  return new NMContainerStatusPBImpl(c);
}
 

开发者ID:naver,
项目名称:hadoop,
代码行数:4,
代码来源:RegisterNodeManagerRequestPBImpl.java

示例7: convertToProtoFormat

点赞 2

import org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProto; //导入依赖的package包/类
private NMContainerStatusProto convertToProtoFormat(NMContainerStatus c) {
  return ((NMContainerStatusPBImpl)c).getProto();
}
 

开发者ID:naver,
项目名称:hadoop,
代码行数:4,
代码来源:RegisterNodeManagerRequestPBImpl.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)