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 SummaryAll 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- 
idNodeId id() Returns the instance identifier.- Returns:
- instance identifier
 
 - 
ipdefault IpAddress ip() Returns the IP address of the controller instance.- Returns:
- IP address
 
 - 
ipIpAddress ip(boolean resolve) Returns the IP address of the controller instance.- Parameters:
- resolve- whether to resolve the hostname
- Returns:
- IP address
 
 - 
hostString host() Returns the host name of the controller instance.- Returns:
- the host name of the controller instance
 
 - 
tcpPortint tcpPort() Returns the TCP port on which the node listens for connections.- Returns:
- TCP port
 
 
- 
 
-