KickJava   Java API By Example, From Geeks To Geeks.

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


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 package com.sun.enterprise.admin.monitor.stats;
30
31 import javax.management.j2ee.statistics.RangeStatistic JavaDoc;
32 import javax.management.j2ee.statistics.CountStatistic JavaDoc;
33 import javax.management.j2ee.statistics.Stats JavaDoc;
34
35 /**
36  * A Stats interface to represent the statistical data about
37  * Work Management in the Connector Module
38  *
39  * @author Murali Vempaty
40  * @since SJSAS8.1
41  */

42
43 public interface ConnectorWorkMgmtStats extends Stats JavaDoc {
44     
45     /**
46      * returns the current, low & high counts of the work objects executed for
47      * a connector module since the last reset. This is an aggregate of all the
48      * doWork, doSchedule, and doStart work objects initiated by the connector
49      * module
50      * @return RangeStatistic
51      */

52     public RangeStatistic JavaDoc getActiveWorkCount();
53     
54     /**
55      * indicates the current, high & low of the number of work objects waiting
56      * in the work queue before executing, since the last reset
57      * @return RangeStatistic
58      */

59     public RangeStatistic JavaDoc getWaitQueueLength();
60     
61     /**
62      * indicates the longest and shorted wait of a work object in the work queue
63      * before it gets executed, since the last reset
64      * @return RangeStatistic
65      */

66     public RangeStatistic JavaDoc getWorkRequestWaitTime();
67     
68     /**
69      * indicates the number of work objects submitted by a connector module
70      * for execution, since the last reset
71      * @return CountStatistic
72      */

73     public CountStatistic JavaDoc getSubmittedWorkCount();
74     
75     /**
76      * indicates the number of work objects rejected by the Application Server
77      * per connector module, since the last reset.
78      * @return CountStatistic
79      */

80     public CountStatistic JavaDoc getRejectedWorkCount();
81     
82     /**
83      * indicates the number of work objects that were completed by the
84      * Application Server per connector module, since the last reset.
85      * @return CountStatistic
86      */

87     public CountStatistic JavaDoc getCompletedWorkCount();
88     
89 }
90
Popular Tags