fix to runtime params

This commit is contained in:
Dhruv Parthasarathy 2013-08-01 17:01:50 -07:00
parent cf3e6da799
commit cd3b62e123
1 changed files with 11 additions and 2 deletions

View File

@ -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;
}
} }
} }