Java Doc for ConnectionPool.java in  » EJB-Server-resin-3.1.5 » resin » com » caucho » jca » 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 » EJB Server resin 3.1.5 » resin » com.caucho.jca 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.caucho.management.server.AbstractManagedObject
      com.caucho.jca.ConnectionPool

ConnectionPool
public class ConnectionPool extends AbstractManagedObject implements ConnectionManager,AlarmListener,ConnectionPoolMXBean(Code)
Implementation of the connection manager.



Constructor Summary
 ConnectionPool()
    

Method Summary
public  ObjectallocateConnection(ManagedConnectionFactory mcf, ConnectionRequestInfo info)
     Allocates the connection.
 UserPoolItemallocatePool(ManagedConnectionFactory mcf, Subject subject, ConnectionRequestInfo info, UserPoolItem oldUserItem)
     Allocates a connection.
public  booleanallowLocalTransactionOptimization()
    
public  voidclear()
     Clears the idle connections in the pool.
public  voiddestroy()
     Destroys the manager.
 StringgenerateId()
     Generates a connection id.
public  intgetConnectionActiveCount()
     Returns the active connections.
public  intgetConnectionCount()
     Returns the total connections.
public  longgetConnectionCountTotal()
     Returns the total connections.
public  longgetConnectionCreateCountTotal()
     Returns the total connections.
public  longgetConnectionFailCountTotal()
     Returns the total failed connections.
public  intgetConnectionIdleCount()
     Returns the idle connections.
public  longgetConnectionWaitTime()
    
public  PoolItemgetDelegatePoolItem(Xid xid)
     Returns the delegated pool item.
public  DategetLastFailTime()
    
public  longgetMaxActiveTime()
     Returns the max active time.
public  intgetMaxConnections()
    
public  intgetMaxCreateConnections()
    
public  intgetMaxIdleCount()
     Returns the max idle count.
public  longgetMaxIdleTime()
     Returns the max idle time.
public  intgetMaxOverflowConnections()
    
public  longgetMaxPoolTime()
     Returns the max pool time.
public  StringgetName()
     Gets the connection pool name.
public  booleangetSaveAllocationStackTrace()
    
 UserTransactionImplgetTransaction()
     Returns the transaction.
public  UserTransactionProxygetTransactionManager()
     Returns the transaction manager.
public  voidhandleAlarm(Alarm alarm)
     Alarm listener.
public  Objectinit(ManagedConnectionFactory mcf)
     Initialize the connection manager.
public  booleanisCloseDanglingConnections()
    
public  booleanisLocalTransaction()
     Set true for local transaction support.
public  booleanisLocalTransactionOptimization()
    
public  booleanisShareable()
     Returns true if shared connections are allowed.
public  booleanisXATransaction()
     Set true for XA transaction support.
public  voidmarkForPoolRemoval(ManagedConnectionImpl mConn)
    
public  voidsetCloseDanglingConnections(boolean isClose)
     True if dangling connections should be closed.
public  voidsetConnectionWaitTime(Period waitTime)
    
public  voidsetLocalTransaction(boolean localTransaction)
     Set true for local transaction support.
public  voidsetLocalTransactionOptimization(boolean enable)
    
public  voidsetMaxActiveTime(long maxActiveTime)
     Sets the max active time.
public  voidsetMaxConnections(int maxConnections)
    
public  voidsetMaxCreateConnections(int maxConnections)
    
public  voidsetMaxIdleCount(int maxIdleCount)
     Sets the max idle count.
public  voidsetMaxIdleTime(long maxIdleTime)
     Sets the max idle time.
public  voidsetMaxOverflowConnections(int maxOverflowConnections)
    
public  voidsetMaxPoolTime(long maxPoolTime)
     Sets the max pool time.
public  voidsetName(String name)
     Sets the connection pool name.
public  voidsetSaveAllocationStackTrace(boolean save)
    
public  voidsetShareable(boolean isShareable)
     Returns true if shared connections are allowed.
public  voidsetTransactionManager(UserTransactionProxy tm)
     Sets the transaction manager.
public  voidsetXATransaction(boolean enable)
     Set true for XA transaction support.
public  voidstart()
     start the connection manager.
public  voidstop()
     Stops the manager.
 voidtoDead(PoolItem item)
    
 voidtoIdle(PoolItem item)
     Adds a connection to the idle pool.
public  StringtoString()
    


Constructor Detail
ConnectionPool
ConnectionPool()(Code)




Method Detail
allocateConnection
public Object allocateConnection(ManagedConnectionFactory mcf, ConnectionRequestInfo info) throws ResourceException(Code)
Allocates the connection. connection handle for EIS specific connection.



allocatePool
UserPoolItem allocatePool(ManagedConnectionFactory mcf, Subject subject, ConnectionRequestInfo info, UserPoolItem oldUserItem) throws ResourceException(Code)
Allocates a connection.



allowLocalTransactionOptimization
public boolean allowLocalTransactionOptimization()(Code)
Returns true if the local transaction optimization is enabled



clear
public void clear()(Code)
Clears the idle connections in the pool.



destroy
public void destroy()(Code)
Destroys the manager.



generateId
String generateId()(Code)
Generates a connection id.



getConnectionActiveCount
public int getConnectionActiveCount()(Code)
Returns the active connections.



getConnectionCount
public int getConnectionCount()(Code)
Returns the total connections.



