KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jivesoftware > database > ProfiledConnectionEntry


1 /**
2  * $RCSfile: ProfiledConnectionEntry.java,v $
3  * $Revision: 1.1 $
4  * $Date: 2004/10/21 06:08:42 $
5  *
6  * Copyright (C) 2004 Jive Software. All rights reserved.
7  *
8  * This software is published under the terms of the GNU Public License (GPL),
9  * a copy of which is included in this distribution.
10  */

11
12 package org.jivesoftware.database;
13
14 /**
15  * Simple class for tracking profiling stats for individual SQL queries.
16  *
17  * @author Jive Software
18  */

19 public class ProfiledConnectionEntry {
20     /**
21      * The SQL query.
22      */

23     public String JavaDoc sql;
24
25     /**
26      * Number of times the query has been executed.
27      */

28     public int count;
29
30     /**
31      * The total time spent executing the query (in milliseconds).
32      */

33     public int totalTime;
34
35     public ProfiledConnectionEntry(String JavaDoc sql) {
36         this.sql = sql;
37         count = 0;
38         totalTime = 0;
39     }
40 }
41
Popular Tags