Package org.apache.heron.api.utils
Class DefaultMaxSpoutPendingTuner
- java.lang.Object
-
- org.apache.heron.api.utils.DefaultMaxSpoutPendingTuner
-
public class DefaultMaxSpoutPendingTuner extends Object
This is a class that helps to auto tune the max spout pending value
-
-
Constructor Summary
Constructors Constructor Description DefaultMaxSpoutPendingTuner(float autoTuneFactor, double progressBound)Conv constructor when initing from a non-set initial valueDefaultMaxSpoutPendingTuner(Long maxSpoutPending, float autoTuneFactor, double progressBound)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidautoTune(Long progress)Tune max default max spout pending based on progressLongget()static booleanlessThanNum(Long val, Long prevVal, double bound)static booleanmoreThanNum(Long val, Long prevVal, double bound)static booleansimilarToNum(Long val, Long prevVal, double bound)
-
-
-
Constructor Detail
-
DefaultMaxSpoutPendingTuner
public DefaultMaxSpoutPendingTuner(float autoTuneFactor, double progressBound)Conv constructor when initing from a non-set initial value
-
DefaultMaxSpoutPendingTuner
public DefaultMaxSpoutPendingTuner(Long maxSpoutPending, float autoTuneFactor, double progressBound)
-
-