mirror of https://github.com/apache/druid.git
fix to runtime params
This commit is contained in:
parent
cf3e6da799
commit
cd3b62e123
|
@ -207,7 +207,8 @@ public class DruidMasterRuntimeParams
|
||||||
mergeSegmentsLimit,
|
mergeSegmentsLimit,
|
||||||
maxSegmentsToMove,
|
maxSegmentsToMove,
|
||||||
balancerReferenceTimestamp,
|
balancerReferenceTimestamp,
|
||||||
emitStats
|
emitStats,
|
||||||
|
strategyFactory
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -268,7 +269,8 @@ public class DruidMasterRuntimeParams
|
||||||
int mergeSegmentsLimit,
|
int mergeSegmentsLimit,
|
||||||
int maxSegmentsToMove,
|
int maxSegmentsToMove,
|
||||||
DateTime balancerReferenceTimestamp,
|
DateTime balancerReferenceTimestamp,
|
||||||
boolean emitBalancingCostParams
|
boolean emitBalancingCostParams,
|
||||||
|
BalancerStrategyFactory strategyFactory
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
this.startTime = startTime;
|
this.startTime = startTime;
|
||||||
|
@ -287,6 +289,7 @@ public class DruidMasterRuntimeParams
|
||||||
this.maxSegmentsToMove = maxSegmentsToMove;
|
this.maxSegmentsToMove = maxSegmentsToMove;
|
||||||
this.balancerReferenceTimestamp = balancerReferenceTimestamp;
|
this.balancerReferenceTimestamp = balancerReferenceTimestamp;
|
||||||
this.emitBalancingCostParams = emitBalancingCostParams;
|
this.emitBalancingCostParams = emitBalancingCostParams;
|
||||||
|
this.strategyFactory=strategyFactory;
|
||||||
}
|
}
|
||||||
|
|
||||||
public DruidMasterRuntimeParams build()
|
public DruidMasterRuntimeParams build()
|
||||||
|
@ -413,5 +416,11 @@ public class DruidMasterRuntimeParams
|
||||||
this.balancerReferenceTimestamp = balancerReferenceTimestamp;
|
this.balancerReferenceTimestamp = balancerReferenceTimestamp;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Builder withBalancerStrategyFactory(BalancerStrategyFactory strategyFactory)
|
||||||
|
{
|
||||||
|
this.strategyFactory=strategyFactory;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue