java.lang.Object
org.apache.hadoop.yarn.server.api.protocolrecords.RemoteNode
All Implemented Interfaces:
Comparable<RemoteNode>
Direct Known Subclasses:
RemoteNodePBImpl

@Private @Unstable public abstract class RemoteNode extends Object implements Comparable<RemoteNode>
This class is used to encapsulate the NodeId as well as the HTTP address that can be used to communicate with the Node.
  • Constructor Details

    • RemoteNode

      public RemoteNode()
  • Method Details

    • newInstance

      @Private @Unstable public static RemoteNode newInstance(org.apache.hadoop.yarn.api.records.NodeId nodeId, String httpAddress)
      Create new Instance.
      Parameters:
      nodeId - NodeId.
      httpAddress - Http address.
      Returns:
      RemoteNode instance.
    • newInstance

      @Private @Unstable public static RemoteNode newInstance(org.apache.hadoop.yarn.api.records.NodeId nodeId, String httpAddress, String rackName)
      Create new Instance.
      Parameters:
      nodeId - NodeId.
      httpAddress - Http address.
      rackName - Rack Name.
      Returns:
      RemoteNode instance.
    • newInstance

      @Private @Unstable public static RemoteNode newInstance(org.apache.hadoop.yarn.api.records.NodeId nodeId, String httpAddress, String rackName, String nodePartition)
      Create new Instance.
      Parameters:
      nodeId - NodeId.
      httpAddress - Http address.
      rackName - Rack Name.
      nodePartition - Node Partition.
      Returns:
      RemoteNode Instance.
    • getNodeId

      @Private @Unstable public abstract org.apache.hadoop.yarn.api.records.NodeId getNodeId()
      Get NodeId.
      Returns:
      NodeId.
    • setNodeId

      @Private @Unstable public abstract void setNodeId(org.apache.hadoop.yarn.api.records.NodeId nodeId)
      Set NodeId.
      Parameters:
      nodeId - NodeId.
    • getHttpAddress

      @Private @Unstable public abstract String getHttpAddress()
      Get HTTP address.
      Returns:
      Http Address.
    • setHttpAddress

      @Private @Unstable public abstract void setHttpAddress(String httpAddress)
      Set HTTP address.
      Parameters:
      httpAddress - HTTP address.
    • getRackName

      @Private @Unstable public abstract String getRackName()
      Get Rack Name.
      Returns:
      Rack Name.
    • setRackName

      @Private @Unstable public abstract void setRackName(String rackName)
      Set Rack Name.
      Parameters:
      rackName - Rack Name.
    • getNodePartition

      @Private @Unstable public abstract String getNodePartition()
      Get Node Partition.
      Returns:
      Node Partition.
    • setNodePartition

      @Private @Unstable public abstract void setNodePartition(String nodePartition)
      Set Node Partition.
      Parameters:
      nodePartition - node Partition.
    • compareTo

      public int compareTo(RemoteNode other)
      Specified by:
      compareTo in interface Comparable<RemoteNode>
    • toString

      public String toString()
      Overrides:
      toString in class Object