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, stop
public 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
UniversalConnectionPoolException
public void setMaxConnectionsPerService(int maxConnectionsPerService) throws UniversalConnectionPoolException
maxConnectionsPerService
- The maximum number of connections that can be obtained to a
particular service.UniversalConnectionPoolException
public ModelMBeanInfo getMBeanInfo(ObjectName mbeanObjName, String mbeanDisplayName) throws UniversalConnectionPoolException
getMBeanInfo
in interface UniversalConnectionPoolMBean
getMBeanInfo
in class UniversalConnectionPoolMBeanBase
mbeanObjName
- 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)
UniversalConnectionPoolMBean
useStrictWebSessionAffinity
in interface UniversalConnectionPoolMBean
useStrictWebSessionAffinity
in class UniversalConnectionPoolMBeanBase
strict
- if strict, otherwise nonstrictpublic void useStrictXAAffinity(boolean strict)
useStrictXAAffinity
in interface UniversalConnectionPoolMBean
useStrictXAAffinity
in class UniversalConnectionPoolMBeanBase
public long getSuccessfulAffinityBasedBorrowCount()
UniversalConnectionPoolMBeanBase
getSuccessfulAffinityBasedBorrowCount
in interface UniversalConnectionPoolMBean
getSuccessfulAffinityBasedBorrowCount
in class UniversalConnectionPoolMBeanBase
public long getFailedAffinityBasedBorrowCount()
UniversalConnectionPoolMBeanBase
getFailedAffinityBasedBorrowCount
in interface UniversalConnectionPoolMBean
getFailedAffinityBasedBorrowCount
in class UniversalConnectionPoolMBeanBase
public long getSuccessfulRCLBBasedBorrowCount()
UniversalConnectionPoolMBeanBase
getSuccessfulRCLBBasedBorrowCount
in interface UniversalConnectionPoolMBean
getSuccessfulRCLBBasedBorrowCount
in class UniversalConnectionPoolMBeanBase
public long getFailedRCLBBasedBorrowCount()
UniversalConnectionPoolMBeanBase
getFailedRCLBBasedBorrowCount
in interface UniversalConnectionPoolMBean
getFailedRCLBBasedBorrowCount
in class UniversalConnectionPoolMBeanBase
public String getFcfProcessingInfo()
UniversalConnectionPoolMBeanBase
getFcfProcessingInfo
in interface UniversalConnectionPoolMBean
getFcfProcessingInfo
in class UniversalConnectionPoolMBeanBase
public String getFcfProcessingInfoProcessedOnly()
getFcfProcessingInfoProcessedOnly
in interface UniversalConnectionPoolMBean
getFcfProcessingInfoProcessedOnly
in class UniversalConnectionPoolMBeanBase
public long getConnectionRepurposeCount()
getConnectionRepurposeCount
in interface UniversalConnectionPoolMBean
getConnectionRepurposeCount
in class UniversalConnectionPoolMBeanBase
Copyright © 2008, 2017, Oracle. All rights reserved.