Package | Description |
---|---|
org.apache.hadoop.hbase.master.balancer |
Modifier and Type | Method and Description |
---|---|
protected BaseLoadBalancer.Cluster |
BaseLoadBalancer.createCluster(List<ServerName> servers,
Collection<HRegionInfo> regions) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
StochasticLoadBalancer.areSomeRegionReplicasColocated(BaseLoadBalancer.Cluster c) |
protected boolean |
BaseLoadBalancer.areSomeRegionReplicasColocated(BaseLoadBalancer.Cluster c)
Subclasses should implement this to return true if the cluster has nodes that hosts
multiple replicas for the same region, or, if there are multiple racks and the same
rack hosts replicas of the same region
|
protected double |
StochasticLoadBalancer.computeCost(BaseLoadBalancer.Cluster cluster,
double previousCost)
This is the main cost function.
|
protected void |
StochasticLoadBalancer.initCosts(BaseLoadBalancer.Cluster cluster) |
protected boolean |
BaseLoadBalancer.needsBalance(BaseLoadBalancer.Cluster c) |
protected void |
StochasticLoadBalancer.updateCostsWithAction(BaseLoadBalancer.Cluster cluster,
BaseLoadBalancer.Cluster.Action action) |
Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.