Java Doc for BasicResourcePool.java in  » Database-JDBC-Connection-Pool » c3p0 » com » mchange » v2 » resourcepool » 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 » c3p0 » com.mchange.v2.resourcepool 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.mchange.v2.resourcepool.BasicResourcePool

BasicResourcePool
class BasicResourcePool implements ResourcePool(Code)

Inner Class :class ScatteredAcquireTask implements Runnable
Inner Class :class AcquireTask implements Runnable
Inner Class :class RemoveTask implements Runnable
Inner Class :class CullTask extends TimerTask
Inner Class :class CheckIdleResourcesTask extends TimerTask
Inner Class :class AsyncTestIdleResourceTask implements Runnable
Inner Class :final static class PunchCard

Field Summary
final static  intAUTO_CULL_FREQUENCY_DIVISOR
    
final static  intAUTO_MAX_CULL_FREQUENCY
    
final static  intAUTO_MIN_CULL_FREQUENCY
    
final static  booleanUSE_SCATTERED_ACQUIRE_TASK
    
final static  StringUSE_SCATTERED_ACQUIRE_TASK_KEY
    
final  intacq_attempt_delay
    
 HashSetacquireWaiters
    
final  RunnableQueueasyncEventQueue
    
final  booleanbreak_on_acquisition_failure
    
 booleanbroken
    
final  longcheck_idle_resources_delay
    
 TimercullAndIdleRefurbishTimer
    
 TimerTaskcullTask
    
final  booleandebug_store_checkout_exceptions
    
final  longdestroy_unreturned_resc_time
    
 ObjectexampleResource
    
final  longexcess_max_idle_time
    
 HashSetexcluded
    
final  longexpiration_enforcement_delay
    
final  BasicResourcePoolFactoryfactory
    
 longfailed_checkins
    
 longfailed_checkouts
    
 longfailed_idle_tests
    
 booleanforce_kill_acquires
    
 MapformerResources
    
 SetidleCheckResources
    
 TimerTaskidleRefurbishTask
    
final  intinc
    
 ThrowablelastAcquisitionFailiure
    
 ThrowablelastCheckinFailure
    
 ThrowablelastCheckoutFailure
    
 ThrowablelastIdleTestFailure
    
 ThrowablelastResourceTestFailure
    
 HashMapmanaged
    
final  intmax
    
final  longmax_idle_time
    
final  longmax_resource_age
    
final  Managermgr
    
final  intmin
    
final  intnum_acq_attempts
    
 HashSetotherWaiters
    
 intpending_acquires
    
 intpending_removes
    
final  longpool_start_time
    
final  ResourcePoolEventSupportrpes
    
final  intstart
    
 inttarget_pool_size
    
final  AsynchronousRunnertaskRunner
    
 LinkedListunused
    

Constructor Summary
public  BasicResourcePool(Manager mgr, int start, int min, int max, int inc, int num_acq_attempts, int acq_attempt_delay, long check_idle_resources_delay, long max_resource_age, long max_idle_time, long excess_max_idle_time, long destroy_unreturned_resc_time, long expiration_enforcement_delay, boolean break_on_acquisition_failure, boolean debug_store_checkout_exceptions, AsynchronousRunner taskRunner, RunnableQueue asyncEventQueue, Timer cullAndIdleRefurbishTimer, BasicResourcePoolFactory factory)
    

Method Summary
public  voidaddResourcePoolListener(ResourcePoolListener rpl)
    
public synchronized  voidcheckinAll()
    
public synchronized  voidcheckinResource(Object resc)
    
public  ObjectcheckoutResource()
    
public  ObjectcheckoutResource(long timeout)
    
public synchronized  voidclose()
    
public synchronized  voidclose(boolean close_checked_out_resources)
    
public  voidfinalize()
    
public synchronized  intgetAvailableCount()
    
public synchronized  intgetAwaitingCheckinCount()
    
