Interface BrokerInfo

All Known Implementing Classes:
BrokerInfoImpl

public interface BrokerInfo
  • Method Details

    • getNodeId

      @Deprecated int getNodeId()
      Deprecated.
      use getMemberId() instead
      Returns:
      the node if of the broker
    • getZone

      String getZone()
      Returns:
      the zone of the broker, or null when the cluster is not zone-aware
    • getMemberId

      String getMemberId()
      Returns:
      the member ID of the broker: "$zone_$nodeId" when the cluster is zone-aware (e.g. "us-east_0"), or the bare node ID otherwise (e.g. "0")
    • getHost

      String getHost()
      Returns:
      the address host of the broker
    • getPort

      int getPort()
      Returns:
      the address port of the broker
    • getAddress

      String getAddress()
      Returns:
      the address (host+port) of the broker
    • getVersion

      String getVersion()
      Returns:
      the version of the broker
    • getPartitions

      List<PartitionInfo> getPartitions()
      Returns:
      all partitions of the broker