|
|||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
IMonitor.java | - | - | - | - |
|
1 | // Copyright 2004, 2005 The Apache Software Foundation | |
2 | // | |
3 | // Licensed under the Apache License, Version 2.0 (the "License"); | |
4 | // you may not use this file except in compliance with the License. | |
5 | // You may obtain a copy of the License at | |
6 | // | |
7 | // http://www.apache.org/licenses/LICENSE-2.0 | |
8 | // | |
9 | // Unless required by applicable law or agreed to in writing, software | |
10 | // distributed under the License is distributed on an "AS IS" BASIS, | |
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
12 | // See the License for the specific language governing permissions and | |
13 | // limitations under the License. | |
14 | ||
15 | package org.apache.tapestry.engine; | |
16 | ||
17 | /** | |
18 | * Basic support for application monitoring and metrics. This interface defines events; the | |
19 | * implementation decides what to do with them (such as record them to a database). | |
20 | * | |
21 | * @author Howard Lewis Ship | |
22 | * @deprecated To be removed in 4.1 with no direct replacement. | |
23 | */ | |
24 | ||
25 | public interface IMonitor | |
26 | { | |
27 | /** | |
28 | * Invoked before constructing a page. | |
29 | */ | |
30 | ||
31 | public void pageCreateBegin(String pageName); | |
32 | ||
33 | /** | |
34 | * Invoked after successfully constructing a page and all of its components. | |
35 | */ | |
36 | ||
37 | public void pageCreateEnd(String pageName); | |
38 | ||
39 | /** | |
40 | * Invoked when a page is loaded. This includes time to locate or create an instance of the page | |
41 | * and rollback its state (to any previously recorded value). | |
42 | */ | |
43 | ||
44 | public void pageLoadBegin(String pageName); | |
45 | ||
46 | /** | |
47 | * Invoked once a page is completely loaded and rolled back to its prior state. | |
48 | */ | |
49 | ||
50 | public void pageLoadEnd(String pageName); | |
51 | ||
52 | /** | |
53 | * Invoked before a page render begins. | |
54 | */ | |
55 | ||
56 | public void pageRenderBegin(String pageName); | |
57 | ||
58 | /** | |
59 | * Invoked after a page has succesfully rendered. | |
60 | */ | |
61 | ||
62 | public void pageRenderEnd(String pageName); | |
63 | ||
64 | /** | |
65 | * Invoked before a page rewind (to respond to an action) begins. | |
66 | */ | |
67 | ||
68 | public void pageRewindBegin(String pageName); | |
69 | ||
70 | /** | |
71 | * Invoked after a page has succesfully been rewound (which includes any activity related to the | |
72 | * action listener). | |
73 | */ | |
74 | ||
75 | public void pageRewindEnd(String pageName); | |
76 | ||
77 | /** | |
78 | * Invoked when a service begins processing. | |
79 | */ | |
80 | ||
81 | public void serviceBegin(String serviceName, String detailMessage); | |
82 | ||
83 | /** | |
84 | * Invoked when a service successfully ends. | |
85 | */ | |
86 | ||
87 | public void serviceEnd(String serviceName); | |
88 | ||
89 | /** | |
90 | * Invoked when a service throws an exception rather than completing normally. Processing of the | |
91 | * request may continue with the display of an exception page. | |
92 | * <p> | |
93 | * serviceException() is always invoked <em>before</em> {@link #serviceEnd(String)}. | |
94 | */ | |
95 | ||
96 | public void serviceException(Throwable exception); | |
97 | ||
98 | /** | |
99 | * Invoked when a session is initiated. This is typically done from the implementation of the | |
100 | * home service. | |
101 | */ | |
102 | ||
103 | public void sessionBegin(); | |
104 | } |
|