Class ZkDynamicConfig.Server

  • Enclosing class:
    ZkDynamicConfig

    public static class ZkDynamicConfig.Server
    extends Object
    Object representing one line in Zk dynamic config
    • Field Detail

      • serverId

        public final Integer serverId
      • address

        public final String address
      • leaderPort

        public final Integer leaderPort
      • leaderElectionPort

        public final Integer leaderElectionPort
      • role

        public final String role
      • clientPortAddress

        public final String clientPortAddress
      • clientPort

        public final Integer clientPort
    • Method Detail

      • resolveClientPortAddress

        public String resolveClientPortAddress()
        Resolve the most likely address, first trying 'clientPortAddress', falling back to 'address'
        Returns:
        a string with client address, without port