类 GreedyLeaderBalancer

  • 所有已实现的接口:
    ILeaderBalancer

    public class GreedyLeaderBalancer
    extends java.lang.Object
    implements ILeaderBalancer
    Leader distribution balancer that uses greedy algorithm
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      java.util.Map<org.apache.iotdb.common.rpc.thrift.TConsensusGroupId,​java.lang.Integer> generateOptimalLeaderDistribution​(java.util.Map<org.apache.iotdb.common.rpc.thrift.TConsensusGroupId,​org.apache.iotdb.common.rpc.thrift.TRegionReplicaSet> regionReplicaSetMap, java.util.Map<org.apache.iotdb.common.rpc.thrift.TConsensusGroupId,​java.lang.Integer> regionLeaderMap, java.util.Set<java.lang.Integer> disabledDataNodeSet)
      Generate an optimal leader distribution.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • GreedyLeaderBalancer

        public GreedyLeaderBalancer()
    • 方法详细资料

      • generateOptimalLeaderDistribution

        public java.util.Map<org.apache.iotdb.common.rpc.thrift.TConsensusGroupId,​java.lang.Integer> generateOptimalLeaderDistribution​(java.util.Map<org.apache.iotdb.common.rpc.thrift.TConsensusGroupId,​org.apache.iotdb.common.rpc.thrift.TRegionReplicaSet> regionReplicaSetMap,
                                                                                                                                             java.util.Map<org.apache.iotdb.common.rpc.thrift.TConsensusGroupId,​java.lang.Integer> regionLeaderMap,
                                                                                                                                             java.util.Set<java.lang.Integer> disabledDataNodeSet)
        从接口复制的说明: ILeaderBalancer
        Generate an optimal leader distribution.
        指定者:
        generateOptimalLeaderDistribution 在接口中 ILeaderBalancer
        参数:
        regionReplicaSetMap - All RegionGroups the cluster currently have
        regionLeaderMap - The current leader of each RegionGroup
        disabledDataNodeSet - The DataNodes that currently unable to work(can't place RegionGroup-leader)
        返回:
        Map, The optimal leader distribution