org.apache.hadoop.yarn.api.records.impl.pb
Class NodeIdPBImpl
java.lang.Object
org.apache.hadoop.yarn.api.records.NodeId
org.apache.hadoop.yarn.api.records.impl.pb.NodeIdPBImpl
- All Implemented Interfaces:
- Comparable<NodeId>
public class NodeIdPBImpl
- extends NodeId
NodeIdPBImpl
public NodeIdPBImpl()
NodeIdPBImpl
public NodeIdPBImpl(YarnProtos.NodeIdProto proto)
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.