move rebalance only when active logic into node allocation, add canRebalance hook point

This commit is contained in:
kimchy 2010-08-23 18:28:35 +03:00
parent 149962691e
commit 78b6879ecd
1 changed files with 2 additions and 1 deletions

View File

@ -23,6 +23,7 @@ import org.elasticsearch.cluster.node.DiscoveryNodes;
import org.elasticsearch.cluster.routing.MutableShardRouting;
import org.elasticsearch.cluster.routing.RoutingNodes;
import org.elasticsearch.cluster.routing.ShardRouting;
import org.elasticsearch.common.inject.Inject;
import org.elasticsearch.common.settings.Settings;
import java.util.List;
@ -34,7 +35,7 @@ import java.util.List;
*/
public class RebalanceOnlyWhenActiveNodeAllocation extends NodeAllocation {
public RebalanceOnlyWhenActiveNodeAllocation(Settings settings) {
@Inject public RebalanceOnlyWhenActiveNodeAllocation(Settings settings) {
super(settings);
}