|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.yarn.api.records.NodeId
@InterfaceAudience.Public @InterfaceStability.Stable public abstract class NodeId
NodeId is the unique identifier for a node.
It includes the hostname and port to uniquely
identify the node. Thus, it is unique across restarts of any
NodeManager.
| Constructor Summary | |
|---|---|
NodeId()
|
|
| Method Summary | |
|---|---|
protected abstract void |
build()
|
int |
compareTo(NodeId other)
|
boolean |
equals(Object obj)
|
abstract String |
getHost()
Get the hostname of the node. |
abstract int |
getPort()
Get the port for communicating with the node. |
int |
hashCode()
|
static NodeId |
newInstance(String host,
int port)
|
protected abstract void |
setHost(String host)
|
protected abstract void |
setPort(int port)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NodeId()
| Method Detail |
|---|
@InterfaceAudience.Private
@InterfaceStability.Unstable
public static NodeId newInstance(String host,
int port)
@InterfaceAudience.Public @InterfaceStability.Stable public abstract String getHost()
@InterfaceAudience.Private @InterfaceStability.Unstable protected abstract void setHost(String host)
@InterfaceAudience.Public @InterfaceStability.Stable public abstract int getPort()
@InterfaceAudience.Private @InterfaceStability.Unstable protected abstract void setPort(int port)
public String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic int compareTo(NodeId other)
compareTo in interface Comparable<NodeId>protected abstract void build()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||