public class Node
extends java.lang.Object
Constructor and Description |
---|
Node(int id, java.lang.String host, int port, java.lang.String serviceName) |
Node(int id, java.lang.String host, int port, java.lang.String serviceName, java.lang.String instanceName) |
Node(java.lang.String host, int port, java.lang.String serviceName) |
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() |
java.lang.String |
instanceName()
Name of this instance
|
boolean |
isEmpty() |
static Node |
noNode() |
int |
port()
The port for this Node
|
java.lang.String |
serviceName()
Name of the service running on this node/instance
|
java.lang.String |
toString() |
public Node(java.lang.String host, int port, java.lang.String serviceName)
public Node(int id, java.lang.String host, int port, java.lang.String serviceName)
public Node(int id, java.lang.String host, int port, java.lang.String serviceName, java.lang.String instanceName)
public static Node noNode()
public boolean isEmpty()
public int id()
public java.lang.String host()
public int port()
public java.lang.String serviceName()
public java.lang.String instanceName()
public java.lang.String idString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object