public class Node
extends java.lang.Object
| Constructor and Description |
|---|
Node(int id,
java.lang.String host,
int port) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
java.lang.String |
host()
The host name for this node
|
int |
id()
The node id of this node
|
java.lang.String |
idString()
String representation of the node id.
|
static Node |
noNode() |
int |
port()
The port for this node
|
java.lang.String |
toString() |
public static Node noNode()
public int id()
public java.lang.String idString()
public java.lang.String host()
public int port()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object