Package org.apache.hadoop.yarn.proto.YarnProtos

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


  public Resource getCapability() {
    if (this.capability != null) {
      return this.capability;
    }

    NodeReportProtoOrBuilder p = viaProto ? proto : builder;
    if (!p.hasCapability()) {
      return null;
    }
    this.capability = convertFromProtoFormat(p.getCapability());
    return this.capability;
  }
View Full Code Here


  public NodeHealthStatus getNodeHealthStatus() {
    if (this.nodeHealthStatus != null) {
      return this.nodeHealthStatus;
    }

    NodeReportProtoOrBuilder p = viaProto ? proto : builder;
    if (!p.hasNodeHealthStatus()) {
      return null;
    }
    this.nodeHealthStatus = convertFromProtoFormat(p.getNodeHealthStatus());
    return this.nodeHealthStatus;
  }
View Full Code Here

    return this.nodeHealthStatus;
  }

  @Override
  public String getHttpAddress() {
    NodeReportProtoOrBuilder p = viaProto ? proto : builder;
    return (p.hasHttpAddress()) ? p.getHttpAddress() : null;
  }
View Full Code Here

    return (p.hasHttpAddress()) ? p.getHttpAddress() : null;
  }

  @Override
  public int getNumContainers() {
    NodeReportProtoOrBuilder p = viaProto ? proto : builder;
    return (p.hasNumContainers()) ? p.getNumContainers() : 0;
  }
View Full Code Here

    return (p.hasNumContainers()) ? p.getNumContainers() : 0;
  }

  @Override
  public String getRackName() {
    NodeReportProtoOrBuilder p = viaProto ? proto : builder;
    return (p.hasRackName()) ? p.getRackName() : null;
  }
View Full Code Here

  public Resource getUsed() {
    if (this.used != null) {
      return this.used;
    }

    NodeReportProtoOrBuilder p = viaProto ? proto : builder;
    if (!p.hasUsed()) {
      return null;
    }
    this.used = convertFromProtoFormat(p.getUsed());
    return this.used;
  }
View Full Code Here

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

    this.nodeId = nodeId;
  }
 
  @Override
  public NodeState getNodeState() {
    NodeReportProtoOrBuilder p = viaProto ? proto : builder;
    if (!p.hasNodeState()) {
      return null;
    }
    return ProtoUtils.convertFromProtoFormat(p.getNodeState());
  }
View Full Code Here

  public Resource getCapability() {
    if (this.capability != null) {
      return this.capability;
    }

    NodeReportProtoOrBuilder p = viaProto ? proto : builder;
    if (!p.hasCapability()) {
      return null;
    }
    this.capability = convertFromProtoFormat(p.getCapability());
    return this.capability;
  }
View Full Code Here

  public NodeHealthStatus getNodeHealthStatus() {
    if (this.nodeHealthStatus != null) {
      return this.nodeHealthStatus;
    }

    NodeReportProtoOrBuilder p = viaProto ? proto : builder;
    if (!p.hasNodeHealthStatus()) {
      return null;
    }
    this.nodeHealthStatus = convertFromProtoFormat(p.getNodeHealthStatus());
    return this.nodeHealthStatus;
  }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProtoOrBuilder

Copyright © 2018 www.massapicom. 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.