public  longgetEffectiveExpirationEnforcementDelay()
    
public synchronized  intgetExcludedCount()
    
public synchronized  ThrowablegetLastAcquisitionFailure()
    
public synchronized  ThrowablegetLastCheckinFailure()
    
public synchronized  ThrowablegetLastCheckoutFailure()
    
public synchronized  ThrowablegetLastIdleCheckFailure()
    
public synchronized  ThrowablegetLastResourceTestFailure()
    
public  intgetMaxPoolSize()
    
public  intgetMinPoolSize()
    
public synchronized  intgetNumCheckoutWaiters()
    
public synchronized  longgetNumFailedCheckins()
    
public synchronized  longgetNumFailedCheckouts()
    
public synchronized  longgetNumFailedIdleTests()
    
public synchronized  intgetPoolSize()
    
public  longgetStartTime()
    
public  longgetUpTime()
    
public synchronized  voidmarkBroken(Object resc)
    
public  voidremoveResourcePoolListener(ResourcePoolListener rpl)
    
public synchronized  voidresetPool()
    
public synchronized  voidsetPoolSize(int sz)
    
public synchronized  voidsetTargetPoolSize(int sz)
    
public synchronized  intstatusInPool(Object resc)
    

Field Detail
AUTO_CULL_FREQUENCY_DIVISOR
final static int AUTO_CULL_FREQUENCY_DIVISOR(Code)



AUTO_MAX_CULL_FREQUENCY
final static int AUTO_MAX_CULL_FREQUENCY(Code)



AUTO_MIN_CULL_FREQUENCY
final static int AUTO_MIN_CULL_FREQUENCY(Code)



USE_SCATTERED_ACQUIRE_TASK
final static boolean USE_SCATTERED_ACQUIRE_TASK(Code)



USE_SCATTERED_ACQUIRE_TASK_KEY
final static String USE_SCATTERED_ACQUIRE_TASK_KEY(Code)



acq_attempt_delay
final int acq_attempt_delay(Code)



acquireWaiters
HashSet acquireWaiters(Code)



asyncEventQueue
final RunnableQueue asyncEventQueue(Code)



break_on_acquisition_failure
final boolean break_on_acquisition_failure(Code)



broken
boolean broken(Code)



check_idle_resources_delay
final long check_idle_resources_delay(Code)



cullAndIdleRefurbishTimer
Timer cullAndIdleRefurbishTimer(Code)



cullTask
TimerTask cullTask(Code)



debug_store_checkout_exceptions
final boolean debug_store_checkout_exceptions(Code)



destroy_unreturned_resc_time
final long destroy_unreturned_resc_time(Code)



exampleResource
Object exampleResource(Code)



excess_max_idle_time
final long excess_max_idle_time(Code)



excluded
HashSet excluded(Code)



expiration_enforcement_delay
final long expiration_enforcement_delay(Code)



factory
final BasicResourcePoolFactory factory(Code)



failed_checkins
long failed_checkins(Code)



failed_checkouts
long failed_checkouts(Code)



failed_idle_tests
long failed_idle_tests(Code)



force_kill_acquires
boolean force_kill_acquires(Code)



formerResources
Map formerResources(Code)



idleCheckResources
Set idleCheckResources(Code)



idleRefurbishTask
TimerTask idleRefurbishTask(Code)



inc
final int inc(Code)



lastAcquisitionFailiure
Throwable lastAcquisitionFailiure(Code)



lastCheckinFailure
Throwable lastCheckinFailure(Code)



lastCheckoutFailure
Throwable lastCheckoutFailure(Code)



lastIdleTestFailure
Throwable lastIdleTestFailure(Code)



lastResourceTestFailure
Throwable lastResourceTestFailure(Code)



managed
HashMap managed(Code)



max
final int max(Code)



max_idle_time
final long max_idle_time(Code)



max_resource_age
final long max_resource_age(Code)



mgr
final Manager mgr(Code)



