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 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