public static class TestBaseLoadBalancer.MockBalancer extends org.apache.hadoop.hbase.master.balancer.BaseLoadBalancer
BALANCER_DECISION_BUFFER_ENABLED, clusterStatus, config, DEFAULT_BALANCER_DECISION_BUFFER_ENABLED, IDLE_SERVER_PREDICATOR, isByTable, maintenanceMode, masterServerName, metricsBalancer, MIN_SERVER_BALANCE, namedQueueRecorder, onlySystemTablesOnMaster, overallSlop, rackManager, regionFinder, services, slop, useRegionFinder
Constructor and Description |
---|
MockBalancer() |
Modifier and Type | Method and Description |
---|---|
List<org.apache.hadoop.hbase.master.RegionPlan> |
balanceCluster(Map<org.apache.hadoop.hbase.TableName,Map<org.apache.hadoop.hbase.ServerName,List<org.apache.hadoop.hbase.client.RegionInfo>>> loadOfAllTable) |
List<org.apache.hadoop.hbase.master.RegionPlan> |
balanceTable(org.apache.hadoop.hbase.TableName tableName,
Map<org.apache.hadoop.hbase.ServerName,List<org.apache.hadoop.hbase.client.RegionInfo>> loadOfOneTable) |
areSomeRegionReplicasColocated, assignMasterSystemRegions, balanceMasterRegions, createCluster, getConf, getRegionAssignmentsByServer, idleRegionServerExist, initialize, isStopped, needsBalance, onConfigurationChange, postMasterStartupInitialize, randomAssignment, regionOffline, regionOnline, retainAssignment, roundRobinAssignment, setClusterMetrics, setConf, setMasterServices, setRackManager, setSlop, shouldBeOnMaster, stop, updateBalancerStatus
public MockBalancer()
public List<org.apache.hadoop.hbase.master.RegionPlan> balanceCluster(Map<org.apache.hadoop.hbase.TableName,Map<org.apache.hadoop.hbase.ServerName,List<org.apache.hadoop.hbase.client.RegionInfo>>> loadOfAllTable)
balanceCluster
in interface org.apache.hadoop.hbase.master.LoadBalancer
balanceCluster
in class org.apache.hadoop.hbase.master.balancer.BaseLoadBalancer
public List<org.apache.hadoop.hbase.master.RegionPlan> balanceTable(org.apache.hadoop.hbase.TableName tableName, Map<org.apache.hadoop.hbase.ServerName,List<org.apache.hadoop.hbase.client.RegionInfo>> loadOfOneTable)
balanceTable
in interface org.apache.hadoop.hbase.master.LoadBalancer
balanceTable
in class org.apache.hadoop.hbase.master.balancer.BaseLoadBalancer
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.