public class RandomBalancerStrategy extends Object implements BalancerStrategy
Constructor and Description |
---|
RandomBalancerStrategy() |
Modifier and Type | Method and Description |
---|---|
void |
emitStats(String tier,
CoordinatorStats stats,
List<ServerHolder> serverHolderList) |
ServerHolder |
findNewSegmentHomeBalancer(io.druid.timeline.DataSegment proposalSegment,
List<ServerHolder> serverHolders) |
ServerHolder |
findNewSegmentHomeReplicator(io.druid.timeline.DataSegment proposalSegment,
List<ServerHolder> serverHolders) |
BalancerSegmentHolder |
pickSegmentToMove(List<ServerHolder> serverHolders) |
public ServerHolder findNewSegmentHomeReplicator(io.druid.timeline.DataSegment proposalSegment, List<ServerHolder> serverHolders)
findNewSegmentHomeReplicator
in interface BalancerStrategy
public ServerHolder findNewSegmentHomeBalancer(io.druid.timeline.DataSegment proposalSegment, List<ServerHolder> serverHolders)
findNewSegmentHomeBalancer
in interface BalancerStrategy
public BalancerSegmentHolder pickSegmentToMove(List<ServerHolder> serverHolders)
pickSegmentToMove
in interface BalancerStrategy
public void emitStats(String tier, CoordinatorStats stats, List<ServerHolder> serverHolderList)
emitStats
in interface BalancerStrategy
Copyright © 2011–2015. All rights reserved.