public class DefaultControllerNode extends Object implements ControllerNode
ControllerNode.State| Modifier and Type | Field and Description | 
|---|---|
static int | 
DEFAULT_PORT  | 
| Constructor and Description | 
|---|
DefaultControllerNode(NodeId id,
                     IpAddress ip)
Creates a new instance with the specified id and IP address. 
 | 
DefaultControllerNode(NodeId id,
                     IpAddress ip,
                     int tcpPort)
Creates a new instance with the specified id and IP address. 
 | 
DefaultControllerNode(NodeId id,
                     String host)
Creates a new instance with the specified id and IP address. 
 | 
DefaultControllerNode(NodeId id,
                     String host,
                     int tcpPort)
Creates a new instance with the specified id and IP address and TCP port. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
equals(Object o)  | 
int | 
hashCode()  | 
String | 
host()
Returns the host name of the controller instance. 
 | 
NodeId | 
id()
Returns the instance identifier. 
 | 
IpAddress | 
ip(boolean resolve)
Returns the IP address of the controller instance. 
 | 
int | 
tcpPort()
Returns the TCP port on which the node listens for connections. 
 | 
String | 
toString()  | 
public static final int DEFAULT_PORT
public DefaultControllerNode(NodeId id, String host)
id - instance identifierhost - instance hostnamepublic DefaultControllerNode(NodeId id, String host, int tcpPort)
id - instance identifierhost - instance host nametcpPort - TCP portpublic DefaultControllerNode(NodeId id, IpAddress ip)
id - instance identifierip - instance IP addresspublic String host()
Nodepublic IpAddress ip(boolean resolve)
Nodepublic int tcpPort()
Node