min
final int min(Code)



num_acq_attempts
final int num_acq_attempts(Code)



otherWaiters
HashSet otherWaiters(Code)



pending_acquires
int pending_acquires(Code)



pending_removes
int pending_removes(Code)



pool_start_time
final long pool_start_time(Code)



rpes
final ResourcePoolEventSupport rpes(Code)



start
final int start(Code)



target_pool_size
int target_pool_size(Code)



taskRunner
final AsynchronousRunner taskRunner(Code)



unused
LinkedList unused(Code)




Constructor Detail
BasicResourcePool
public BasicResourcePool(Manager mgr, int start, int min, int max, int inc, int num_acq_attempts, int acq_attempt_delay, long check_idle_resources_delay, long max_resource_age, long max_idle_time, long excess_max_idle_time, long destroy_unreturned_resc_time, long expiration_enforcement_delay, boolean break_on_acquisition_failure, boolean debug_store_checkout_exceptions, AsynchronousRunner taskRunner, RunnableQueue asyncEventQueue, Timer cullAndIdleRefurbishTimer, BasicResourcePoolFactory factory) throws ResourcePoolException(Code)

Parameters:
  factory - may be null




Method Detail
addResourcePoolListener
public void addResourcePoolListener(ResourcePoolListener rpl)(Code)



checkinAll
public synchronized void checkinAll() throws ResourcePoolException(Code)



checkinResource
public synchronized void checkinResource(Object resc) throws ResourcePoolException(Code)



checkoutResource
public Object checkoutResource() throws ResourcePoolException, InterruptedException(Code)



checkoutResource
public Object checkoutResource(long timeout) throws TimeoutException, ResourcePoolException, InterruptedException(Code)



close
public synchronized void close() throws ResourcePoolException(Code)



close
public synchronized void close(boolean close_checked_out_resources)(Code)



finalize
public void finalize() throws Throwable(Code)



getAvailableCount
public synchronized int getAvailableCount()(Code)



getAwaitingCheckinCount
public synchronized int getAwaitingCheckinCount()(Code)



getEffectiveExpirationEnforcementDelay
public long getEffectiveExpirationEnforcementDelay()(Code)



getExcludedCount
public synchronized int getExcludedCount()(Code)



getLastAcquisitionFailure
public synchronized Throwable getLastAcquisitionFailure()(Code)



getLastCheckinFailure
public synchronized Throwable getLastCheckinFailure()(Code)



getLastCheckoutFailure
public synchronized Throwable getLastCheckoutFailure()(Code)



getLastIdleCheckFailure
public synchronized Throwable getLastIdleCheckFailure()(Code)



getLastResourceTestFailure
public synchronized Throwable getLastResourceTestFailure()(Code)



getMaxPoolSize
public int getMaxPoolSize()(Code)



getMinPoolSize
public int getMinPoolSize()(Code)



getNumCheckoutWaiters
public synchronized int getNumCheckoutWaiters()(Code)



getNumFailedCheckins
public synchronized long getNumFailedCheckins()(Code)



getNumFailedCheckouts
public synchronized long getNumFailedCheckouts()(Code)



getNumFailedIdleTests
public synchronized long getNumFailedIdleTests()(Code)



getPoolSize
public synchronized int getPoolSize() throws ResourcePoolException(Code)



getStartTime
public long getStartTime()(Code)



getUpTime
public long getUpTime()(Code)



markBroken
public synchronized void markBroken(Object resc)(Code)



removeResourcePoolListener
public void removeResourcePoolListener(ResourcePoolListener rpl)(Code)



resetPool
public synchronized void resetPool()(Code)



setPoolSize
public synchronized void setPoolSize(int sz) throws ResourcePoolException(Code)



setTargetPoolSize
public synchronized void setTargetPoolSize(int sz)(Code)



statusInPool
public synchronized int statusInPool(Object resc) throws ResourcePoolException(Code)



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.