org.apache.hadoop.yarn.api.records.impl.pb
Class NodeIdPBImpl

java.lang.Object
  extended by org.apache.hadoop.yarn.api.records.NodeId
      extended by org.apache.hadoop.yarn.api.records.impl.pb.NodeIdPBImpl
All Implemented Interfaces:
Comparable<NodeId>

public class NodeIdPBImpl
extends NodeId


Constructor Summary
NodeIdPBImpl()
           
NodeIdPBImpl(YarnProtos.NodeIdProto proto)
           
 
Method Summary
 String getHost()
          Get the hostname of the node.
 int getPort()
          Get the port for communicating with the node.
 YarnProtos.NodeIdProto getProto()
           
 void setHost(String host)
           
 void setPort(int port)
           
 
Methods inherited from class org.apache.hadoop.yarn.api.records.NodeId
compareTo, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NodeIdPBImpl

public NodeIdPBImpl()

NodeIdPBImpl

public NodeIdPBImpl(YarnProtos.NodeIdProto proto)
Method Detail

getProto

public YarnProtos.NodeIdProto getProto()

getHost

public String getHost()
Description copied from class: NodeId
Get the hostname of the node.

Specified by:
getHost in class NodeId
Returns:
hostname of the node

setHost

public void setHost(String host)
Specified by:
setHost in class NodeId

getPort

public int getPort()
Description copied from class: NodeId
Get the port for communicating with the node.

Specified by:
getPort in class NodeId
Returns:
port for communicating with the node

setPort

public void setPort(int port)
Specified by:
setPort in class NodeId


Copyright © 2012 Apache Software Foundation. All Rights Reserved.