public static class TestBaseLoadBalancer.MockBalancer extends BaseLoadBalancer
BaseLoadBalancer.ClusterclusterStatus, config, masterServerName, metricsBalancer, rackManager, regionFinder, services, slop, TABLES_ON_MASTER, tablesOnMasterBOGUS_SERVER_NAME| Constructor and Description |
|---|
MockBalancer() |
| Modifier and Type | Method and Description |
|---|---|
List<RegionPlan> |
balanceCluster(Map<ServerName,List<HRegionInfo>> clusterState)
Perform the major balance operation
|
List<RegionPlan> |
balanceCluster(TableName tableName,
Map<ServerName,List<HRegionInfo>> clusterState)
Perform the major balance operation
|
areSomeRegionReplicasColocated, assignMasterRegions, balanceMasterRegions, createCluster, getConf, getRegionAssignmentsByServer, getTablesOnMaster, immediateAssignment, initialize, isStopped, needsBalance, onConfigurationChange, randomAssignment, regionOffline, regionOnline, retainAssignment, roundRobinAssignment, setClusterStatus, setConf, setMasterServices, setRackManager, setSlop, shouldBeOnMaster, stop, tablesOnMasterpublic List<RegionPlan> balanceCluster(Map<ServerName,List<HRegionInfo>> clusterState)
LoadBalancerpublic List<RegionPlan> balanceCluster(TableName tableName, Map<ServerName,List<HRegionInfo>> clusterState) throws HBaseIOException
LoadBalancerHBaseIOException