public class JDBCUniversalConnectionPoolMBeanImpl extends UniversalConnectionPoolMBeanBase
connectionPool| Constructor and Description |
|---|
JDBCUniversalConnectionPoolMBeanImpl(UniversalConnectionPool connectionPool)
Constructor for JDBCUniversalConnectionPoolMBeanImpl.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getConnectionRepurposeCount()
Returns the number of connection repurposed in a shared pool
for a mutitenant database, where connections can be reused
across PDB's by switching their container and PDB service.
|
long |
getFailedAffinityBasedBorrowCount()
Gets the number of borrow requests that returned connections not
matching the affinity contexts.
|
long |
getFailedRCLBBasedBorrowCount()
Gets the number of borrow requests failed using Runtime Connection
Load-Balancing (RCLB) algorithms.
|
boolean |
getFastConnectionFailoverEnabled()
Gets the FastConnectionFailoverEnabled flag for the pool instance.
|
String |
getFcfProcessingInfo()
Gets the information of recent Fast Connection Failover (FCF)
attempts, in the form of a String.
|
String |
getFcfProcessingInfoProcessedOnly() |
int |
getMaxConnectionsPerService()
Gets the maximum number of connections that can be obtained to a particular
service, in a shared pool.
|
int |
getMaxIdleTime()
Gets the maximum idle time.
|
int |
getMaxStatements()
Gets the maximum number of statements that may be pooled or cached on a
Connection.
|
ModelMBeanInfo |
getMBeanInfo(ObjectName mbeanObjName,
String mbeanDisplayName)
Builds the MBeanInfo to define attributes, constructors, operations and
notifications to expose to the remote users.
|
String |
getONSConfiguration()
Returns the ONS configuration string that is used for remote ONS
subscription, in the form specified in setONSConfiguration(String).
|
int |
getPropertyCycle()
Gets the property cycle in seconds.
|
String |
getSQLForValidateConnection()
Gets the value of the SQLForValidateConnection property.
|
long |
getSuccessfulAffinityBasedBorrowCount()
Gets successful affinity borrow count
|
long |
getSuccessfulRCLBBasedBorrowCount()
Gets the number of borrow requests succeeded using Runtime
Connection Load-Balancing (RCLB) algorithms.
|
void |
setFastConnectionFailoverEnabled(boolean failoverEnabled)
Sets the flag to enable/disable failover on this conneciton pool instance.
|
void |
setMaxConnectionsPerService(int maxConnectionsPerService)
Sets the maximum number of connections that can be obtained to a particular
service, in a shared pool.
|
void |
setMaxIdleTime(int idleTime)
Sets the maximum idle time for available connections in the pool.
|
void |
setMaxStatements(int maxStatements)
Sets the maximum number of statements that may be pooled or cached on
a connection.
|
void |
setONSConfiguration(String onsConfigStr)
This method sets the configuration string used for remote ONS
subscription.
|
void |
setPropertyCycle(int propertyCycle)
Sets the property cycle in seconds.
|
void |
setSQLForValidateConnection(String SQLString)
Sets the value of the SQLForValidateConnection property.
|
void |
useStrictWebSessionAffinity(boolean strict)
The knob for switching strict web session affinity
|
void |
useStrictXAAffinity(boolean strict) |
getAbandonedConnectionsCount, getAbandonedConnectionTimeout, getAvailableConnectionsCount, getAverageBorrowedConnectionsCount, getAverageConnectionWaitTime, getBorrowedConnectionsCount, getConnectionHarvestMaxCount, getConnectionHarvestTriggerCount, getConnectionsClosedCount, getConnectionsCreatedCount, getConnectionWaitTimeout, getCumulativeConnectionBorrowedCount, getCumulativeConnectionReturnedCount, getCumulativeConnectionUseTime, getCumulativeConnectionWaitTime, getCumulativeFailedConnectionWaitCount, getCumulativeFailedConnectionWaitTime, getCumulativeSuccessfulConnectionWaitCount, getCumulativeSuccessfulConnectionWaitTime, getInactiveConnectionTimeout, getInitialPoolSize, getLabeledConnectionsCount, getLifeCycleState, getMaxConnectionReuseCount, getMaxConnectionReuseTime, getMaxPoolSize, getMinPoolSize, getName, getPeakConnectionsCount, getPeakConnectionWaitTime, getPendingRequestsCount, getRemainingPoolCapacityCount, getSecondsToTrustIdleConnection, getStatistics, getTimeoutCheckInterval, getTimeToLiveConnectionTimeout, getTotalConnectionsCount, getUCPMBeanAttributes, getUCPMBeanOperations, getValidateConnectionOnBorrow, purge, recycle, refresh, setAbandonedConnectionTimeout, setConnectionHarvestMaxCount, setConnectionHarvestTriggerCount, setConnectionWaitTimeout, setInactiveConnectionTimeout, setInitialPoolSize, setMaxConnectionReuseCount, setMaxConnectionReuseTime, setMaxPoolSize, setMinPoolSize, setName, setSecondsToTrustIdleConnection, setTimeoutCheckInterval, setTimeToLiveConnectionTimeout, setValidateConnectionOnBorrow, start, stoppublic JDBCUniversalConnectionPoolMBeanImpl(UniversalConnectionPool connectionPool) throws UniversalConnectionPoolException
UniversalConnectionPoolException - If an error occurs constructing
JDBCUniversalConnectionPoolMBeanImpl.public void setSQLForValidateConnection(String SQLString) throws SQLException
SQLString - The SQL string used for connection validation.SQLException - If an error occurs while setting this property.public String getSQLForValidateConnection()
public void setMaxStatements(int maxStatements)
throws SQLException
maxStatements - maximum number of statements to be pooled.SQLException - Exception occurred during the process of setting
maximum statements that may be pooled on a connection.public int getMaxStatements()
public void setMaxIdleTime(int idleTime)
throws UniversalConnectionPoolException
idleTime - Maximum idle time in seconds.UniversalConnectionPoolException - If an error occurs while setting this property.public int getMaxIdleTime()
public void setPropertyCycle(int propertyCycle)
throws UniversalConnectionPoolException
propertyCycle - Time interval in seconds to enforce
connection pool timeout properties.UniversalConnectionPoolException - If an error occurs while setting this property.public int getPropertyCycle()
public void setFastConnectionFailoverEnabled(boolean failoverEnabled)
throws UniversalConnectionPoolException
failoverEnabled - Flag to enable/disable failover on this conneciton pool.UniversalConnectionPoolException - If an error occurs while setting this property.public boolean getFastConnectionFailoverEnabled()
public void setONSConfiguration(String onsConfigStr) throws UniversalConnectionPoolException
onsConfigStr - The configuration string for remote ONS subscription.UniversalConnectionPoolException - If an error occurs while setting this property.public String getONSConfiguration() throws UniversalConnectionPoolException
UniversalConnectionPoolException - If an error occurs while getting this property value.public int getMaxConnectionsPerService()
throws UniversalConnectionPoolException
UniversalConnectionPoolExceptionpublic void setMaxConnectionsPerService(int maxConnectionsPerService)
throws UniversalConnectionPoolException
maxConnectionsPerService - The maximum number of connections that can be obtained to a
particular service.UniversalConnectionPoolExceptionpublic ModelMBeanInfo getMBeanInfo(ObjectName mbeanObjName, String mbeanDisplayName) throws UniversalConnectionPoolException
getMBeanInfo in interface UniversalConnectionPoolMBeangetMBeanInfo in class UniversalConnectionPoolMBeanBasembeanObjName - Unique name for the JDBCUniversalConnectionPoolMBeanImpl.mbeanDisplayName - Display name for the JDBCUniversalConnectionPoolMBeanImpl.UniversalConnectionPoolException - If an error occurs while getting the MBeanInfo for
JDBCUniversalConnectionPoolMBeanImpl.public void useStrictWebSessionAffinity(boolean strict)
UniversalConnectionPoolMBeanuseStrictWebSessionAffinity in interface UniversalConnectionPoolMBeanuseStrictWebSessionAffinity in class UniversalConnectionPoolMBeanBasestrict - if strict, otherwise nonstrictpublic void useStrictXAAffinity(boolean strict)
useStrictXAAffinity in interface UniversalConnectionPoolMBeanuseStrictXAAffinity in class UniversalConnectionPoolMBeanBasepublic long getSuccessfulAffinityBasedBorrowCount()
UniversalConnectionPoolMBeanBasegetSuccessfulAffinityBasedBorrowCount in interface UniversalConnectionPoolMBeangetSuccessfulAffinityBasedBorrowCount in class UniversalConnectionPoolMBeanBasepublic long getFailedAffinityBasedBorrowCount()
UniversalConnectionPoolMBeanBasegetFailedAffinityBasedBorrowCount in interface UniversalConnectionPoolMBeangetFailedAffinityBasedBorrowCount in class UniversalConnectionPoolMBeanBasepublic long getSuccessfulRCLBBasedBorrowCount()
UniversalConnectionPoolMBeanBasegetSuccessfulRCLBBasedBorrowCount in interface UniversalConnectionPoolMBeangetSuccessfulRCLBBasedBorrowCount in class UniversalConnectionPoolMBeanBasepublic long getFailedRCLBBasedBorrowCount()
UniversalConnectionPoolMBeanBasegetFailedRCLBBasedBorrowCount in interface UniversalConnectionPoolMBeangetFailedRCLBBasedBorrowCount in class UniversalConnectionPoolMBeanBasepublic String getFcfProcessingInfo()
UniversalConnectionPoolMBeanBasegetFcfProcessingInfo in interface UniversalConnectionPoolMBeangetFcfProcessingInfo in class UniversalConnectionPoolMBeanBasepublic String getFcfProcessingInfoProcessedOnly()
getFcfProcessingInfoProcessedOnly in interface UniversalConnectionPoolMBeangetFcfProcessingInfoProcessedOnly in class UniversalConnectionPoolMBeanBasepublic long getConnectionRepurposeCount()
getConnectionRepurposeCount in interface UniversalConnectionPoolMBeangetConnectionRepurposeCount in class UniversalConnectionPoolMBeanBase
Copyright © 2008, 2016, Oracle. All rights reserved.