KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > cjdbc > common > monitor > DataCollection


1 /**
2  * C-JDBC: Clustered JDBC.
3  * Copyright (C) 2002-2005 French National Institute For Research In Computer
4  * Science And Control (INRIA).
5  * Contact: c-jdbc@objectweb.org
6  *
7  * This library is free software; you can redistribute it and/or modify it
8  * under the terms of the GNU Lesser General Public License as published by the
9  * Free Software Foundation; either version 2.1 of the License, or any later
10  * version.
11  *
12  * This library is distributed in the hope that it will be useful, but WITHOUT
13  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
15  * for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public License
18  * along with this library; if not, write to the Free Software Foundation,
19  * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
20  *
21  * Initial developer(s): Nicolas Modrzyk.
22  * Contributor(s): Emmanuel Cecchet.
23  */

24
25 package org.objectweb.cjdbc.common.monitor;
26
27 /**
28  * This public static final interface is used as a reference to what kind of
29  * information can be collected and monitored with the mbean monitor.
30  *
31  * @author <a HREF="mailto:Nicolas.Modrzyk@inrialpes.fr">Nicolas Modrzyk </a>
32  * @author <a HREF="mailto:emmanuel.cecchet@emicnetworks.com">Emmanuel Cecchet
33  * </a>
34  */

35 public final class DataCollection
36 {
37   /** Backend active transaction identifier */
38   public static final int BACKEND_ACTIVE_TRANSACTION = 10;
39   /** Backend pending request identifier */
40   public static final int BACKEND_PENDING_REQUESTS = 11;
41   /** Backend active connections identifier */
42   public static final int BACKEND_TOTAL_ACTIVE_CONNECTIONS = 12;
43   /** Backend total request identifier */
44   public static final int BACKEND_TOTAL_REQUEST = 13;
45   /** Backend total read request */
46   public static final int BACKEND_TOTAL_READ_REQUEST = 14;
47   /** Backend total write request */
48   public static final int BACKEND_TOTAL_WRITE_REQUEST = 15;
49   /** Backend total transactions identifier */
50   public static final int BACKEND_TOTAL_TRANSACTIONS = 16;
51
52   /** Cache statistics count select identifier */
53   public static final int CACHE_STATS_COUNT_SELECT = 20;
54   /** Cache statistics count hits identifier */
55   public static final int CACHE_STATS_COUNT_HITS = 21;
56   /** Cache statistics count insert identifier */
57   public static final int CACHE_STATS_COUNT_INSERT = 22;
58   /** Cache statistics hit percentage identifier */
59   public static final int CACHE_STATS_HITS_PERCENTAGE = 23;
60   /** Cache statistics number of entries identifier */
61   public static final int CACHE_STATS_NUMBER_ENTRIES = 24;
62
63   /** Client time active identifier */
64   public static final int CLIENT_TIME_ACTIVE = 32;
65
66   /** Controller total memory identifier */
67   public static final int CONTROLLER_TOTAL_MEMORY = 40;
68   /** Controller used memory identifier */
69   public static final int CONTROLLER_USED_MEMORY = 41;
70   /** Controller thread number identifier */
71   public static final int CONTROLLER_THREADS_NUMBER = 42;
72   /** Controller worker pending queue identifier */
73   public static final int CONTROLLER_WORKER_PENDING_QUEUE = 43;
74   /** Controller idle worker threads identifier */
75   public static final int CONTROLLER_IDLE_WORKER_THREADS = 44;
76
77   /** Database active threads identifier */
78   public static final int DATABASES_ACTIVE_THREADS = 50;
79   /** Database pending connection identifier */
80   public static final int DATABASES_PENDING_CONNECTIONS = 51;
81   /** Database number threads identifier */
82   public static final int DATABASES_NUMBER_OF_THREADS = 52;
83
84   /** Scheduler number read identifier */
85   public static final int SCHEDULER_NUMBER_READ = 60;
86   /** Scheduler number writes identifier */
87   public static final int SCHEDULER_NUMBER_WRITES = 61;
88   /** Scheduler pending transactions identifier */
89   public static final int SCHEDULER_PENDING_TRANSACTIONS = 62;
90   /** Scheduler pending writes identifier */
91   public static final int SCHEDULER_PENDING_WRITES = 63;
92   /** Scheduler number requests identifier */
93   public static final int SCHEDULER_NUMBER_REQUESTS = 64;
94 }
95
Popular Tags