Class NodeConfig

java.lang.Object
io.atomix.cluster.NodeConfig
All Implemented Interfaces:
io.atomix.utils.config.Config
Direct Known Subclasses:
MemberConfig

public class NodeConfig
extends Object
implements io.atomix.utils.config.Config
Node configuration.
  • Constructor Details

  • Method Details

    • getId

      public NodeId getId()
      Returns the node identifier.
      Returns:
      the node identifier
    • setId

      public NodeConfig setId​(String id)
      Sets the node identifier.
      Parameters:
      id - the node identifier
      Returns:
      the node configuration
    • setId

      public NodeConfig setId​(NodeId id)
      Sets the node identifier.
      Parameters:
      id - the node identifier
      Returns:
      the node configuration
    • getHost

      public String getHost()
      Returns the node hostname.
      Returns:
      the node hostname
    • setHost

      public NodeConfig setHost​(String host)
      Sets the node hostname.
      Parameters:
      host - the node hostname
      Returns:
      the node configuration
    • getPort

      public int getPort()
      Returns the node port.
      Returns:
      the node port
    • setPort

      public NodeConfig setPort​(int port)
      Sets the node port.
      Parameters:
      port - the node port
      Returns:
      the node configuration
    • getAddress

      public io.atomix.utils.net.Address getAddress()
      Returns the node address.
      Returns:
      the node address
    • setAddress

      @Deprecated public NodeConfig setAddress​(String address)
      Deprecated.
      Sets the node address.
      Parameters:
      address - the node address
      Returns:
      the node configuration
    • setAddress

      @Deprecated public NodeConfig setAddress​(io.atomix.utils.net.Address address)
      Deprecated.
      Sets the node address.
      Parameters:
      address - the node address
      Returns:
      the node configuration