public class UniversalConnectionPoolMBeanBase extends Object implements UniversalConnectionPoolMBean
| Modifier and Type | Field and Description |
|---|---|
protected UniversalConnectionPool |
connectionPool |
| Constructor and Description |
|---|
UniversalConnectionPoolMBeanBase(UniversalConnectionPool connectionPool)
Constructor for UniversalConnectionPoolMBeanBase.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getAbandonedConnectionsCount()
Gets the number of abandoned connections that have been reclaimed.
|
int |
getAbandonedConnectionTimeout()
Gets the abandonedConnectionTimeout for UniversalConnectionPool.
|
int |
getAvailableConnectionsCount()
Gets the availableConnectionsCount for UniversalConnectionPool.
|
int |
getAverageBorrowedConnectionsCount()
Gets the average number of connections that are borrowed and
actively in use by clients.
|
long |
getAverageConnectionWaitTime()
Gets the average time (in milliseconds) a user thread has to wait before it could obtain
a connection from the connection pool.
|
int |
getBorrowedConnectionsCount()
Gets the borrowedConnectionsCount for UniversalConnectionPool.
|
int |
getConnectionHarvestMaxCount()
Gets the connectionHarvestMaxCount for UniversalConnectionPool.
|
int |
getConnectionHarvestTriggerCount()
Gets the connectionHarvestTriggerCount for UniversalConnectionPool.
|
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.
|
int |
getConnectionsClosedCount()
Gets the number of connections closed by this connection pool.
|
int |
getConnectionsCreatedCount()
Gets the number of connections created for this connection pool.
|
int |
getConnectionWaitTimeout()
Gets the connectionWaitTimeout for UniversalConnectionPool.
|
long |
getCumulativeConnectionBorrowedCount()
Gets the number of connections borrowed from the connection pool over the
life of the pool.
|
long |
getCumulativeConnectionReturnedCount()
Gets the number of connections returned to the connection pool
over the life of the pool.
|
long |
getCumulativeConnectionUseTime()
Gets the cumulative time (in milliseconds) of connections that were
borrowed from the pool and remained in use.
|
long |
getCumulativeConnectionWaitTime()
Gets the cumulative time (in milliseconds) that connection requests
have waited for connections over the life of the connection pool.
|
long |
getCumulativeFailedConnectionWaitCount()
Gets the number of connection requests that waited unsuccessfully
to borrow a connection from the pool.
|
long |
getCumulativeFailedConnectionWaitTime()
Gets the cumulative time (in milliseconds) that connection requests
waited but failed to borrow a connection from the pool.
|
long |
getCumulativeSuccessfulConnectionWaitCount()
Gets the number of connection requests that waited successfully
and borrowed a connection from the pool.
|
long |
getCumulativeSuccessfulConnectionWaitTime()
Gets the cumulative time (in milliseconds) that connection requests
waited successfully and borrowed a connection from the pool.
|
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.
|
String |
getFcfProcessingInfo()
Gets the information of recent Fast Connection Failover (FCF)
attempts, in the form of a String.
|
String |
getFcfProcessingInfoProcessedOnly() |
int |
getInactiveConnectionTimeout()
Gets the inactiveConnectionTimeout for UniversalConnectionPool.
|
int |
getInitialPoolSize()
Gets the initialPoolSize for UniversalConnectionPool.
|
int |
getLabeledConnectionsCount()
Gets the number of labeled connections in the connection pool.
|
String |
getLifeCycleState()
Gets the UniversalConnectionPoolLifeCycleState of UniversalConnectionPool.
|
int |
getMaxConnectionReuseCount()
Gets the maxConnectionReuseCount for UniversalConnectionPool.
|
long |
getMaxConnectionReuseTime()
Gets the maxConnectionReuseTime for UniversalConnectionPool.
|
int |
getMaxPoolSize()
Gets the maxPoolSize for UniversalConnectionPool.
|
ModelMBeanInfo |
getMBeanInfo(ObjectName mbeanObjName,
String mbeanDisplayName)
Builds the MBeanInfo to define attributes, constructors, operations and
notifications to expose to the remote users.
|
int |
getMinPoolSize()
Gets the minPoolSize for UniversalConnectionPool.
|
String |
getName()
Gets name of UniversalConnectionPool.
|
int |
getPeakConnectionsCount()
Gets the maximum number of connections that the connection pool has
reached during the life of the pool.
|
long |
getPeakConnectionWaitTime()
Gets the longest wait (in milliseconds) a user request has to incur
before obtaining a connection from the connection pool.
|
int |
getPendingRequestsCount()
Gets the number of clients that are currently waiting to obtain a
connection from the pool.
|
int |
getRemainingPoolCapacityCount()
Gets the number of connections that may be added to the pool before
it reaches
maxPoolSize. |
int |
getSecondsToTrustIdleConnection()
Gets the seconds To Trust Idle Connection value.
|
String |
getStatistics()
Gets the UniversalConnectionPoolStatistics for UniversalConnectionPool.
|
long |
getSuccessfulAffinityBasedBorrowCount()
Gets successful affinity borrow count
|
long |
getSuccessfulRCLBBasedBorrowCount()
Gets the number of borrow requests succeeded using Runtime
Connection Load-Balancing (RCLB) algorithms.
|
int |
getTimeoutCheckInterval()
Gets the timeoutCheckInterval for UniversalConnectionPool.
|
int |
getTimeToLiveConnectionTimeout()
Gets the timeToLiveConnectionTimeout for UniversalConnectionPool.
|
int |
getTotalConnectionsCount()
Gets total connections count
|
ModelMBeanAttributeInfo[] |
getUCPMBeanAttributes()
Builds the Attribute information for UniversalConnectionPoolMBean.
|
ModelMBeanOperationInfo[] |
getUCPMBeanOperations()
Builds the operation information for UniversalConnectionPoolMBean.
|
boolean |
getValidateConnectionOnBorrow()
Gets the validateConnectionOnBorrow for UniversalConnectionPool.
|
void |
purge()
Purges the UniversalConnectionPool.
|
void |
recycle()
Recycles the UniversalConnectionPool.
|
void |
refresh()
Refreshes the UniversalConnectionPool.
|
void |
setAbandonedConnectionTimeout(int abandonedConnectionTimeout)
Sets the abandonedConnectionTimeout for UniversalConnectionPool.
|
void |
setConnectionHarvestMaxCount(int connectionHarvestMaxCount)
Sets the connectionHarvestMaxCount for UniversalConnectionPool.
|
void |
setConnectionHarvestTriggerCount(int connectionHarvestTriggerCount)
Sets the connectionHarvestTriggerCount for UniversalConnectionPool.
|
void |
setConnectionWaitTimeout(int connectionWaitTimeout)
Sets the connectionWaitTimeout for UniversalConnectionPool.
|
void |
setInactiveConnectionTimeout(int inactiveConnectionTimeout)
Sets the inactiveConnectionTimeout for UniversalConnectionPool.
|
void |
setInitialPoolSize(int initialPoolSize)
Sets the initialPoolSize for UniversalConnectionPool.
|
void |
setMaxConnectionReuseCount(int maxConnectionReuseCount)
Sets the maxConnectionReuseCount for UniversalConnectionPool.
|
void |
setMaxConnectionReuseTime(long maxConnectionReuseTime)
Sets the maxConnectionReuseTime for UniversalConnectionPool.
|
void |
setMaxPoolSize(int maxPoolSize)
Sets the maxPoolSize for UniversalConnectionPool.
|
void |
setMinPoolSize(int minPoolSize)
Sets the initialPoolSize for UniversalConnectionPool.
|
void |
setName(String name)
Sets the name of the UniversalConnectionPool.
|
void |
setSecondsToTrustIdleConnection(int secondsToTrustIdleConnection)
Sets the time in seconds to trust an idle connection to skip a validation
test.
|
void |
setTimeoutCheckInterval(int timeoutCheckInterval)
Sets the timeoutCheckInterval for UniversalConnectionPool.
|
void |
setTimeToLiveConnectionTimeout(int timeToLiveConnectionTimeout)
Sets the timeToLiveConnectionTimeout for UniversalConnectionPool.
|
void |
setValidateConnectionOnBorrow(boolean validateConnectionOnBorrow)
Sets the validateConnectionOnBorrow for UniversalConnectionPool.
|
void |
start()
Starts the UniversalConnectionPool.
|
void |
stop()
Stops the UniversalConnectionPool.
|
void |
useStrictWebSessionAffinity(boolean strict)
The knob for switching strict web session affinity
|
void |
useStrictXAAffinity(boolean strict) |
protected final UniversalConnectionPool connectionPool
public UniversalConnectionPoolMBeanBase(UniversalConnectionPool connectionPool) throws UniversalConnectionPoolException
UniversalConnectionPoolException - If an error occurs constructing UniversalConnectionPoolMBeanBase.public void refresh()
throws UniversalConnectionPoolException
refresh in interface UniversalConnectionPoolMBeanUniversalConnectionPoolException - If an error occurs while refreshing the UniversalConnectionPool.public void recycle()
throws UniversalConnectionPoolException
recycle in interface UniversalConnectionPoolMBeanUniversalConnectionPoolException - If an error occurs while recycling the UniversalConnectionPool.public void purge()
throws UniversalConnectionPoolException
purge in interface UniversalConnectionPoolMBeanUniversalConnectionPoolException - If an error occurs while recycling the UniversalConnectionPool.public void start()
throws UniversalConnectionPoolException
start in interface UniversalConnectionPoolMBeanUniversalConnectionPoolException - If an error occurs while starting the UniversalConnectionPool.public void stop()
throws UniversalConnectionPoolException
stop in interface UniversalConnectionPoolMBeanUniversalConnectionPoolException - If an error occurs while stopping the UniversalConnectionPool.public String getName()
getName in interface UniversalConnectionPoolMBeanpublic void setName(String name) throws UniversalConnectionPoolException
setName in interface UniversalConnectionPoolMBeanname - A new name for the UniversalConnectionPool.UniversalConnectionPoolException - If an error occurs while changing the name of
UniversalConnectionPool.public int getInitialPoolSize()
getInitialPoolSize in interface UniversalConnectionPoolMBeanpublic void setInitialPoolSize(int initialPoolSize)
throws UniversalConnectionPoolException
setInitialPoolSize in interface UniversalConnectionPoolMBeaninitialPoolSize - New initialPoolSize for the UniversalConnectionPool.UniversalConnectionPoolException - If an error occurs while changing the initialPoolSize of
UniversalConnectionPool.public int getMinPoolSize()
getMinPoolSize in interface UniversalConnectionPoolMBeanpublic void setMinPoolSize(int minPoolSize)
throws UniversalConnectionPoolException
setMinPoolSize in interface UniversalConnectionPoolMBeanminPoolSize - New minPoolSize for the UniversalConnectionPool.UniversalConnectionPoolException - If an error occurs while changing the minPoolSize of
UniversalConnectionPool.public int getMaxPoolSize()
getMaxPoolSize in interface UniversalConnectionPoolMBeanpublic void setMaxPoolSize(int maxPoolSize)
throws UniversalConnectionPoolException
setMaxPoolSize in interface UniversalConnectionPoolMBeanmaxPoolSize - New maxPoolSize for the UniversalConnectionPool.UniversalConnectionPoolException - If an error occurs while changing the maxPoolSize of
UniversalConnectionPool.public int getInactiveConnectionTimeout()
getInactiveConnectionTimeout in interface UniversalConnectionPoolMBeanpublic void setInactiveConnectionTimeout(int inactiveConnectionTimeout)
throws UniversalConnectionPoolException
setInactiveConnectionTimeout in interface UniversalConnectionPoolMBeaninactiveConnectionTimeout - New inactiveConnectionTimeout for the UniversalConnectionPool.UniversalConnectionPoolException - If an error occurs while changing the inactiveConnectionTimeout
of UniversalConnectionPool.public int getAbandonedConnectionTimeout()
getAbandonedConnectionTimeout in interface UniversalConnectionPoolMBeanpublic void setAbandonedConnectionTimeout(int abandonedConnectionTimeout)
throws UniversalConnectionPoolException
setAbandonedConnectionTimeout in interface UniversalConnectionPoolMBeanabandonedConnectionTimeout - New abandonedConnectionTimeout for the UniversalConnectionPool.UniversalConnectionPoolException - If an error occurs while changing the abandonedConnectionTimeout
of UniversalConnectionPool.public int getConnectionWaitTimeout()
getConnectionWaitTimeout in interface UniversalConnectionPoolMBeanpublic void setConnectionWaitTimeout(int connectionWaitTimeout)
throws UniversalConnectionPoolException
setConnectionWaitTimeout in interface UniversalConnectionPoolMBeanconnectionWaitTimeout - New connectionWaitTimeout for the UniversalConnectionPool.UniversalConnectionPoolException - If an error occurs while changing the connectionWaitTimeout
of UniversalConnectionPool.public int getTimeToLiveConnectionTimeout()
getTimeToLiveConnectionTimeout in interface UniversalConnectionPoolMBeanpublic void setTimeToLiveConnectionTimeout(int timeToLiveConnectionTimeout)
throws UniversalConnectionPoolException
setTimeToLiveConnectionTimeout in interface UniversalConnectionPoolMBeantimeToLiveConnectionTimeout - New timeToLiveConnectionTimeout for the UniversalConnectionPool.UniversalConnectionPoolException - If an error occurs while changing the timeToLiveConnectionTimeout
of UniversalConnectionPool.public int getTimeoutCheckInterval()
getTimeoutCheckInterval in interface UniversalConnectionPoolMBeanpublic void setTimeoutCheckInterval(int timeoutCheckInterval)
throws UniversalConnectionPoolException
setTimeoutCheckInterval in interface UniversalConnectionPoolMBeantimeoutCheckInterval - New timeoutCheckInterval for the UniversalConnectionPool.UniversalConnectionPoolException - If an error occurs while changing the timeoutCheckInterval
of UniversalConnectionPool.public boolean getValidateConnectionOnBorrow()
getValidateConnectionOnBorrow in interface UniversalConnectionPoolMBeanpublic void setValidateConnectionOnBorrow(boolean validateConnectionOnBorrow)
setValidateConnectionOnBorrow in interface UniversalConnectionPoolMBeanvalidateConnectionOnBorrow - New validateConnectionOnBorrow for the UniversalConnectionPool.UniversalConnectionPoolException - If an error occurs while changing the validateConnectionOnBorrow
of UniversalConnectionPool.public int getConnectionHarvestTriggerCount()
getConnectionHarvestTriggerCount in interface UniversalConnectionPoolMBeanpublic void setConnectionHarvestTriggerCount(int connectionHarvestTriggerCount)
throws UniversalConnectionPoolException
setConnectionHarvestTriggerCount in interface UniversalConnectionPoolMBeanconnectionHarvestTriggerCount - New connectionHarvestTriggerCount for the UniversalConnectionPool.UniversalConnectionPoolException - If an error occurs while changing the
connectionHarvestTriggerCount of UniversalConnectionPool.public int getConnectionHarvestMaxCount()
getConnectionHarvestMaxCount in interface UniversalConnectionPoolMBeanpublic void setConnectionHarvestMaxCount(int connectionHarvestMaxCount)
throws UniversalConnectionPoolException
setConnectionHarvestMaxCount in interface UniversalConnectionPoolMBeanconnectionHarvestMaxCount - New connectionHarvestMaxCount for the UniversalConnectionPool.UniversalConnectionPoolException - If an error occurs while changing the connectionHarvestMaxCount
of UniversalConnectionPool.public long getMaxConnectionReuseTime()
getMaxConnectionReuseTime in interface UniversalConnectionPoolMBeanpublic void setMaxConnectionReuseTime(long maxConnectionReuseTime)
throws UniversalConnectionPoolException
setMaxConnectionReuseTime in interface UniversalConnectionPoolMBeanmaxConnectionReuseTime - New maxConnectionReuseTime (in seconds) for the
UniversalConnectionPool.UniversalConnectionPoolException - If an error occurs while changing the maxConnectionReuseTime of
UniversalConnectionPool.public int getMaxConnectionReuseCount()
getMaxConnectionReuseCount in interface UniversalConnectionPoolMBeanpublic void setMaxConnectionReuseCount(int maxConnectionReuseCount)
throws UniversalConnectionPoolException
setMaxConnectionReuseCount in interface UniversalConnectionPoolMBeanmaxConnectionReuseCount - New maxConnectionReuseCount for the UniversalConnectionPool.UniversalConnectionPoolException - If an error occurs while changing the maxConnectionReuseCount of
UniversalConnectionPool.public int getAvailableConnectionsCount()
getAvailableConnectionsCount in interface UniversalConnectionPoolMBeanpublic int getBorrowedConnectionsCount()
getBorrowedConnectionsCount in interface UniversalConnectionPoolMBeanpublic String getStatistics()
getStatistics in interface UniversalConnectionPoolMBeanpublic String getLifeCycleState()
getLifeCycleState in interface UniversalConnectionPoolMBeanpublic void useStrictWebSessionAffinity(boolean strict)
UniversalConnectionPoolMBeanuseStrictWebSessionAffinity in interface UniversalConnectionPoolMBeanstrict - if strict, otherwise nonstrictpublic void useStrictXAAffinity(boolean strict)
useStrictXAAffinity in interface UniversalConnectionPoolMBeanpublic int getSecondsToTrustIdleConnection()
UniversalConnectionPoolMBeansetSecondsToTrustIdleConnection().getSecondsToTrustIdleConnection in interface UniversalConnectionPoolMBeanpublic void setSecondsToTrustIdleConnection(int secondsToTrustIdleConnection)
throws UniversalConnectionPoolException
UniversalConnectionPoolMBeansetValidateConnectionOnBorrow(boolean). When set to any
positive value, a connection validation during the checkout is skipped if
the connection was successfully used and returned to the pool within the
time specified for secondsToTrustIdleConnection. Default value is set to 0
seconds which means that the feature is disabled.setSecondsToTrustIdleConnection in interface UniversalConnectionPoolMBeansecondsToTrustIdleConnection - The value of how long a connection can be trusted to skip
connectionValidationOnBorrowUniversalConnectionPoolExceptionpublic int getTotalConnectionsCount()
getTotalConnectionsCount in interface UniversalConnectionPoolMBeanpublic int getAverageBorrowedConnectionsCount()
getAverageBorrowedConnectionsCount in interface UniversalConnectionPoolMBeanpublic int getPeakConnectionsCount()
getPeakConnectionsCount in interface UniversalConnectionPoolMBeanpublic int getRemainingPoolCapacityCount()
maxPoolSize.getRemainingPoolCapacityCount in interface UniversalConnectionPoolMBeanmaxPoolSize.public int getLabeledConnectionsCount()
getLabeledConnectionsCount in interface UniversalConnectionPoolMBeanpublic int getConnectionsCreatedCount()
getConnectionsCreatedCount in interface UniversalConnectionPoolMBeanpublic int getConnectionsClosedCount()
getConnectionsClosedCount in interface UniversalConnectionPoolMBeanpublic long getAverageConnectionWaitTime()
getAverageConnectionWaitTime in interface UniversalConnectionPoolMBeanpublic long getPeakConnectionWaitTime()
getPeakConnectionWaitTime in interface UniversalConnectionPoolMBeanpublic int getAbandonedConnectionsCount()
getAbandonedConnectionsCount in interface UniversalConnectionPoolMBeanpublic int getPendingRequestsCount()
getPendingRequestsCount in interface UniversalConnectionPoolMBeanpublic long getCumulativeConnectionWaitTime()
getCumulativeConnectionWaitTime in interface UniversalConnectionPoolMBeanpublic long getCumulativeConnectionBorrowedCount()
getCumulativeConnectionBorrowedCount in interface UniversalConnectionPoolMBeanpublic long getCumulativeConnectionUseTime()
getCumulativeConnectionUseTime in interface UniversalConnectionPoolMBeanpublic long getCumulativeConnectionReturnedCount()
getCumulativeConnectionReturnedCount in interface UniversalConnectionPoolMBeanpublic long getCumulativeSuccessfulConnectionWaitTime()
getCumulativeSuccessfulConnectionWaitTime in interface UniversalConnectionPoolMBeanpublic long getCumulativeSuccessfulConnectionWaitCount()
getCumulativeSuccessfulConnectionWaitCount in interface UniversalConnectionPoolMBeanpublic long getCumulativeFailedConnectionWaitTime()
getCumulativeFailedConnectionWaitTime in interface UniversalConnectionPoolMBeanpublic long getCumulativeFailedConnectionWaitCount()
getCumulativeFailedConnectionWaitCount in interface UniversalConnectionPoolMBeanpublic long getSuccessfulAffinityBasedBorrowCount()
getSuccessfulAffinityBasedBorrowCount in interface UniversalConnectionPoolMBeanpublic long getFailedAffinityBasedBorrowCount()
getFailedAffinityBasedBorrowCount in interface UniversalConnectionPoolMBeanpublic long getSuccessfulRCLBBasedBorrowCount()
getSuccessfulRCLBBasedBorrowCount in interface UniversalConnectionPoolMBeanpublic long getFailedRCLBBasedBorrowCount()
getFailedRCLBBasedBorrowCount in interface UniversalConnectionPoolMBeanpublic String getFcfProcessingInfo()
getFcfProcessingInfo in interface UniversalConnectionPoolMBeanpublic String getFcfProcessingInfoProcessedOnly()
getFcfProcessingInfoProcessedOnly in interface UniversalConnectionPoolMBeanpublic long getConnectionRepurposeCount()
getConnectionRepurposeCount in interface UniversalConnectionPoolMBeanpublic ModelMBeanInfo getMBeanInfo(ObjectName mbeanObjName, String mbeanDisplayName) throws UniversalConnectionPoolException
getMBeanInfo in interface UniversalConnectionPoolMBeanmbeanObjName - Unique name for the UniversalConnectionPool MBean.mbeanDisplayName - Display name for the UniversalConnection Pool MBean.UniversalConnectionPoolException - If an error occurs while getting the ModelMBeanInfo for
UniversalConnectionPoolMBean.public ModelMBeanAttributeInfo[] getUCPMBeanAttributes() throws UniversalConnectionPoolException
getUCPMBeanAttributes in interface UniversalConnectionPoolMBeanUniversalConnectionPoolException - If an error occurs while getting the ModelMBeanAttributeInfo[]
for UniversalConnectionPoolMBean.public ModelMBeanOperationInfo[] getUCPMBeanOperations() throws UniversalConnectionPoolException
getUCPMBeanOperations in interface UniversalConnectionPoolMBeanUniversalConnectionPoolException - If an error occurs while getting the ModelMBeanOperationInfo[]
for UniversalConnectionPoolMBean.
Copyright © 2008, 2016, Oracle. All rights reserved.