コード例 #1
0
 internal ExponentiallySmoothedTaskRuntimeEstimator(long lambda, ExponentiallySmoothedTaskRuntimeEstimator.SmoothedValue
                                                    smoothedValue)
     : base()
 {
     this.smoothedValue = smoothedValue;
     this.lambda        = lambda;
 }
コード例 #2
0
 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;
 }