Class MemberConfig

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

public class MemberConfig
extends NodeConfig
Member configuration.
  • Constructor Details

  • Method Details

    • getId

      public MemberId getId()
      Returns the member identifier.
      Overrides:
      getId in class NodeConfig
      Returns:
      the member identifier
    • setId

      public MemberConfig setId​(String id)
      Sets the member identifier.
      Overrides:
      setId in class NodeConfig
      Parameters:
      id - the member identifier
      Returns:
      the member configuration
    • setId

      public MemberConfig setId​(NodeId id)
      Description copied from class: NodeConfig
      Sets the node identifier.
      Overrides:
      setId in class NodeConfig
      Parameters:
      id - the node identifier
      Returns:
      the node configuration
    • setId

      public MemberConfig setId​(MemberId id)
      Sets the member identifier.
      Parameters:
      id - the member identifier
      Returns:
      the member configuration
    • setPort

      public MemberConfig setPort​(int port)
      Description copied from class: NodeConfig
      Sets the node port.
      Overrides:
      setPort in class NodeConfig
      Parameters:
      port - the node port
      Returns:
      the node configuration
    • setAddress

      public MemberConfig setAddress​(String address)
      Description copied from class: NodeConfig
      Sets the node address.
      Overrides:
      setAddress in class NodeConfig
      Parameters:
      address - the node address
      Returns:
      the node configuration
    • setAddress

      public MemberConfig setAddress​(io.atomix.utils.net.Address address)
      Description copied from class: NodeConfig
      Sets the node address.
      Overrides:
      setAddress in class NodeConfig
      Parameters:
      address - the node address
      Returns:
      the node configuration
    • getZoneId

      public String getZoneId()
      Returns the member zone.
      Returns:
      the member zone
    • setZoneId

      public MemberConfig setZoneId​(String zoneId)
      Sets the member zone.
      Parameters:
      zoneId - the member zone
      Returns:
      the member configuration
    • setZone

      public MemberConfig setZone​(String zone)
      Sets the member zone.
      Parameters:
      zone - the member zone
      Returns:
      the member configuration
    • getRackId

      public String getRackId()
      Returns the member rack.
      Returns:
      the member rack
    • setRackId

      public MemberConfig setRackId​(String rackId)
      Sets the member rack.
      Parameters:
      rackId - the member rack
      Returns:
      the member configuration
    • setRack

      public MemberConfig setRack​(String rack)
      Sets the member rack.
      Parameters:
      rack - the member rack
      Returns:
      the member configuration
    • getHostId

      public String getHostId()
      Returns the member host.
      Returns:
      the member host
    • setHostId

      public MemberConfig setHostId​(String hostId)
      Sets the member host.
      Parameters:
      hostId - the member host
      Returns:
      the member configuration
    • setHost

      public MemberConfig setHost​(String host)
      Description copied from class: NodeConfig
      Sets the node hostname.
      Overrides:
      setHost in class NodeConfig
      Parameters:
      host - the node hostname
      Returns:
      the node configuration
    • getProperties

      public Properties getProperties()
      Returns the member properties.
      Returns:
      the member properties
    • setProperties

      public MemberConfig setProperties​(Map<String,​String> map)
      Sets the member properties.
      Parameters:
      map - the member properties
      Returns:
      the member configuration
    • setProperties

      public MemberConfig setProperties​(Properties properties)
      Sets the member properties.
      Parameters:
      properties - the member properties
      Returns:
      the member configuration
    • setProperty

      public MemberConfig setProperty​(String key, String value)
      Sets a member property.
      Parameters:
      key - the property key to et
      value - the property value to et
      Returns:
      the member configuration