getConnectionCountTotal
public long getConnectionCountTotal()(Code)
Returns the total connections.



getConnectionCreateCountTotal
public long getConnectionCreateCountTotal()(Code)
Returns the total connections.



getConnectionFailCountTotal
public long getConnectionFailCountTotal()(Code)
Returns the total failed connections.



getConnectionIdleCount
public int getConnectionIdleCount()(Code)
Returns the idle connections.



getConnectionWaitTime
public long getConnectionWaitTime()(Code)
Sets the time to wait for connections



getDelegatePoolItem
public PoolItem getDelegatePoolItem(Xid xid)(Code)
Returns the delegated pool item.



getLastFailTime
public Date getLastFailTime()(Code)
Returns the last fail time



getMaxActiveTime
public long getMaxActiveTime()(Code)
Returns the max active time.



getMaxConnections
public int getMaxConnections()(Code)
Gets the maximum number of connections



getMaxCreateConnections
public int getMaxCreateConnections()(Code)
Gets the maximum number of connections simultaneously creating



getMaxIdleCount
public int getMaxIdleCount()(Code)
Returns the max idle count.



getMaxIdleTime
public long getMaxIdleTime()(Code)
Returns the max idle time.



getMaxOverflowConnections
public int getMaxOverflowConnections()(Code)
Gets the max number of overflow connections



getMaxPoolTime
public long getMaxPoolTime()(Code)
Returns the max pool time.



getName
public String getName()(Code)
Gets the connection pool name.



getSaveAllocationStackTrace
public boolean getSaveAllocationStackTrace()(Code)
Returns true if a stack trace should be shared on allocation



getTransaction
UserTransactionImpl getTransaction()(Code)
Returns the transaction.



getTransactionManager
public UserTransactionProxy getTransactionManager()(Code)
Returns the transaction manager.



handleAlarm
public void handleAlarm(Alarm alarm)(Code)
Alarm listener.



init
public Object init(ManagedConnectionFactory mcf) throws ConfigException, ResourceException(Code)
Initialize the connection manager.



isCloseDanglingConnections
public boolean isCloseDanglingConnections()(Code)
Returns true if dangling connections should be closed



isLocalTransaction
public boolean isLocalTransaction()(Code)
Set true for local transaction support.



isLocalTransactionOptimization
public boolean isLocalTransactionOptimization()(Code)
Returns true if the local transaction optimization is enabled



isShareable
public boolean isShareable()(Code)
Returns true if shared connections are allowed.



isXATransaction
public boolean isXATransaction()(Code)
Set true for XA transaction support.



markForPoolRemoval
public void markForPoolRemoval(ManagedConnectionImpl mConn)(Code)



setCloseDanglingConnections
public void setCloseDanglingConnections(boolean isClose)(Code)
True if dangling connections should be closed.



setConnectionWaitTime
public void setConnectionWaitTime(Period waitTime)(Code)
Sets the time to wait for connections



setLocalTransaction
public void setLocalTransaction(boolean localTransaction)(Code)
Set true for local transaction support.



setLocalTransactionOptimization
public void setLocalTransactionOptimization(boolean enable)(Code)
Returns true if the local transaction optimization is enabled



setMaxActiveTime
public void setMaxActiveTime(long maxActiveTime)(Code)
Sets the max active time.



setMaxConnections
public void setMaxConnections(int maxConnections) throws ConfigException(Code)
Sets the max number of connections



setMaxCreateConnections
public void setMaxCreateConnections(int maxConnections) throws ConfigException(Code)
Sets the max number of connections simultaneously creating



setMaxIdleCount
public void setMaxIdleCount(int maxIdleCount)(Code)
Sets the max idle count.



setMaxIdleTime
public void setMaxIdleTime(long maxIdleTime)(Code)
Sets the max idle time.



setMaxOverflowConnections
public void setMaxOverflowConnections(int maxOverflowConnections)(Code)
Sets the max number of overflow connections



setMaxPoolTime
public void setMaxPoolTime(long maxPoolTime)(Code)
Sets the max pool time.



setName
public void setName(String name)(Code)
Sets the connection pool name.



setSaveAllocationStackTrace
public void setSaveAllocationStackTrace(boolean save)(Code)
Returns true if a stack trace should be shared on allocation



setShareable
public void setShareable(boolean isShareable)(Code)
Returns true if shared connections are allowed.



setTransactionManager
public void setTransactionManager(UserTransactionProxy tm)(Code)
Sets the transaction manager.



setXATransaction
public void setXATransaction(boolean enable)(Code)
Set true for XA transaction support.



start
public void start()(Code)
start the connection manager.



stop
public void stop()(Code)
Stops the manager.



toDead
void toDead(PoolItem item)(Code)
Removes a connection



toIdle
void toIdle(PoolItem item)(Code)
Adds a connection to the idle pool.



toString
public String toString()(Code)



Methods inherited from com.caucho.management.server.AbstractManagedObject
protected void addObjectNameProperties(Map<String, String> props) throws MalformedObjectNameException(Code)(Java Doc)
abstract public String getName()(Code)(Java Doc)
public ObjectName getObjectName()(Code)(Java Doc)
public String getType()(Code)(Java Doc)
protected boolean registerSelf()(Code)(Java Doc)
protected boolean unregisterSelf()(Code)(Java Doc)

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.