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 void
autoTune(Long progress)
Tune max default max spout pending based on progressLong
get()
static boolean
lessThanNum(Long val, Long prevVal, double bound)
static boolean
moreThanNum(Long val, Long prevVal, double bound)
static boolean
similarToNum(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)
-
-