Interface BrokerClusterState

All Known Implementing Classes:
BrokerClusterStateImpl

public interface BrokerClusterState
  • Field Details

  • Method Details

    • getClusterSize

      int getClusterSize()
    • getPartitionsCount

      int getPartitionsCount()
    • getReplicationFactor

      int getReplicationFactor()
    • getLeaderForPartition

      int getLeaderForPartition(int partition)
    • getFollowersForPartition

      Set<Integer> getFollowersForPartition(int partition)
    • getInactiveNodesForPartition

      Set<Integer> getInactiveNodesForPartition(int partition)
    • getRandomBroker

      int getRandomBroker()
      Returns:
      the node id of a random broker or UNKNOWN_NODE_ID if no brokers are known
    • getPartitions

      List<Integer> getPartitions()
    • getBrokers

      List<Integer> getBrokers()
    • getBrokerAddress

      String getBrokerAddress(int brokerId)
    • getPartition

      int getPartition(int index)
    • getBrokerVersion

      String getBrokerVersion(int brokerId)
    • getPartitionHealth

      PartitionHealthStatus getPartitionHealth(int brokerId, int partition)