KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > geronimo > jetty > JettyContainer


1 /**
2  *
3  * Copyright 2003-2004 The Apache Software Foundation
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */

17
18 package org.apache.geronimo.jetty;
19
20 import org.mortbay.http.HttpContext;
21 import org.mortbay.http.HttpListener;
22 import org.mortbay.http.RequestLog;
23 import org.mortbay.http.UserRealm;
24
25 /**
26  * @version $Rev: 154910 $ $Date: 2005-02-22 15:15:32 -0800 (Tue, 22 Feb 2005) $
27  */

28 public interface JettyContainer {
29     void addListener(HttpListener listener);
30
31     void removeListener(HttpListener listener);
32
33     void addContext(HttpContext context);
34
35     void removeContext(HttpContext context);
36
37     void addRealm(UserRealm realm);
38
39     void removeRealm(UserRealm realm);
40
41     void resetStatistics();
42
43     void setCollectStatistics(boolean on);
44
45     boolean getCollectStatistics();
46
47     long getCollectStatisticsStarted();
48
49     int getConnections();
50
51     int getConnectionsOpen();
52
53     int getConnectionsOpenMax();
54
55     long getConnectionsDurationAve();
56
57     long getConnectionsDurationMax();
58
59     int getConnectionsRequestsAve();
60
61     int getConnectionsRequestsMax();
62
63     int getErrors();
64
65     int getRequests();
66
67     int getRequestsActive();
68
69     int getRequestsActiveMax();
70
71     long getRequestsDurationAve();
72
73     long getRequestsDurationMax();
74
75     void setRequestLog(RequestLog log);
76
77     /* ------------------------------------------------------------ */
78     RequestLog getRequestLog();
79 }
80
Popular Tags