Package org.onosproject.cluster
Interface Node
-
- All Known Subinterfaces:
ControllerNode
- All Known Implementing Classes:
DefaultControllerNode
public interface Node
Represents a controller instance as a member in a cluster.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.lang.String
host()
Returns the host name of the controller instance.NodeId
id()
Returns the instance identifier.default IpAddress
ip()
Returns the IP address of the controller instance.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.
-
-
-
Method Detail
-
id
NodeId id()
Returns the instance identifier.- Returns:
- instance identifier
-
ip
default IpAddress ip()
Returns the IP address of the controller instance.- Returns:
- IP address
-
ip
IpAddress ip(boolean resolve)
Returns the IP address of the controller instance.- Parameters:
resolve
- whether to resolve the hostname- Returns:
- IP address
-
host
java.lang.String host()
Returns the host name of the controller instance.- Returns:
- the host name of the controller instance
-
tcpPort
int tcpPort()
Returns the TCP port on which the node listens for connections.- Returns:
- TCP port
-
-