|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.fractal.jmx.julia.stat.BasicStatController
Simple implementation of StatController
.
period
.
The value of this period must be positive and can be fixed by initialize
.
Field Summary | |
protected long |
_period
The minimal time interval used for rate re-computation, in milliseconds (default value is 5000). |
Constructor Summary | |
BasicStatController()
|
Method Summary | |
int |
getNumberOfMethodCall()
Gets the number of method calls. |
int |
getNumberOfMethodSuccess()
Gets the number of method calls that have "succeded". |
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. |
void |
statPostMethod(String method)
A postMethod called by the associated interceptor. |
void |
statPreMethod(String method)
A preMethod called by the associated interceptor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected long _period
Its value must be positive and can be fixed by initialize
.
Constructor Detail |
public BasicStatController()
Method Detail |
public void initialize(Tree args)
period
.
initialize
in interface Initializable
args
- the arguments to be used to initialize this object.
NumberFormatException
- if the first subtree is not a valid string representation of a long value.
IllegalStateException
- if the firts subtree does not represent a positive value.public void reset()
StatController
reset
in interface StatController
public int getNumberOfMethodCall()
StatController
getNumberOfMethodCall
in interface StatController
public int getNumberOfMethodSuccess()
StatController
getNumberOfMethodSuccess
in interface StatController
public double getRateOfMethodCall()
StatController
getRateOfMethodCall
in interface StatController
public double getRateOfMethodSuccess()
StatController
getRateOfMethodSuccess
in interface StatController
public void statPreMethod(String method)
method
- the method that is intercepted.public void statPostMethod(String method)
This postMethod increments the number of method calls that have been made on the server interfaces of the component (control interfaces excluded), and that have "succeded", i.e., that have not thrown an exception.
method
- the method that is intercepted.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |