KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > admin > monitor > stats > PWCThreadPoolStats


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  * PWCThreadPoolStats.java
31  *
32  * Created on April 2, 2004, 10:19 AM
33  */

34
35 package com.sun.enterprise.admin.monitor.stats;
36
37 /**
38  *
39  * @author nsegura
40  */

41 import javax.management.j2ee.statistics.Stats JavaDoc;
42 import javax.management.j2ee.statistics.CountStatistic JavaDoc;
43 import com.sun.enterprise.admin.monitor.stats.StringStatistic;
44
45 /**
46  * Returns the statistical information associated with
47  * the HttpService thread pool
48  */

49 public interface PWCThreadPoolStats extends Stats JavaDoc {
50     
51     /**
52      * Returns the thread pool Id
53      * @return id
54      */

55     public StringStatistic getId();
56     
57     /**
58      * Returns the number of threads that are currently idle
59      * @return idle threads
60      */

61     public CountStatistic JavaDoc getCountThreadsIdle();
62     
63     /**
64      * Returns current number of threads
65      * @return current threads
66      */

67     public CountStatistic JavaDoc getCountThreads();
68     
69     /**
70      * Returns the maximum number of native threads allowed in the thread pool
71      * @return max number of threads allowed
72      */

73     public CountStatistic JavaDoc getMaxThreads();
74     
75     /**
76      * Returns the current number of requests waiting for a native thread
77      * @return queued requests
78      */

79     public CountStatistic JavaDoc getCountQueued();
80     
81     /**
82      * Returns the highest number of requests that were ever queued up
83      * simultaneously for the use of a native thread since the server
84      * was started
85      */

86     public CountStatistic JavaDoc getPeakQueued();
87     
88     /**
89      * Returns the maximum number of requests that can be queued at one
90      * time to wait for a native thread
91      * @return max number of request to be queued
92      */

93     public CountStatistic JavaDoc getMaxQueued();
94     
95 }
96
Popular Tags