|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This bean defines a JDBC connection pool.
Fields inherited from class weblogic.management.configuration.DeploymentMBean |
CACHING_STUB_SVUID,
DEFAULT_ORDER,
MAX_ORDER,
MIN_ORDER |
Fields inherited from class weblogic.management.configuration.ConfigurationMBean |
CACHING_STUB_SVUID |
Method Summary | |
java.lang.String |
getACLName()
Deprecated. |
int |
getCapacityIncrement()
Increment by which the connection pool capacity is expanded. |
int |
getCountOfRefreshFailuresTillDisable()
Set the number of consecutive failures to replace dead pool connections before we disable the pool. |
int |
getCountOfTestFailuresTillFlush()
Get the number of consecutive failed pool connection tests before we close all the connections the pool. |
java.lang.String |
getDriverName()
The full package name of the JDBC 2-tier driver class used to create the physical connections between WebLogic Server and the DBMS for this connection pool. |
boolean |
getEnableResourceHealthMonitoring()
Returns true if JTA resource health monitoring is enabled for this XA connection pool. |
int |
getInitialCapacity()
The number of physical database connections to create when creating the connection pool. |
int |
getLoginDelaySeconds()
The number of seconds to delay before creating each physical database connection. |
int |
getMaxCapacity()
Maximum number of physical database connections that this connection pool can contain. |
java.lang.String |
getPassword()
Returns the database password as set with setPassword()
or as a key=value pair in setProperties() . |
int |
getPreparedStatementCacheSize()
Returns size of the prepared statement cache. |
java.util.Properties |
getProperties()
Returns the list of properties passed to the the 2-tier JDBC Driver to use when creating physical database connections. |
int |
getRefreshMinutes()
The number of minutes between database connection tests. |
int |
getShrinkPeriodMinutes()
Number of minutes to wait before shrinking a connection pool that has incrementally increased to meet demand. |
boolean |
getSupportsLocalTransaction()
Set to true if the XA driver used to create physical database connections supports SQL without global transactions. |
boolean |
getTestConnectionsOnRelease()
|
boolean |
getTestConnectionsOnReserve()
|
java.lang.String |
getTestTableName()
The name of the table used when testing a physical database connection. |
java.lang.String |
getURL()
Returns the database URL used to create the connections in this Connection Pool. |
java.lang.String |
getXAPassword()
If set, this value overrides the password in the open string. |
int |
getXAPreparedStatementCacheSize()
|
int |
getXARetryDurationSeconds()
Determines the duration in seconds for which the transaction manager will perform recover operations on the resource. |
int |
getXARetryIntervalSeconds()
Determines the time in seconds between XA retry operations if the XARetryDurationSeconds attribute is set to a positive value. |
boolean |
isConnLeakProfilingEnabled()
This property enables JDBC Connection leak profiling. |
boolean |
isShrinkingEnabled()
Indicates whether or not the pool can shrink back to its InitialCapacity when it is detected that connections
created during increased traffic are not being used. |
boolean |
isSqlStmtProfilingEnabled()
SQL roundtrip profiling stores SQL statement text, execution time and other metrics. |
void |
setACLName(java.lang.String name)
Deprecated. |
void |
setCapacityIncrement(int capacity)
Increment by which the connection pool capacity is expanded. |
void |
setConnLeakProfilingEnabled(boolean enable)
|
void |
setCountOfRefreshFailuresTillDisable(int newVal)
Set the number of consecutive failures to replace dead pool connections before we disable the pool. |
void |
setCountOfTestFailuresTillFlush(int newVal)
Set the number of consecutive failed pool connection tests before we close all the connections the pool. |
void |
setDriverName(java.lang.String driverClassName)
The full package name of the JDBC 2-tier driver class used to create the physical connections between the WebLogic Server and the DBMS for this connection pool. |
void |
setEnableResourceHealthMonitoring(boolean enable)
This property applies to XA connection pools only, and is ignored for connection pools that use a non-XA driver. |
void |
setInitialCapacity(int capacity)
The number of physical database connections to create when creating the connection pool. |
void |
setLoginDelaySeconds(int secs)
The number of seconds to delay before creating each physical database connection. |
void |
setMaxCapacity(int capacity)
Maximum number of physical database connections that this connection pool can contain. |
void |
setPassword(java.lang.String password)
Password attribute passed to the 2-tier JDBC driver when creating physical database connections. |
void |
setPreparedStatementCacheSize(int cacheSize)
Sets size of the prepared statement cache. |
void |
setProperties(java.util.Properties props)
The list of properties passed to the the 2-tier JDBC Driver to use when creating physical database connections. |
void |
setRefreshMinutes(int minutes)
The number of minutes between database connection tests. |
void |
setShrinkingEnabled(boolean enable)
Indicates whether or not the pool can shrink back to its InitialCapacity when it is detected that connections
created during increased traffic are not being used. |
void |
setShrinkPeriodMinutes(int minutes)
Number of minutes to wait before shrinking a connection pool that has incrementally increased to meet demand. |
void |
setSqlStmtProfilingEnabled(boolean enable)
This property enables running of JDBC SQL roundtrip profiling. |
void |
setSupportsLocalTransaction(boolean support)
This property applies to XA connection pools only, and is ignored for non-XA drivers. |
void |
setTestConnectionsOnRelease(boolean enable)
When set to true, WebLogic Server tests a connection before returning it to the connection pool. |
void |
setTestConnectionsOnReserve(boolean enable)
When set to true, WebLogic Server tests a connection before giving it to the client. |
void |
setTestTableName(java.lang.String table)
The name of the table used when testing a physical database connection. |
void |
setURL(java.lang.String url)
The database URL used to create the connections in this connection pool. |
void |
setXAPassword(java.lang.String password)
If set, this value overrides the password in the open string. |
void |
setXAPreparedStatementCacheSize(int size)
Sets the maximum number of prepared statements cached by this particular XA connection pool. |
void |
setXARetryDurationSeconds(int duration)
Determines the duration in seconds for which the transaction manager will perform recover operations on the resource. |
void |
setXARetryIntervalSeconds(int interval)
Determines the time in seconds between XA retry operations if the XARetryDurationSeconds attribute is set to a positive value. |
Methods inherited from interface weblogic.management.configuration.DeploymentMBean |
addTarget,
getDeploymentOrder,
getTargets,
removeTarget,
setDeploymentOrder,
setTargets |
Methods inherited from interface weblogic.management.configuration.ConfigurationMBean |
addLinkMbeanAttribute,
getNotes,
isPersistenceEnabled,
setNotes |
Methods inherited from interface weblogic.management.WebLogicMBean |
getMBeanInfo,
getName,
getObjectName,
getParent,
getType,
isCachingDisabled,
isRegistered,
setName,
setParent |
Methods inherited from interface javax.management.DynamicMBean |
getAttribute,
getAttributes,
invoke,
setAttribute,
setAttributes |
Methods inherited from interface javax.management.MBeanRegistration |
postDeregister,
postRegister,
preDeregister,
preRegister |
Methods inherited from interface javax.management.NotificationBroadcaster |
addNotificationListener,
getNotificationInfo,
removeNotificationListener |
Method Detail |
public boolean isConnLeakProfilingEnabled()
A Connection leak occurs when a connection from the pool is not closed explicitly by calling close() on that connection.
When connection leak profiling is active, the pool will store the stack trace at the time the Connection object is allocated from the pool and given to the client. When a connection leak is detected (when the Connection object is garbage collected), this stack trace is reported.
This feature uses extra resources and will likely slowdown Connection Pool operations, so it is not recommended for production use.
public void setConnLeakProfilingEnabled(boolean enable) throws javax.management.InvalidAttributeValueException
public boolean isSqlStmtProfilingEnabled()
true
if JDBC SQL roundtrip
profiling enabledpublic void setSqlStmtProfilingEnabled(boolean enable) throws javax.management.InvalidAttributeValueException
This is a resource-consuming feature, so it's recommended that it's turned off on a production server.
public java.lang.String getACLName()
public void setACLName(java.lang.String name) throws javax.management.InvalidAttributeValueException
reserve
and
admin
.
Reserve
permission allows users
to get logical connections from this connection pool.
Admin
permission allows all other operations on this connection
pool, including: reset, shrink, shutdown, disable, and enable.
Lack of an ACL allows any user open access (provided that the user passes other WLS security controls).
public java.lang.String getURL()
public void setURL(java.lang.String url) throws javax.management.InvalidAttributeValueException
public java.lang.String getDriverName()
com.pointbase.jdbc.jdbcUniversalDriver
It must be the name of a class that implements the
java.sql.Driver
interface.
Check the documentation for the JDBC driver to find the full
pathname.
public void setDriverName(java.lang.String driverClassName) throws javax.management.InvalidAttributeValueException
com.pointbase.jdbc.jdbcUniversalDriver
It must be the name of a class that implements the
java.sql.Driver
interface.
Check the documentation for the JDBC driver to find the full
pathname.
public java.util.Properties getProperties()
public void setProperties(java.util.Properties props) throws javax.management.InvalidAttributeValueException
user=scott;server=myDB
.
Note: BEA recommends that you use setPassword(String)
to specify the database password so that the value is stored in an
encrypted form in config.xml
and when displayed on the
administration console.
public int getLoginDelaySeconds()
public void setLoginDelaySeconds(int secs) throws javax.management.InvalidAttributeValueException
public int getInitialCapacity()
public void setInitialCapacity(int capacity) throws javax.management.InvalidAttributeValueException
public int getMaxCapacity()
public void setMaxCapacity(int capacity) throws javax.management.InvalidAttributeValueException
public int getCapacityIncrement()
MaxCapacity
.
public void setCapacityIncrement(int capacity) throws javax.management.InvalidAttributeValueException
MaxCapacity
.
public boolean isShrinkingEnabled()
InitialCapacity
when it is detected that connections
created during increased traffic are not being used.
public void setShrinkingEnabled(boolean enable) throws javax.management.InvalidAttributeValueException
InitialCapacity
when it is detected that connections
created during increased traffic are not being used.
public int getShrinkPeriodMinutes()
ShrinkingEnabled
must be set to true for a
connection pool to shrink.
public void setShrinkPeriodMinutes(int minutes) throws javax.management.InvalidAttributeValueException
ShrinkingEnabled
must be set to true for a
connection pool to shrink.
public int getRefreshMinutes()
RefreshMinutes
interval, unused database connections are
tested using TestTableName
. Connections that do not pass
the test will be closed and reopened to re-establish
a valid physical database connection. If
TestTableName
is not set, the test will not be
performed.
public void setRefreshMinutes(int minutes) throws javax.management.InvalidAttributeValueException
RefreshMinutes
interval, unused database connections are
tested using TestTableName
. Connections that do not pass
the test will be closed and reopened to re-establish
a valid physical database connection. If
TestTableName
is not set, the test will not be
performed.
public java.lang.String getTestTableName()
"select count(*) from TestTableName"
The TestTableName
must exist and be accessible to
the database user for the connection. Most database servers
optimize this SQL to avoid a table scan, but it is still a good
idea to set TestTableName
to the name of a table
that is known to have few rows, or even no rows.
If TestTableName
begins with "SQL "
,
then the rest of the string following that leading token will be
taken as a literal sql statement that will be used to test a
connection.
public void setTestTableName(java.lang.String table) throws javax.management.InvalidAttributeValueException
"select count(*) from TestTableName"
The TestTableName
must exist and be accessible to
the database user for the connection. Most database servers
optimize this SQL to avoid a table scan, but it is still a good
idea to set TestTableName
to the name of a table
that is known to have few rows, or even no rows.
If TestTableName
begins with "SQL "
,
then the rest of the string following that leading token will be
taken as a literal sql statement that will be used to test a
connection.
public boolean getTestConnectionsOnReserve()
public void setTestConnectionsOnReserve(boolean enable) throws javax.management.InvalidAttributeValueException
public boolean getTestConnectionsOnRelease()
public void setTestConnectionsOnRelease(boolean enable) throws javax.management.InvalidAttributeValueException
public java.lang.String getPassword()
setPassword()
or as a key=value pair in setProperties()
.
public void setPassword(java.lang.String password) throws javax.management.InvalidAttributeValueException
Properties
. The value is stored in an
encrypted form in the config.xml file and when displayed on the
administration console. Use this method to avoid storing
passwords in clear text in config.xml.
public java.lang.String getXAPassword()
Properties
.
public void setXAPassword(java.lang.String password) throws javax.management.InvalidAttributeValueException
Properties
.
public boolean getSupportsLocalTransaction()
This property applies to connection pools that use an XA driver only, and is ignored for connection pools that use non-XA drivers.
true
if XA driver supports SQL with no global transaction.public void setSupportsLocalTransaction(boolean support) throws javax.management.InvalidAttributeValueException
public int getXAPreparedStatementCacheSize()
Cached prepared statements are replaced according to a least recently used (LRU) algorithm.
This property applies to connection pools that use an XA JDBC driver only, and is ignored if a non-XA driver is used.
setXAPreparedStatementCacheSize(int)
public void setXAPreparedStatementCacheSize(int size) throws javax.management.InvalidAttributeValueException
Cached prepared statements are replaced according to a least recently used (LRU) algorithm.
This property applies to connection pools that use an XA JDBC driver only, and is ignored if a non-XA driver is used. The maximum number of prepared statements cached by this XA connection pool. If the value is 0, caching is turned off.
getXAPreparedStatementCacheSize()
public boolean getEnableResourceHealthMonitoring()
This property applies to XA connection pools only, and is ignored for connection pools that use a non-XA driver.
public void setEnableResourceHealthMonitoring(boolean enable) throws javax.management.InvalidAttributeValueException
Determines whether JTA resource health monitoring is enabled for this XA connection pool.
public int getXARetryDurationSeconds()
public void setXARetryDurationSeconds(int duration) throws javax.management.InvalidAttributeValueException
public int getXARetryIntervalSeconds()
public void setXARetryIntervalSeconds(int interval) throws javax.management.InvalidAttributeValueException
public void setPreparedStatementCacheSize(int cacheSize)
getPreparedStatementCacheSize()
public int getPreparedStatementCacheSize()
setPreparedStatementCacheSize(int)
public void setCountOfRefreshFailuresTillDisable(int newVal)
newVal
- The new attribute valuepublic int getCountOfRefreshFailuresTillDisable()
public void setCountOfTestFailuresTillFlush(int newVal)
newVal
- The new attribute valuepublic int getCountOfTestFailuresTillFlush()
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs70 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |