KickJava   Java API By Example, From Geeks To Geeks.

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


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 /* MutableTimeStatistic.java
30  * $Id: MutableTimeStatistic.java,v 1.2 2005/12/25 03:52:20 tcfujii Exp $
31  * $Revision: 1.2 $
32  * $Date: 2005/12/25 03:52:20 $
33  */

34
35
36 package com.sun.enterprise.admin.monitor.stats;
37
38 /**
39  * Provides mutable nature to the {@link TimeStatistic}. Like other MutableStatistic
40  * interfaces, it does have the state to calculate the specific statistical data
41  * in {@link TimeStatistic}. Unlike other mutable statistics though, in this interface
42  * there is some consideration of a sequence. Once an instance of this interface
43  * is created, subsequent call to {@link #incrementCount} has a twofold effect:
44  * <ul>
45  * <li> Increments the count for number of times the operation is executed by 1 </li>
46  * <li> Keeps a count of maximum/minimum/total execution time </li>
47  * <ul>
48  * @author <a HREF="mailto:Kedar.Mhaswade@sun.com">Kedar Mhaswade</a>
49  * @since S1AS8.0
50  * @version $Revision: 1.2 $
51  */

52 public interface MutableTimeStatistic extends MutableStatistic {
53     
54     /**
55      * Increments the count for number of times an operation is called by 1 and
56      * processes the given parameter in a certain manner.
57      */

58     public void incrementCount(long currentExecutionTimeMillis);
59 }
60
Popular Tags