Class TestZooKeeper.MockLoadBalancer

java.lang.Object
org.apache.hadoop.hbase.master.balancer.BaseLoadBalancer
org.apache.hadoop.hbase.master.balancer.SimpleLoadBalancer
org.apache.hadoop.hbase.TestZooKeeper.MockLoadBalancer
All Implemented Interfaces:
org.apache.hadoop.hbase.conf.ConfigurationObserver, org.apache.hadoop.hbase.master.LoadBalancer, org.apache.hadoop.hbase.Stoppable
Enclosing class:
TestZooKeeper

static class TestZooKeeper.MockLoadBalancer extends org.apache.hadoop.hbase.master.balancer.SimpleLoadBalancer
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) static boolean
     

    Fields inherited from class org.apache.hadoop.hbase.master.balancer.BaseLoadBalancer

    BALANCER_DECISION_BUFFER_ENABLED, BALANCER_REJECTION_BUFFER_ENABLED, clusterStatus, DEFAULT_BALANCER_DECISION_BUFFER_ENABLED, DEFAULT_BALANCER_REJECTION_BUFFER_ENABLED, DEFAULT_HBASE_MASTER_LOADBALANCE_BYTABLE, isByTable, masterServerName, metricsBalancer, MIN_SERVER_BALANCE, provider, rackManager, regionFinder, slop, useRegionFinder

    Fields inherited from interface org.apache.hadoop.hbase.master.LoadBalancer

    BOGUS_SERVER_NAME, HBASE_RSGROUP_LOADBALANCER_CLASS
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Map<org.apache.hadoop.hbase.ServerName,List<org.apache.hadoop.hbase.client.RegionInfo>>
    retainAssignment(Map<org.apache.hadoop.hbase.client.RegionInfo,org.apache.hadoop.hbase.ServerName> regions, List<org.apache.hadoop.hbase.ServerName> servers)
     

    Methods inherited from class org.apache.hadoop.hbase.master.balancer.SimpleLoadBalancer

    balanceTable, loadConf, onConfigurationChange, preBalanceCluster

    Methods inherited from class org.apache.hadoop.hbase.master.balancer.BaseLoadBalancer

    balanceCluster, getConf, getDefaultSlop, idleRegionServerExist, initialize, isStopped, postMasterStartupInitialize, randomAssignment, regionOffline, regionOnline, roundRobinAssignment, setClusterInfoProvider, sloppyRegionServerExist, stop, toEnsumbleTableLoad, updateBalancerStatus, updateClusterMetrics

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.hadoop.hbase.master.LoadBalancer

    updateBalancerLoadInfo
  • Field Details

  • Constructor Details

  • Method Details

    • retainAssignment

      @NonNull public Map<org.apache.hadoop.hbase.ServerName,List<org.apache.hadoop.hbase.client.RegionInfo>> retainAssignment(Map<org.apache.hadoop.hbase.client.RegionInfo,org.apache.hadoop.hbase.ServerName> regions, List<org.apache.hadoop.hbase.ServerName> servers) throws org.apache.hadoop.hbase.HBaseIOException
      Specified by:
      retainAssignment in interface org.apache.hadoop.hbase.master.LoadBalancer
      Overrides:
      retainAssignment in class org.apache.hadoop.hbase.master.balancer.BaseLoadBalancer
      Throws:
      org.apache.hadoop.hbase.HBaseIOException