Db2Poolmonitor Class - IBM DB2 Manual

Table of Contents

Advertisement

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|

DB2PoolMonitor class

348
Application Programming Guide and Reference for Java
properties
Properties for the reused connection. These properties override any
properties that are already defined on the DB2PooledConnection instance.
getDB2Connection (untrusted or trusted reuse without reauthentication)
Formats:
public java.sql.Connection getDB2Connection(
java.util.Properties properties)
throws java.sql.SQLException
Reuses an untrusted connection, without reauthentication.
This method is for dirty reuse of a connection. This means that the connection
state is not reset when the object is reused from the pool. Special register
settings and property settings remain in effect unless they are overridden by
passed properties. Global temporary tables are not deleted. Properties that are
not specified are not re-initialized. All JDBC standard transient properties, such
as the isolation level, autocommit mode, and read-only mode are reset to their
JDBC defaults. Certain properties, such as user, password, databaseName,
serverName, portNumber, planName, and pkList remain unchanged.
Parameter descriptions:
properties
Properties for the reused connection. These properties override any
properties that are already defined on the DB2PooledConnection instance.
Related concepts
Chapter 11, "JDBC and SQLJ connection pooling support," on page 465
Related reference
"DB2ConnectionPoolDataSource class" on page 341
The com.ibm.db2.jcc.DB2PoolMonitor class provides methods for monitoring the
global transport objects pool that is used for the connection concentrator and
Sysplex workload balancing.
DB2PoolMonitor fields
The following fields are defined only for the IBM Data Server Driver for JDBC and
SQLJ.
public static final int TRANSPORT_OBJECT = 1
This values is a parameter for the DB2PoolMonitor.getPoolMonitor method.
DB2PoolMonitor methods
The following methods are defined only for the IBM Data Server Driver for JDBC
and SQLJ.
agedOutObjectCount
Format:
public abstract int agedOutObjectCount()
Retrieves the number of objects that exceeded the idle time that was specified
by db2.jcc.maxTransportObjectIdleTime and were deleted from the pool.
createdObjectCount
Format:

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents