Java Doc for PoolConfig.java in  » Database-JDBC-Connection-Pool » SmartPool » org » smartlib » pool » core » 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 » SmartPool » org.smartlib.pool.core 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.smartlib.pool.core.PoolConfig

PoolConfig
public class PoolConfig implements ConfigMonitor(Code)
This class encapsulates the configuration of the pool
author:
   Sachin Shekar Shetty
version:
   1.0, 02/08/01

Inner Class :public static class ConnectionString
Inner Class :public static class ConnectionLoaderClass

Field Summary
final public static  booleanALLOW_ANONYMOUS_CONNECTIONS
    
final public static  booleanAUTO_CLOSE
    
final public static  intCONNECTION_WAIT_TIME_OUT
    
final public static  booleanDEFAULT_POOL_VALUE
    
final public static  booleanDETECT_LEAKS
    
final public static  intINCREMENT_BY
    
final public static  intLEAK_TIME_OUT
    
final public static  intMAX_CONNECTION_IDLE_TIME
    
final public static  intMAX_FREE_CONNECTIONS_FOR_RELEASE
    
final public static  intPOLL_THREAD_TIME
    
final public static  StringVALIDATION_QUERY
    

Constructor Summary
 PoolConfig()
    
 PoolConfig(String poolName, int maxConnections, int minConnections, String userName, String password, ConnectionString connectionString, int increment, String driver)
     parameter list is too long to document, SELF HELP IS THE BEST HELP.

Method Summary
public  ConnectionLoaderClass[]getConnectionLoaderClass()
     This method returns the fully qualified name of the Connection Loader class.
public  ConnectionLoaderClassgetConnectionLoaderClassByName(String name)
    
public  ConnectionString[]getConnectionString()
    
public  ConnectionStringgetConnectionStringByName(String name)
    
public  longgetConnectionWaitTimeOut()
     This method returns the connectionWaitTimeOut value.
public  StringgetDefaultListener()
    
public  StringgetDriver()
    
public  intgetIncrement()
    
public  longgetLeakTimeOut()
    
public  longgetMaxConnectionIdleTime()
     This method returns the max-connection-idle-time value.
public  intgetMaxConnections()
    
public  intgetMaxConnectionsForRelease()
     This method returns the name of the pool.
public  intgetMinConnections()
    
public  StringgetMultiPoolName()
     This method returns the name of the pool.
public  StringgetPassword()
     This method returns the password to connect to the database.
public  longgetPollThreadTime()
    
public  StringgetUserName()
    
public  StringgetValidatorQuery()
     This method returns the validatorQuery.
public  booleanisAllowAnonymousConnections()
     This method returns the name of the pool.
public  booleanisAutoClose()
    
public  booleanisDefaultPool()
    
public  booleanisDetectLeaks()
    
public  booleanisExternalPooling()
     This method returs a boolean.
public  booleanisThreadStickiness()
    
 voidsetAllowAnonymousConnections(boolean allowAnonymousConnections)
    
 voidsetAutoClose(boolean autoClose)
    
 voidsetConnectionLoaderClass(ConnectionLoaderClass connectionLoaderClass)
     This method sets the fully qualified name of the Connection Loader class.
 voidsetConnectionString(ConnectionString connectionString)
    
 voidsetConnectionWaitTimeOut(long connectionWaitTimeOut)
     This method sets the connectionWaitTimeOut value.
 voidsetDefaultListener(String defaultListener)
    
 voidsetDefaultPool(boolean b)
    
 voidsetDetectLeaks(boolean b)
    
 voidsetDriver(String driver)
    
 voidsetExternalPooling(boolean externalPooling)
     This method sets the isExternalPooling value.
 voidsetIncrement(int increment)
    
 voidsetLeakTimeOut(long leakTimeOut)
    
 voidsetMaxConnectionIdleTime(long maxConnectionIdleTime)
     This method sets the max-connection-idle-time value.
 voidsetMaxConnections(int maxConnections)
    
 voidsetMaxConnectionsForRelease(int maxConnectionsForRelease)
    
 voidsetMinConnections(int minConnections)
    
 voidsetMultiPoolName(String poolName)
    
 voidsetPassword(String password)
    
 voidsetPollThreadTime(long pollThreadTime)
    
public  voidsetThreadStickiness(boolean threadStickiness)
    
 voidsetUserName(String userName)
    
 voidsetValidatorQuery(String validatorQuery)
     This method sets the Validator-Query.
public  StringtoString()
     You know what this does.

Field Detail
ALLOW_ANONYMOUS_CONNECTIONS
final public static boolean ALLOW_ANONYMOUS_CONNECTIONS(Code)



AUTO_CLOSE
final public static boolean AUTO_CLOSE(Code)



CONNECTION_WAIT_TIME_OUT
final public static int CONNECTION_WAIT_TIME_OUT(Code)



DEFAULT_POOL_VALUE
final public static boolean DEFAULT_POOL_VALUE(Code)



DETECT_LEAKS
final public static boolean DETECT_LEAKS(Code)



INCREMENT_BY
final public static int INCREMENT_BY(Code)



LEAK_TIME_OUT
final public static int LEAK_TIME_OUT(Code)



MAX_CONNECTION_IDLE_TIME
final public static int MAX_CONNECTION_IDLE_TIME(Code)



MAX_FREE_CONNECTIONS_FOR_RELEASE
final public static int MAX_FREE_CONNECTIONS_FOR_RELEASE(Code)



POLL_THREAD_TIME
final public static int POLL_THREAD_TIME(Code)



VALIDATION_QUERY
final public static String VALIDATION_QUERY(Code)




Constructor Detail
PoolConfig
PoolConfig()(Code)



PoolConfig
PoolConfig(String poolName, int maxConnections, int minConnections, String userName, String password, ConnectionString connectionString, int increment, String driver)(Code)
parameter list is too long to document, SELF HELP IS THE BEST HELP.




Method Detail
getConnectionLoaderClass
public ConnectionLoaderClass[] getConnectionLoaderClass()(Code)
This method returns the fully qualified name of the Connection Loader class. Fully qualified name of the class



getConnectionLoaderClassByName
public ConnectionLoaderClass getConnectionLoaderClassByName(String name)(Code)
This metod returns the ConnectionLoaderClass object with the name name



getConnectionString
public ConnectionString[] getConnectionString()(Code)
connection string to connect to the database.



getConnectionStringByName
public ConnectionString getConnectionStringByName(String name)(Code)
This metod returns the ConnectionString object with the name name



getConnectionWaitTimeOut
public long getConnectionWaitTimeOut()(Code)
This method returns the connectionWaitTimeOut value.



getDefaultListener
public String getDefaultListener()(Code)
default listener class for connection leak.



getDriver
public String getDriver()(Code)
driver name used to connect to database.



getIncrement
public int getIncrement()(Code)
size of blocks of connections withdrawn at a time when no freeconnections are available.



getLeakTimeOut
public long getLeakTimeOut()(Code)
time out for detecting leaks.



getMaxConnectionIdleTime
public long getMaxConnectionIdleTime()(Code)
This method returns the max-connection-idle-time value.



getMaxConnections
public int getMaxConnections()(Code)
Max connections allowed in the pool.



getMaxConnectionsForRelease
public int getMaxConnectionsForRelease()(Code)
This method returns the name of the pool. maximum number of free connections allowed after which excessive connections are released .



getMinConnections
public int getMinConnections()(Code)
minimun connections in the pool.



getMultiPoolName
public String getMultiPoolName()(Code)
This method returns the name of the pool. name of the pool.



getPassword
public String getPassword()(Code)
This method returns the password to connect to the database. password to connect to the database.



getPollThreadTime
public long getPollThreadTime()(Code)
true if automotic closing of Statement ,PreparedStatement ,CallableStatement is enabled once the connection is closed isenabled.



getUserName
public String getUserName()(Code)
username to connect to the database.



getValidatorQuery
public String getValidatorQuery()(Code)
This method returns the validatorQuery. validatorQuery



isAllowAnonymousConnections
public boolean isAllowAnonymousConnections()(Code)
This method returns the name of the pool. true if anonymous connections are allowed , i.e without specifying the owner .



isAutoClose
public boolean isAutoClose()(Code)
true if automatic closing of Statement ,PreparedStatement ,CallableStatement is enabled once the connection is closed isenabled.



isDefaultPool
public boolean isDefaultPool()(Code)
true if this pool is the default pool.



isDetectLeaks
public boolean isDetectLeaks()(Code)
true if connection leak monitoring is enabled.



isExternalPooling
public boolean isExternalPooling()(Code)
This method returs a boolean. true- If Smart pool is wrapped to another pool



isThreadStickiness
public boolean isThreadStickiness()(Code)



setAllowAnonymousConnections
void setAllowAnonymousConnections(boolean allowAnonymousConnections)(Code)



setAutoClose
void setAutoClose(boolean autoClose)(Code)



setConnectionLoaderClass
void setConnectionLoaderClass(ConnectionLoaderClass connectionLoaderClass)(Code)
This method sets the fully qualified name of the Connection Loader class.
Parameters:
  connectionLoaderClass - the fully qualified name of the Connection Loader class



setConnectionString
void setConnectionString(ConnectionString connectionString)(Code)



setConnectionWaitTimeOut
void setConnectionWaitTimeOut(long connectionWaitTimeOut)(Code)
This method sets the connectionWaitTimeOut value.
Parameters:
  connectionWaitTimeOut -



setDefaultListener
void setDefaultListener(String defaultListener)(Code)



setDefaultPool
void setDefaultPool(boolean b)(Code)



setDetectLeaks
void setDetectLeaks(boolean b)(Code)



setDriver
void setDriver(String driver)(Code)



setExternalPooling
void setExternalPooling(boolean externalPooling)(Code)
This method sets the isExternalPooling value.
Parameters:
  externalPooling - true- If Smart pool is wrapped to another pool.



setIncrement
void setIncrement(int increment)(Code)



setLeakTimeOut
void setLeakTimeOut(long leakTimeOut)(Code)



setMaxConnectionIdleTime
void setMaxConnectionIdleTime(long maxConnectionIdleTime)(Code)
This method sets the max-connection-idle-time value.
Parameters:
  maxConnectionIdleTime -



setMaxConnections
void setMaxConnections(int maxConnections)(Code)



setMaxConnectionsForRelease
void setMaxConnectionsForRelease(int maxConnectionsForRelease)(Code)



setMinConnections
void setMinConnections(int minConnections)(Code)



setMultiPoolName
void setMultiPoolName(String poolName)(Code)



setPassword
void setPassword(String password)(Code)



setPollThreadTime
void setPollThreadTime(long pollThreadTime)(Code)



setThreadStickiness
public void setThreadStickiness(boolean threadStickiness)(Code)



setUserName
void setUserName(String userName)(Code)



setValidatorQuery
void setValidatorQuery(String validatorQuery)(Code)
This method sets the Validator-Query.
Parameters:
  validatorQuery -



toString
public String toString()(Code)
You know what this does.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.