Examples of ContainerProtoOrBuilder


Examples of org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder

  }
   
 
  @Override
  public ContainerState getState() {
    ContainerProtoOrBuilder p = viaProto ? proto : builder;
    if (!p.hasState()) {
      return null;
    }
    return convertFromProtoFormat(p.getState());
  }
View Full Code Here

Examples of org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder

    }
    builder.setState(convertToProtoFormat(state));
  }
  @Override
  public ContainerId getId() {
    ContainerProtoOrBuilder p = viaProto ? proto : builder;
    if (this.containerId != null) {
      return this.containerId;
    }
    if (!p.hasId()) {
      return null;
    }
    this.containerId = convertFromProtoFormat(p.getId());
    return this.containerId;
  }
View Full Code Here

Examples of org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder

    this.nodeId = nodeId;
  }

  @Override
  public NodeId getNodeId() {
    ContainerProtoOrBuilder p = viaProto ? proto : builder;
    if (this.nodeId != null) {
      return this.nodeId;
    }
    if (!p.hasNodeId()) {
      return null;
    }
    this.nodeId = convertFromProtoFormat(p.getNodeId());
    return this.nodeId;
  }
View Full Code Here

Examples of org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder

    this.containerId = id;
  }

  @Override
  public String getNodeHttpAddress() {
    ContainerProtoOrBuilder p = viaProto ? proto : builder;
    if (!p.hasNodeHttpAddress()) {
      return null;
    }
    return (p.getNodeHttpAddress());
  }
View Full Code Here

Examples of org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder

    builder.setNodeHttpAddress(nodeHttpAddress);
  }

  @Override
  public Resource getResource() {
    ContainerProtoOrBuilder p = viaProto ? proto : builder;
    if (this.resource != null) {
      return this.resource;
    }
    if (!p.hasResource()) {
      return null;
    }
    this.resource = convertFromProtoFormat(p.getResource());
    return this.resource;
  }
View Full Code Here

Examples of org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder

    this.resource = resource;
  }
 
  @Override
  public Priority getPriority() {
    ContainerProtoOrBuilder p = viaProto ? proto : builder;
    if (this.priority != null) {
      return this.priority;
    }
    if (!p.hasPriority()) {
      return null;
    }
    this.priority = convertFromProtoFormat(p.getPriority());
    return this.priority;
  }
View Full Code Here

Examples of org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder

    this.priority = priority;
  }

  @Override
  public ContainerToken getContainerToken() {
    ContainerProtoOrBuilder p = viaProto ? proto : builder;
    if (this.containerToken != null) {
      return this.containerToken;
    }
    if (!p.hasContainerToken()) {
      return null;
    }
    this.containerToken = convertFromProtoFormat(p.getContainerToken());
    return this.containerToken;
  }
View Full Code Here

Examples of org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder

    this.containerToken = containerToken;
  }

  @Override
  public ContainerStatus getContainerStatus() {
    ContainerProtoOrBuilder p = viaProto ? proto : builder;
    if (this.containerStatus != null) {
      return this.containerStatus;
    }
    if (!p.hasContainerStatus()) {
      return null;
    }
    this.containerStatus = convertFromProtoFormat(p.getContainerStatus());
    return this.containerStatus;
  }
View Full Code Here

Examples of org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder

  }
   
 
  @Override
  public ContainerState getState() {
    ContainerProtoOrBuilder p = viaProto ? proto : builder;
    if (!p.hasState()) {
      return null;
    }
    return convertFromProtoFormat(p.getState());
  }
View Full Code Here

Examples of org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder

    }
    builder.setState(convertToProtoFormat(state));
  }
  @Override
  public ContainerId getId() {
    ContainerProtoOrBuilder p = viaProto ? proto : builder;
    if (this.containerId != null) {
      return this.containerId;
    }
    if (!p.hasId()) {
      return null;
    }
    this.containerId = convertFromProtoFormat(p.getId());
    return this.containerId;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.