internal ExponentiallySmoothedTaskRuntimeEstimator(long lambda, ExponentiallySmoothedTaskRuntimeEstimator.SmoothedValue smoothedValue) : base() { this.smoothedValue = smoothedValue; this.lambda = lambda; }
public override void Contextualize(Configuration conf, AppContext context) { base.Contextualize(conf, context); lambda = conf.GetLong(MRJobConfig.MrAmTaskEstimatorSmoothLambdaMs, MRJobConfig.DefaultMrAmTaskEstimatorSmoothLambdaMs ); smoothedValue = conf.GetBoolean(MRJobConfig.MrAmTaskEstimatorExponentialRateEnable , true) ? ExponentiallySmoothedTaskRuntimeEstimator.SmoothedValue.Rate : ExponentiallySmoothedTaskRuntimeEstimator.SmoothedValue .TimePerUnitProgress; }