KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > stat > StatController


1 /***
2  * Julia: France Telecom's implementation of the Fractal API
3  * Copyright (C) 2001-2002 France Telecom R&D
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18  *
19  * Contact: Eric.Bruneton@rd.francetelecom.com
20  *
21  * Author: Eric Bruneton
22  */

23
24 package stat;
25
26 public interface StatController {
27
28   /**
29    * Returns the total number of method calls that have been made on the server
30    * interfaces of the component (control interfaces excluded).
31    *
32    * @return the total number of method calls that have been made on the server
33    * interfaces of the component (control interfaces excluded).
34    */

35
36   int getNumberOfMethodCall ();
37
38   /**
39    * Returns the total number of method calls that have been made on the server
40    * interfaces of the component (control interfaces excluded), and that have
41    * "succeded", i.e., that have not thrown an exception.
42    *
43    * @return the total number of method calls that have been made on the server
44    * interfaces of the component (control interfaces excluded), and that
45    * have "succeded", i.e., that have not thrown an exception.
46    */

47
48   int getNumberOfMethodSuccess ();
49
50   /**
51    * Returns the number of field read accesses that have been made in the
52    * component.
53    *
54    * @return the number of field read accesses that have been made in the
55    * component.
56    */

57
58   int getNumberOfFieldRead ();
59
60   /**
61    * Returns the number of field write accesses that have been made in the
62    * component.
63    *
64    * @return the number of field write accesses that have been made in the
65    * component.
66    */

67
68   int getNumberOfFieldWrite ();
69
70   /**
71    * Returns the total execution time, in milliseconds, of the method calls that
72    * have been made on the server interfaces of the component (control
73    * interfaces excluded), and that have "succeded", i.e., that have not thrown
74    * an exception.
75    *
76    * @return the total execution time, in milliseconds, of the method calls that
77    * have been made on the server interfaces of the component (control
78    * interfaces excluded), and that have "succeded", i.e., that have not
79    * thrown an exception.
80    */

81
82   long getTotalExecutionTime ();
83 }
84
Popular Tags