|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.objectweb.fractal.jmx.julia.stat.BasicStatController
org.objectweb.fractal.jmx.julia.stat.ExponentialSmoothingStatController
Extends BasicStatController with an exponential smoothing method for the rate computation.
The rate values returned by this implementation are computed as follows:
ST = (alpha * xT) + ((1 - alpha) * ST-1)
where:
BasicStatController.
smoothing constant.
Its value must be in the interval [0-1] and can be fixed by initialize.
BasicStatController.
BasicStatController.
| Field Summary | |
|---|---|
protected double |
_alpha
Smoothing constant (default value is 0.5). |
| Fields inherited from class org.objectweb.fractal.jmx.julia.stat.BasicStatController |
|---|
_period |
| Constructor Summary | |
|---|---|
ExponentialSmoothingStatController()
|
|
| Method Summary | |
|---|---|
double |
getRateOfMethodCall()
Gets the rate of method calls. |
double |
getRateOfMethodSuccess()
Gets the rate of method calls that have "succeded". |
void |
initialize(Tree args)
Initializes this object with the given arguments. |
void |
reset()
Resets (to zero) the values returned by this controller. |
| Methods inherited from class org.objectweb.fractal.jmx.julia.stat.BasicStatController |
|---|
getNumberOfMethodCall, getNumberOfMethodSuccess, statPostMethod, statPreMethod |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected double _alpha
Its value must be in the interval [0-1] and can be fixed by initialize.
| Constructor Detail |
public ExponentialSmoothingStatController()
| Method Detail |
public void initialize(Tree args)
period.
The second subtree (if any) must represent the value of the smoothing constant.
initialize in interface Initializableinitialize in class BasicStatControllerargs - the arguments to be used to initialize this object.
NumberFormatException - if the first subtree is not a valid string representation of a long value,
or if the second subtree is not a valid string representation of a double value.
IllegalStateException - if the firts subtree does not represent a positive value
or if the second subtree does not represent a value in the interval [0-1].public double getRateOfMethodCall()
StatController
getRateOfMethodCall in interface StatControllergetRateOfMethodCall in class BasicStatControllerpublic double getRateOfMethodSuccess()
StatController
getRateOfMethodSuccess in interface StatControllergetRateOfMethodSuccess in class BasicStatControllerpublic void reset()
StatController
reset in interface StatControllerreset in class BasicStatController
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||