Package org.onosproject.cluster
Interface Node
-
- All Known Subinterfaces:
ControllerNode
- All Known Implementing Classes:
DefaultControllerNode
public interface NodeRepresents a controller instance as a member in a cluster.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Stringhost()Returns the host name of the controller instance.NodeIdid()Returns the instance identifier.default IpAddressip()Returns the IP address of the controller instance.IpAddressip(boolean resolve)Returns the IP address of the controller instance.inttcpPort()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
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
-
-