Interface OnlineInstanceFinder

    • Method Detail

      • getReadyToServeInstances

        java.util.List<Instance> getReadyToServeInstances​(java.lang.String kafkaTopic,
                                                          int partitionId)
        Query instances that belong to given kafka topic and partition. All of instances in result are ready to serve.
      • getReadyToServeInstances

        java.util.List<Instance> getReadyToServeInstances​(PartitionAssignment partitionAssignment,
                                                          int partitionId)
        Look for ready to serve instances on the given partition assignment. This is normally used to predict if a potential partition assignment will cause any replica unavailability issue
      • getWorkingInstances

        java.util.List<Instance> getWorkingInstances​(java.lang.String kafkaTopic,
                                                     int partitionId)
        Query instances that are online (in leader or follower state), but not necessarily ready to serve yet.
      • getAllInstances

        java.util.Map<ExecutionStatus,​java.util.List<Instance>> getAllInstances​(java.lang.String kafkaTopic,
                                                                                      int partitionId)
        Query instances that belong to given kafka topic and partition.
        Returns:
        a map that has HelixState as the key and list of instances as the value
      • getNumberOfPartitions

        int getNumberOfPartitions​(java.lang.String kafkaTopic)
        Query number of partition in given kafka topic.