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
Object
allocateConnection
(ManagedConnectionFactory mcf, ConnectionRequestInfo info)
Allocates the connection.
UserPoolItem
allocatePool
(ManagedConnectionFactory mcf,
Subject
subject, ConnectionRequestInfo info,
UserPoolItem
oldUserItem)
Allocates a connection.
public
boolean
allowLocalTransactionOptimization
()
public
void
clear
()
Clears the idle connections in the pool.
public
void
destroy
()
Destroys the manager.
String
generateId
()
Generates a connection id.
public
int
getConnectionActiveCount
()
Returns the active connections.
public
int
getConnectionCount
()
Returns the total connections.
public
long
getConnectionCountTotal
()
Returns the total connections.
public
long
getConnectionCreateCountTotal
()
Returns the total connections.
public
long
getConnectionFailCountTotal
()
Returns the total failed connections.
public
int
getConnectionIdleCount
()
Returns the idle connections.
public
long
getConnectionWaitTime
()
public
PoolItem
getDelegatePoolItem
(
Xid
xid)
Returns the delegated pool item.
public
Date
getLastFailTime
()
public
long
getMaxActiveTime
()
Returns the max active time.
public
int
getMaxConnections
()
public
int
getMaxCreateConnections
()
public
int
getMaxIdleCount
()
Returns the max idle count.
public
long
getMaxIdleTime
()
Returns the max idle time.
public
int
getMaxOverflowConnections
()
public
long
getMaxPoolTime
()
Returns the max pool time.
public
String
getName
()
Gets the connection pool name.
public
boolean
getSaveAllocationStackTrace
()
UserTransactionImpl
getTransaction
()
Returns the transaction.
public
UserTransactionProxy
getTransactionManager
()
Returns the transaction manager.
public
void
handleAlarm
(Alarm alarm)
Alarm listener.
public
Object
init
(ManagedConnectionFactory mcf)
Initialize the connection manager.
public
boolean
isCloseDanglingConnections
()
public
boolean
isLocalTransaction
()
Set true for local transaction support.
public
boolean
isLocalTransactionOptimization
()
public
boolean
isShareable
()
Returns true if shared connections are allowed.
public
boolean
isXATransaction
()
Set true for XA transaction support.
public
void
markForPoolRemoval
(
ManagedConnectionImpl
mConn)
public
void
setCloseDanglingConnections
(boolean isClose)
True if dangling connections should be closed.
public
void
setConnectionWaitTime
(
Period
waitTime)
public
void
setLocalTransaction
(boolean localTransaction)
Set true for local transaction support.
public
void
setLocalTransactionOptimization
(boolean enable)
public
void
setMaxActiveTime
(long maxActiveTime)
Sets the max active time.
public
void
setMaxConnections
(int maxConnections)
public
void
setMaxCreateConnections
(int maxConnections)
public
void
setMaxIdleCount
(int maxIdleCount)
Sets the max idle count.
public
void
setMaxIdleTime
(long maxIdleTime)
Sets the max idle time.
public
void
setMaxOverflowConnections
(int maxOverflowConnections)
public
void
setMaxPoolTime
(long maxPoolTime)
Sets the max pool time.
public
void
setName
(
String
name)
Sets the connection pool name.
public
void
setSaveAllocationStackTrace
(boolean save)
public
void
setShareable
(boolean isShareable)
Returns true if shared connections are allowed.
public
void
setTransactionManager
(
UserTransactionProxy
tm)
Sets the transaction manager.
public
void
setXATransaction
(boolean enable)
Set true for XA transaction support.
public
void
start
()
start the connection manager.
public
void
stop
()
Stops the manager.
void
toDead
(
PoolItem
item)
void
toIdle
(
PoolItem
item)
Adds a connection to the idle pool.
public
String
toString
()
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.