Source Code Cross Referenced for SnapshotIF.java in  » Database-JDBC-Connection-Pool » proxool » org » logicalcobwebs » proxool » admin » 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 » proxool » org.logicalcobwebs.proxool.admin 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * This software is released under a licence similar to the Apache Software Licence.
003:         * See org.logicalcobwebs.proxool.package.html for details.
004:         * The latest version is available at http://proxool.sourceforge.net
005:         */
006:        package org.logicalcobwebs.proxool.admin;
007:
008:        import org.logicalcobwebs.proxool.ConnectionInfoIF;
009:
010:        import java.util.Date;
011:
012:        /**
013:         * Provides a snapshot of a pool
014:         *
015:         * @version $Revision: 1.3 $, $Date: 2005/10/02 12:32:01 $
016:         * @author bill
017:         * @author $Author: billhorsman $ (current maintainer)
018:         * @since Proxool 0.7
019:         */
020:        public interface SnapshotIF {
021:
022:            /**
023:             * When the pool was started
024:             * @return dateStarted
025:             */
026:            Date getDateStarted();
027:
028:            /**
029:             * How many connections have been served since the pool started
030:             * @return servedCount
031:             */
032:            long getServedCount();
033:
034:            /**
035:             * How many connections have been refused since the pool started
036:             * @return refusedCount
037:             */
038:            long getRefusedCount();
039:
040:            /**
041:             * The number of active (busy) connections
042:             * @return activeConnectionCount
043:             */
044:            int getActiveConnectionCount();
045:
046:            /**
047:             * The number of available (free) connections
048:             * @return availableConnectionCount
049:             */
050:            int getAvailableConnectionCount();
051:
052:            /**
053:             * The number of offline connections. A connection is offline
054:             * if it is being tested by the house keeper.
055:             * @return offlineConnectionCount
056:             */
057:            int getOfflineConnectionCount();
058:
059:            /**
060:             * Get the maximum possible connections (as defined in the
061:             * {@link org.logicalcobwebs.proxool.ConnectionPoolDefinitionIF definition}.
062:             * @return maximumConnectionCount
063:             */
064:            int getMaximumConnectionCount();
065:
066:            /**
067:             * The date that this snapshot applies
068:             * @return snapshotDate
069:             */
070:            Date getSnapshotDate();
071:
072:            /**
073:             * The details of each connection.  Will be null if this is not a
074:             * detailed snapshot.
075:             * @return connectionInfos
076:             * @see #isDetail
077:             */
078:            ConnectionInfoIF[] getConnectionInfos();
079:
080:            /**
081:             * The details of one connection.  Will be null if this is not a
082:             * detailed snapshot or if this ID is not found.
083:             * @param id the connection {@link ConnectionInfoIF#getId ID}
084:             * @return connectionInfo
085:             * @see #isDetail
086:             */
087:            ConnectionInfoIF getConnectionInfo(long id);
088:
089:            /**
090:             * Whether we have requested detailed information about each
091:             * connection
092:             * @return detail
093:             * @see #getConnectionInfos
094:             */
095:            boolean isDetail();
096:
097:            long getConnectionCount();
098:        }
099:
100:        /*
101:         Revision history:
102:         $Log: SnapshotIF.java,v $
103:         Revision 1.3  2005/10/02 12:32:01  billhorsman
104:         Make connectionCount available to statistics
105:
106:         Revision 1.2  2003/03/03 11:11:59  billhorsman
107:         fixed licence
108:
109:         Revision 1.1  2003/02/19 23:36:51  billhorsman
110:         renamed monitor package to admin
111:
112:         Revision 1.2  2003/02/12 12:28:28  billhorsman
113:         added url, proxyHashcode and delegateHashcode to
114:         ConnectionInfoIF
115:
116:         Revision 1.1  2003/01/31 11:35:57  billhorsman
117:         improvements to servlet (including connection details)
118:
119:         Revision 1.1  2003/01/30 17:20:15  billhorsman
120:         fixes, improvements and doc
121:
122:         */
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.