public class DruidCoordinatorBalancer extends Object implements DruidCoordinatorHelper
Modifier and Type | Field and Description |
---|---|
protected DruidCoordinator |
coordinator |
protected Map<String,ConcurrentHashMap<String,BalancerSegmentHolder>> |
currentlyMovingSegments |
protected static com.metamx.emitter.EmittingLogger |
log |
static Comparator<ServerHolder> |
percentUsedComparator |
Constructor and Description |
---|
DruidCoordinatorBalancer(DruidCoordinator coordinator) |
Modifier and Type | Method and Description |
---|---|
protected void |
moveSegment(BalancerSegmentHolder segment,
ImmutableDruidServer toServer,
DruidCoordinatorRuntimeParams params) |
protected void |
reduceLifetimes(String tier) |
DruidCoordinatorRuntimeParams |
run(DruidCoordinatorRuntimeParams params) |
public static final Comparator<ServerHolder> percentUsedComparator
protected static final com.metamx.emitter.EmittingLogger log
protected final DruidCoordinator coordinator
protected final Map<String,ConcurrentHashMap<String,BalancerSegmentHolder>> currentlyMovingSegments
public DruidCoordinatorBalancer(DruidCoordinator coordinator)
protected void reduceLifetimes(String tier)
public DruidCoordinatorRuntimeParams run(DruidCoordinatorRuntimeParams params)
run
in interface DruidCoordinatorHelper
protected void moveSegment(BalancerSegmentHolder segment, ImmutableDruidServer toServer, DruidCoordinatorRuntimeParams params)
Copyright © 2011–2015. All rights reserved.