KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > web > monitor > PwcServletStats


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
9  * glassfish/bootstrap/legal/CDDLv1.0.txt.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * Header Notice in each file and include the License file
15  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
16  * If applicable, add the following below the CDDL Header,
17  * with the fields enclosed by brackets [] replaced by
18  * you own identifying information:
19  * "Portions Copyrighted [year] [name of copyright owner]"
20  *
21  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22  */

23
24 /*
25  * Copyright 2004-2005 Sun Microsystems, Inc. All rights reserved.
26  * Use is subject to license terms.
27  */

28
29 /*
30  * $Id: PwcServletStats.java,v 1.3 2005/12/25 04:27:29 tcfujii Exp $
31  * $Date: 2005/12/25 04:27:29 $
32  * $Revision: 1.3 $
33  *
34  */

35
36 package com.sun.enterprise.web.monitor;
37
38 import java.io.Serializable JavaDoc;
39
40 /**
41  * Monitoring interface for servlets.
42  */

43 public interface PwcServletStats extends Serializable JavaDoc {
44
45     /**
46      * Gets the number of requests processed by the servlet.
47      *
48      * @return Number of processed requests
49      */

50     public int getRequestCount();
51     
52     /**
53      * Gets the total execution time of the servlet's service method.
54      *
55      * @return Total execution time of the servlet's service method
56      */

57     public long getProcessingTimeMillis();
58
59     /**
60      * Gets the minimum request processing time of the servlet.
61      *
62      * @return Minimum request processing time
63      */

64     public long getMinTimeMillis();
65
66     /**
67      * Gets the maximum request processing time of the servlet.
68      *
69      * @return Maximum request processing time
70      */

71     public long getMaxTimeMillis();
72
73     /**
74      * Gets the number of requests processed by the servlet that have resulted
75      * in errors.
76      *
77      * @return Error count
78      */

79     public int getErrorCount();
80     
81 }
82
Popular Tags