Source Code Cross Referenced for BackendStatistics.java in  » Database-JDBC-Connection-Pool » sequoia-2.10.9 » org » continuent » sequoia » common » jmx » monitoring » backend » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Database JDBC Connection Pool » sequoia 2.10.9 » org.continuent.sequoia.common.jmx.monitoring.backend 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /**
002:         * Sequoia: Database clustering technology.
003:         * Copyright (C) 2002-2004 French National Institute For Research In Computer
004:         * Science And Control (INRIA).
005:         * Contact: sequoia@continuent.org
006:         * 
007:         * Licensed under the Apache License, Version 2.0 (the "License");
008:         * you may not use this file except in compliance with the License.
009:         * You may obtain a copy of the License at
010:         * 
011:         * http://www.apache.org/licenses/LICENSE-2.0
012:         * 
013:         * Unless required by applicable law or agreed to in writing, software
014:         * distributed under the License is distributed on an "AS IS" BASIS,
015:         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
016:         * See the License for the specific language governing permissions and
017:         * limitations under the License. 
018:         *
019:         * Initial developer(s): Emmanuel Cecchet.
020:         * Contributor(s): ______________________.
021:         */package org.continuent.sequoia.common.jmx.monitoring.backend;
022:
023:        import java.io.Serializable;
024:
025:        /**
026:         * This class defines a BackendStatistics
027:         * 
028:         * @author <a href="mailto:Emmanuel.Cecchet@inria.fr">Emmanuel Cecchet</a>
029:         */
030:        public class BackendStatistics implements  Serializable {
031:            private static final long serialVersionUID = 586357005726124555L;
032:
033:            /**
034:             * Name of the backend
035:             */
036:            private String backendName;
037:
038:            /**
039:             * Class name of the driver for the backend
040:             */
041:            private String driverClassName;
042:            /**
043:             * URL of the backend
044:             */
045:            private String url;
046:            /**
047:             * Is the backend enable for read?
048:             */
049:            private boolean readEnabled;
050:            /**
051:             * Is the backend enable for write?
052:             */
053:            private boolean writeEnabled;
054:            /**
055:             * the status of the initialization
056:             */
057:            private String initializationStatus;
058:            /**
059:             * Is the schema of the backend static?
060:             */
061:            private boolean schemaStatic;
062:            /**
063:             * number of total active connections
064:             */
065:            private long numberOfTotalActiveConnections;
066:            /**
067:             * Last known checkpoint of the backend
068:             */
069:            private String lastKnownCheckpoint;
070:            /**
071:             * Number of active transactions
072:             */
073:            private int numberOfActiveTransactions;
074:            /**
075:             * Number of pending requests
076:             */
077:            private int numberOfPendingRequests;
078:            /**
079:             * Number of persistent connections
080:             */
081:            private int numberOfPersistentConnections;
082:            /**
083:             * Number of connection managers
084:             */
085:            private int numberOfConnectionManagers;
086:            /**
087:             * Number of total requests
088:             */
089:            private int numberOfTotalRequests;
090:            /**
091:             * Number of total transactions
092:             */
093:            private int numberOfTotalTransactions;
094:
095:            /**
096:             * Returns the backendName value.
097:             * 
098:             * @return Returns the backendName.
099:             */
100:            public String getBackendName() {
101:                return backendName;
102:            }
103:
104:            /**
105:             * Sets the backendName value.
106:             * 
107:             * @param backendName The backendName to set.
108:             */
109:            public void setBackendName(String backendName) {
110:                this .backendName = backendName;
111:            }
112:
113:            /**
114:             * Returns the driverClassName value.
115:             * 
116:             * @return Returns the driverClassName.
117:             */
118:            public String getDriverClassName() {
119:                return driverClassName;
120:            }
121:
122:            /**
123:             * Sets the driverClassName value.
124:             * 
125:             * @param driverClassName The driverClassName to set.
126:             */
127:            public void setDriverClassName(String driverClassName) {
128:                this .driverClassName = driverClassName;
129:            }
130:
131:            /**
132:             * Returns the initializationStatus value.
133:             * 
134:             * @return Returns the initializationStatus.
135:             */
136:            public String getInitializationStatus() {
137:                return initializationStatus;
138:            }
139:
140:            /**
141:             * Sets the initializationStatus value.
142:             * 
143:             * @param initializationStatus The initializationStatus to set.
144:             */
145:            public void setInitializationStatus(String initializationStatus) {
146:                this .initializationStatus = initializationStatus;
147:            }
148:
149:            /**
150:             * Returns the lastKnownCheckpoint value.
151:             * 
152:             * @return Returns the lastKnownCheckpoint.
153:             */
154:            public String getLastKnownCheckpoint() {
155:                return lastKnownCheckpoint;
156:            }
157:
158:            /**
159:             * Sets the lastKnownCheckpoint value.
160:             * 
161:             * @param lastKnownCheckpoint The lastKnownCheckpoint to set.
162:             */
163:            public void setLastKnownCheckpoint(String lastKnownCheckpoint) {
164:                this .lastKnownCheckpoint = lastKnownCheckpoint;
165:            }
166:
167:            /**
168:             * Returns the numberOfActiveTransactions value.
169:             * 
170:             * @return Returns the numberOfActiveTransactions.
171:             */
172:            public int getNumberOfActiveTransactions() {
173:                return numberOfActiveTransactions;
174:            }
175:
176:            /**
177:             * Sets the numberOfActiveTransactions value.
178:             * 
179:             * @param numberOfActiveTransactions The numberOfActiveTransactions to set.
180:             */
181:            public void setNumberOfActiveTransactions(
182:                    int numberOfActiveTransactions) {
183:                this .numberOfActiveTransactions = numberOfActiveTransactions;
184:            }
185:
186:            /**
187:             * Returns the numberOfConnectionManagers value.
188:             * 
189:             * @return Returns the numberOfConnectionManagers.
190:             */
191:            public int getNumberOfConnectionManagers() {
192:                return numberOfConnectionManagers;
193:            }
194:
195:            /**
196:             * Sets the numberOfConnectionManagers value.
197:             * 
198:             * @param numberOfConnectionManagers The numberOfConnectionManagers to set.
199:             */
200:            public void setNumberOfConnectionManagers(
201:                    int numberOfConnectionManagers) {
202:                this .numberOfConnectionManagers = numberOfConnectionManagers;
203:            }
204:
205:            /**
206:             * Returns the numberOfPendingRequests value.
207:             * 
208:             * @return Returns the numberOfPendingRequests.
209:             */
210:            public int getNumberOfPendingRequests() {
211:                return numberOfPendingRequests;
212:            }
213:
214:            /**
215:             * Sets the numberOfPendingRequests value.
216:             * 
217:             * @param numberOfPendingRequests The numberOfPendingRequests to set.
218:             */
219:            public void setNumberOfPendingRequests(int numberOfPendingRequests) {
220:                this .numberOfPendingRequests = numberOfPendingRequests;
221:            }
222:
223:            /**
224:             * Returns the numberOfPersistentConnections value.
225:             * 
226:             * @return Returns the numberOfPersistentConnections.
227:             */
228:            public final int getNumberOfPersistentConnections() {
229:                return numberOfPersistentConnections;
230:            }
231:
232:            /**
233:             * Sets the numberOfPersistentConnections value.
234:             * 
235:             * @param numberOfPersistentConnections The numberOfPersistentConnections to
236:             *          set.
237:             */
238:            public final void setNumberOfPersistentConnections(
239:                    int numberOfPersistentConnections) {
240:                this .numberOfPersistentConnections = numberOfPersistentConnections;
241:            }
242:
243:            /**
244:             * Returns the numberOfTotalActiveConnections value.
245:             * 
246:             * @return Returns the numberOfTotalActiveConnections.
247:             */
248:            public long getNumberOfTotalActiveConnections() {
249:                return numberOfTotalActiveConnections;
250:            }
251:
252:            /**
253:             * Sets the numberOfTotalActiveConnections value.
254:             * 
255:             * @param numberOfTotalActiveConnections The numberOfTotalActiveConnections to
256:             *          set.
257:             */
258:            public void setNumberOfTotalActiveConnections(
259:                    long numberOfTotalActiveConnections) {
260:                this .numberOfTotalActiveConnections = numberOfTotalActiveConnections;
261:            }
262:
263:            /**
264:             * Returns the numberOfTotalRequests value.
265:             * 
266:             * @return Returns the numberOfTotalRequests.
267:             */
268:            public int getNumberOfTotalRequests() {
269:                return numberOfTotalRequests;
270:            }
271:
272:            /**
273:             * Sets the numberOfTotalRequests value.
274:             * 
275:             * @param numberOfTotalRequests The numberOfTotalRequests to set.
276:             */
277:            public void setNumberOfTotalRequests(int numberOfTotalRequests) {
278:                this .numberOfTotalRequests = numberOfTotalRequests;
279:            }
280:
281:            /**
282:             * Returns the numberOfTotalTransactions value.
283:             * 
284:             * @return Returns the numberOfTotalTransactions.
285:             */
286:            public int getNumberOfTotalTransactions() {
287:                return numberOfTotalTransactions;
288:            }
289:
290:            /**
291:             * Sets the numberOfTotalTransactions value.
292:             * 
293:             * @param numberOfTotalTransactions The numberOfTotalTransactions to set.
294:             */
295:            public void setNumberOfTotalTransactions(
296:                    int numberOfTotalTransactions) {
297:                this .numberOfTotalTransactions = numberOfTotalTransactions;
298:            }
299:
300:            /**
301:             * Returns the readEnabled value.
302:             * 
303:             * @return Returns the readEnabled.
304:             */
305:            public boolean isReadEnabled() {
306:                return readEnabled;
307:            }
308:
309:            /**
310:             * Sets the readEnabled value.
311:             * 
312:             * @param readEnabled The readEnabled to set.
313:             */
314:            public void setReadEnabled(boolean readEnabled) {
315:                this .readEnabled = readEnabled;
316:            }
317:
318:            /**
319:             * Returns the schemaStatic value.
320:             * 
321:             * @return Returns the schemaStatic.
322:             */
323:            public boolean isSchemaStatic() {
324:                return schemaStatic;
325:            }
326:
327:            /**
328:             * Sets the schemaStatic value.
329:             * 
330:             * @param schemaStatic The schemaStatic to set.
331:             */
332:            public void setSchemaStatic(boolean schemaStatic) {
333:                this .schemaStatic = schemaStatic;
334:            }
335:
336:            /**
337:             * Returns the url value.
338:             * 
339:             * @return Returns the url.
340:             */
341:            public String getUrl() {
342:                return url;
343:            }
344:
345:            /**
346:             * Sets the url value.
347:             * 
348:             * @param url The url to set.
349:             */
350:            public void setUrl(String url) {
351:                this .url = url;
352:            }
353:
354:            /**
355:             * Returns the writeEnabled value.
356:             * 
357:             * @return Returns the writeEnabled.
358:             */
359:            public boolean isWriteEnabled() {
360:                return writeEnabled;
361:            }
362:
363:            /**
364:             * Sets the writeEnabled value.
365:             * 
366:             * @param writeEnabled The writeEnabled to set.
367:             */
368:            public void setWriteEnabled(boolean writeEnabled) {
369:                this.writeEnabled = writeEnabled;
370:            }
371:
372:        }
w__ww_.___j___a__v_a__2_s_.___c___o___m | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.