org.objectweb.fractal.jmx.julia.stat
Interface StatController

All Known Implementing Classes:
BasicStatController

public interface StatController

An interface for observing method calls. More precisely, a controller implementing this interface returns the number and the rate of method calls that have been made on the server interfaces of a component (control interfaces excluded).

Version:
0.1

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 reset()
          Resets (to zero) the values returned by this controller.
 

Method Detail

getNumberOfMethodCall

public int getNumberOfMethodCall()
Gets the number of method calls.

Returns:
the number of method calls that have been made on the server interfaces of the component (control interfaces excluded).

getNumberOfMethodSuccess

public int getNumberOfMethodSuccess()
Gets the number of method calls that have "succeded".

Returns:
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.

getRateOfMethodCall

public double getRateOfMethodCall()
Gets the rate of method calls.

Returns:
the rate of method calls (number / second) that have been made on the server interfaces of the component (control interfaces excluded).

getRateOfMethodSuccess

public double getRateOfMethodSuccess()
Gets the rate of method calls that have "succeded".

Returns:
the rate of method calls (number / second) 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.

reset

public void reset()
Resets (to zero) the values returned by this controller.