KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > cjdbc > common > monitor > backend > BackendStatistics


1 /**
2  * C-JDBC: Clustered JDBC.
3  * Copyright (C) 2002-2004 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): Emmanuel Cecchet.
22  * Contributor(s): ______________________.
23  */

24
25 package org.objectweb.cjdbc.common.monitor.backend;
26
27 import java.io.Serializable JavaDoc;
28
29 /**
30  * This class defines a BackendStatistics
31  *
32  * @author <a HREF="mailto:Emmanuel.Cecchet@inria.fr">Emmanuel Cecchet</a>
33  */

34 public class BackendStatistics implements Serializable JavaDoc
35 {
36
37   /**
38    * Name of the backend
39    */

40   private String JavaDoc backendName;
41
42   /**
43    * Class name of the driver for the backend
44    */

45   private String JavaDoc driverClassName;
46   /**
47    * URL of the backend
48    */

49   private String JavaDoc url;
50   /**
51    * Is the backend enable for read?
52    */

53   private boolean readEnabled;
54   /**
55    * Is the backend enable for write?
56    */

57   private boolean writeEnabled;
58   /**
59    * the status of the initialization
60    */

61   private String JavaDoc initializationStatus;
62   /**
63    * Is the schema of the backend static?
64    */

65   private boolean schemaStatic;
66   /**
67    * number of total active connections
68    */

69   private long numberOfTotalActiveConnections;
70   /**
71    * Last known checkpoint of the backend
72    */

73   private String JavaDoc lastKnownCheckpoint;
74   /**
75    * Number of active transactions
76    */

77   private int numberOfActiveTransactions;
78   /**
79    * Number of pending requests
80    */

81   private int numberOfPendingRequests;
82   /**
83    * Number of connection managers
84    */

85   private int numberOfConnectionManagers;
86   /**
87    * Number of total requests
88    */

89   private int numberOfTotalRequests;
90   /**
91    * Number of total transactions
92    */

93   private int numberOfTotalTransactions;
94
95   public String JavaDoc getBackendName()
96   {
97     return backendName;
98   }
99
100   public void setBackendName(String JavaDoc backendName)
101   {
102     this.backendName = backendName;
103   }
104
105   public String JavaDoc getDriverClassName()
106   {
107     return driverClassName;
108   }
109
110   public void setDriverClassName(String JavaDoc driverClassName)
111   {
112     this.driverClassName = driverClassName;
113   }
114
115   public String JavaDoc getInitializationStatus()
116   {
117     return initializationStatus;
118   }
119
120   public void setInitializationStatus(String JavaDoc initializationStatus)
121   {
122     this.initializationStatus = initializationStatus;
123   }
124
125   public String JavaDoc getLastKnownCheckpoint()
126   {
127     return lastKnownCheckpoint;
128   }
129
130   public void setLastKnownCheckpoint(String JavaDoc lastKnownCheckpoint)
131   {
132     this.lastKnownCheckpoint = lastKnownCheckpoint;
133   }
134
135   public int getNumberOfActiveTransactions()
136   {
137     return numberOfActiveTransactions;
138   }
139
140   public void setNumberOfActiveTransactions(int numberOfActiveTransactions)
141   {
142     this.numberOfActiveTransactions = numberOfActiveTransactions;
143   }
144
145   public int getNumberOfConnectionManagers()
146   {
147     return numberOfConnectionManagers;
148   }
149
150   public void setNumberOfConnectionManagers(int numberOfConnectionManagers)
151   {
152     this.numberOfConnectionManagers = numberOfConnectionManagers;
153   }
154
155   public int getNumberOfPendingRequests()
156   {
157     return numberOfPendingRequests;
158   }
159
160   public void setNumberOfPendingRequests(int numberOfPendingRequests)
161   {
162     this.numberOfPendingRequests = numberOfPendingRequests;
163   }
164
165   public long getNumberOfTotalActiveConnections()
166   {
167     return numberOfTotalActiveConnections;
168   }
169
170   public void setNumberOfTotalActiveConnections(
171       long numberOfTotalActiveConnections)
172   {
173     this.numberOfTotalActiveConnections = numberOfTotalActiveConnections;
174   }
175
176   public int getNumberOfTotalRequests()
177   {
178     return numberOfTotalRequests;
179   }
180
181   public void setNumberOfTotalRequests(int numberOfTotalRequests)
182   {
183     this.numberOfTotalRequests = numberOfTotalRequests;
184   }
185
186   public int getNumberOfTotalTransactions()
187   {
188     return numberOfTotalTransactions;
189   }
190
191   public void setNumberOfTotalTransactions(int numberOfTotalTransactions)
192   {
193     this.numberOfTotalTransactions = numberOfTotalTransactions;
194   }
195
196   public boolean isReadEnabled()
197   {
198     return readEnabled;
199   }
200
201   public void setReadEnabled(boolean readEnabled)
202   {
203     this.readEnabled = readEnabled;
204   }
205
206   public boolean isSchemaStatic()
207   {
208     return schemaStatic;
209   }
210
211   public void setSchemaStatic(boolean schemaStatic)
212   {
213     this.schemaStatic = schemaStatic;
214   }
215
216   public String JavaDoc getUrl()
217   {
218     return url;
219   }
220
221   public void setUrl(String JavaDoc url)
222   {
223     this.url = url;
224   }
225
226   public boolean isWriteEnabled()
227   {
228     return writeEnabled;
229   }
230
231   public void setWriteEnabled(boolean writeEnabled)
232   {
233     this.writeEnabled = writeEnabled;
234   }
235
236 }
237
Popular Tags