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 UniversalConnectionPoolMBean
UniversalConnectionPoolException
- If an error occurs while refreshing the UniversalConnectionPool.public void recycle() throws UniversalConnectionPoolException
recycle
in interface UniversalConnectionPoolMBean
UniversalConnectionPoolException
- If an error occurs while recycling the UniversalConnectionPool.public void purge() throws UniversalConnectionPoolException
purge
in interface UniversalConnectionPoolMBean
UniversalConnectionPoolException
- If an error occurs while recycling the UniversalConnectionPool.public void start() throws UniversalConnectionPoolException
start
in interface UniversalConnectionPoolMBean
UniversalConnectionPoolException
- If an error occurs while starting the UniversalConnectionPool.public void stop() throws UniversalConnectionPoolException
stop
in interface UniversalConnectionPoolMBean
UniversalConnectionPoolException
- If an error occurs while stopping the UniversalConnectionPool.public String getName()
getName
in interface UniversalConnectionPoolMBean
public void setName(String name) throws UniversalConnectionPoolException
setName
in interface UniversalConnectionPoolMBean
name
- A new name for the UniversalConnectionPool.UniversalConnectionPoolException
- If an error occurs while changing the name of
UniversalConnectionPool.public int getInitialPoolSize()
getInitialPoolSize
in interface UniversalConnectionPoolMBean
public void setInitialPoolSize(int initialPoolSize) throws UniversalConnectionPoolException
setInitialPoolSize
in interface UniversalConnectionPoolMBean
initialPoolSize
- New initialPoolSize for the UniversalConnectionPool.UniversalConnectionPoolException
- If an error occurs while changing the initialPoolSize of
UniversalConnectionPool.public int getMinPoolSize()
getMinPoolSize
in interface UniversalConnectionPoolMBean
public void setMinPoolSize(int minPoolSize) throws UniversalConnectionPoolException
setMinPoolSize
in interface UniversalConnectionPoolMBean
minPoolSize
- New minPoolSize for the UniversalConnectionPool.UniversalConnectionPoolException
- If an error occurs while changing the minPoolSize of
UniversalConnectionPool.public int getMaxPoolSize()
getMaxPoolSize
in interface UniversalConnectionPoolMBean
public void setMaxPoolSize(int maxPoolSize) throws UniversalConnectionPoolException
setMaxPoolSize
in interface UniversalConnectionPoolMBean
maxPoolSize
- New maxPoolSize for the UniversalConnectionPool.UniversalConnectionPoolException
- If an error occurs while changing the maxPoolSize of
UniversalConnectionPool.public int getInactiveConnectionTimeout()
getInactiveConnectionTimeout
in interface UniversalConnectionPoolMBean
public void setInactiveConnectionTimeout(int inactiveConnectionTimeout) throws UniversalConnectionPoolException
setInactiveConnectionTimeout
in interface UniversalConnectionPoolMBean
inactiveConnectionTimeout
- New inactiveConnectionTimeout for the UniversalConnectionPool.UniversalConnectionPoolException
- If an error occurs while changing the inactiveConnectionTimeout
of UniversalConnectionPool.public int getAbandonedConnectionTimeout()
getAbandonedConnectionTimeout
in interface UniversalConnectionPoolMBean
public void setAbandonedConnectionTimeout(int abandonedConnectionTimeout) throws UniversalConnectionPoolException
setAbandonedConnectionTimeout
in interface UniversalConnectionPoolMBean
abandonedConnectionTimeout
- New abandonedConnectionTimeout for the UniversalConnectionPool.UniversalConnectionPoolException
- If an error occurs while changing the abandonedConnectionTimeout
of UniversalConnectionPool.public int getConnectionWaitTimeout()
getConnectionWaitTimeout
in interface UniversalConnectionPoolMBean
public void setConnectionWaitTimeout(int connectionWaitTimeout) throws UniversalConnectionPoolException
setConnectionWaitTimeout
in interface UniversalConnectionPoolMBean
connectionWaitTimeout
- New connectionWaitTimeout for the UniversalConnectionPool.UniversalConnectionPoolException
- If an error occurs while changing the connectionWaitTimeout
of UniversalConnectionPool.public int getTimeToLiveConnectionTimeout()
getTimeToLiveConnectionTimeout
in interface UniversalConnectionPoolMBean
public void setTimeToLiveConnectionTimeout(int timeToLiveConnectionTimeout) throws UniversalConnectionPoolException
setTimeToLiveConnectionTimeout
in interface UniversalConnectionPoolMBean
timeToLiveConnectionTimeout
- New timeToLiveConnectionTimeout for the UniversalConnectionPool.UniversalConnectionPoolException
- If an error occurs while changing the timeToLiveConnectionTimeout
of UniversalConnectionPool.public int getTimeoutCheckInterval()
getTimeoutCheckInterval
in interface UniversalConnectionPoolMBean
public void setTimeoutCheckInterval(int timeoutCheckInterval) throws UniversalConnectionPoolException
setTimeoutCheckInterval
in interface UniversalConnectionPoolMBean
timeoutCheckInterval
- New timeoutCheckInterval for the UniversalConnectionPool.UniversalConnectionPoolException
- If an error occurs while changing the timeoutCheckInterval
of UniversalConnectionPool.public boolean getValidateConnectionOnBorrow()
getValidateConnectionOnBorrow
in interface UniversalConnectionPoolMBean
public void setValidateConnectionOnBorrow(boolean validateConnectionOnBorrow)
setValidateConnectionOnBorrow
in interface UniversalConnectionPoolMBean
validateConnectionOnBorrow
- New validateConnectionOnBorrow for the UniversalConnectionPool.UniversalConnectionPoolException
- If an error occurs while changing the validateConnectionOnBorrow
of UniversalConnectionPool.public int getConnectionHarvestTriggerCount()
getConnectionHarvestTriggerCount
in interface UniversalConnectionPoolMBean
public void setConnectionHarvestTriggerCount(int connectionHarvestTriggerCount) throws UniversalConnectionPoolException
setConnectionHarvestTriggerCount
in interface UniversalConnectionPoolMBean
connectionHarvestTriggerCount
- New connectionHarvestTriggerCount for the UniversalConnectionPool.UniversalConnectionPoolException
- If an error occurs while changing the
connectionHarvestTriggerCount of UniversalConnectionPool.public int getConnectionHarvestMaxCount()
getConnectionHarvestMaxCount
in interface UniversalConnectionPoolMBean
public void setConnectionHarvestMaxCount(int connectionHarvestMaxCount) throws UniversalConnectionPoolException
setConnectionHarvestMaxCount
in interface UniversalConnectionPoolMBean
connectionHarvestMaxCount
- New connectionHarvestMaxCount for the UniversalConnectionPool.UniversalConnectionPoolException
- If an error occurs while changing the connectionHarvestMaxCount
of UniversalConnectionPool.public long getMaxConnectionReuseTime()
getMaxConnectionReuseTime
in interface UniversalConnectionPoolMBean
public void setMaxConnectionReuseTime(long maxConnectionReuseTime) throws UniversalConnectionPoolException
setMaxConnectionReuseTime
in interface UniversalConnectionPoolMBean
maxConnectionReuseTime
- New maxConnectionReuseTime (in seconds) for the
UniversalConnectionPool.UniversalConnectionPoolException
- If an error occurs while changing the maxConnectionReuseTime of
UniversalConnectionPool.public int getMaxConnectionReuseCount()
getMaxConnectionReuseCount
in interface UniversalConnectionPoolMBean
public void setMaxConnectionReuseCount(int maxConnectionReuseCount) throws UniversalConnectionPoolException
setMaxConnectionReuseCount
in interface UniversalConnectionPoolMBean
maxConnectionReuseCount
- New maxConnectionReuseCount for the UniversalConnectionPool.UniversalConnectionPoolException
- If an error occurs while changing the maxConnectionReuseCount of
UniversalConnectionPool.public int getAvailableConnectionsCount()
getAvailableConnectionsCount
in interface UniversalConnectionPoolMBean
public int getBorrowedConnectionsCount()
getBorrowedConnectionsCount
in interface UniversalConnectionPoolMBean
public String getStatistics()
getStatistics
in interface UniversalConnectionPoolMBean
public String getLifeCycleState()
getLifeCycleState
in interface UniversalConnectionPoolMBean
public void useStrictWebSessionAffinity(boolean strict)
UniversalConnectionPoolMBean
useStrictWebSessionAffinity
in interface UniversalConnectionPoolMBean
strict
- if strict, otherwise nonstrictpublic void useStrictXAAffinity(boolean strict)
useStrictXAAffinity
in interface UniversalConnectionPoolMBean
public int getSecondsToTrustIdleConnection()
UniversalConnectionPoolMBean
setSecondsToTrustIdleConnection()
.getSecondsToTrustIdleConnection
in interface UniversalConnectionPoolMBean
public void setSecondsToTrustIdleConnection(int secondsToTrustIdleConnection) throws UniversalConnectionPoolException
UniversalConnectionPoolMBean
setValidateConnectionOnBorrow(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 UniversalConnectionPoolMBean
secondsToTrustIdleConnection
- The value of how long a connection can be trusted to skip
connectionValidationOnBorrowUniversalConnectionPoolException
public int getTotalConnectionsCount()
getTotalConnectionsCount
in interface UniversalConnectionPoolMBean
public int getAverageBorrowedConnectionsCount()
getAverageBorrowedConnectionsCount
in interface UniversalConnectionPoolMBean
public int getPeakConnectionsCount()
getPeakConnectionsCount
in interface UniversalConnectionPoolMBean
public int getRemainingPoolCapacityCount()
maxPoolSize
.getRemainingPoolCapacityCount
in interface UniversalConnectionPoolMBean
maxPoolSize
.public int getLabeledConnectionsCount()
getLabeledConnectionsCount
in interface UniversalConnectionPoolMBean
public int getConnectionsCreatedCount()
getConnectionsCreatedCount
in interface UniversalConnectionPoolMBean
public int getConnectionsClosedCount()
getConnectionsClosedCount
in interface UniversalConnectionPoolMBean
public long getAverageConnectionWaitTime()
getAverageConnectionWaitTime
in interface UniversalConnectionPoolMBean
public long getPeakConnectionWaitTime()
getPeakConnectionWaitTime
in interface UniversalConnectionPoolMBean
public int getAbandonedConnectionsCount()
getAbandonedConnectionsCount
in interface UniversalConnectionPoolMBean
public int getPendingRequestsCount()
getPendingRequestsCount
in interface UniversalConnectionPoolMBean
public long getCumulativeConnectionWaitTime()
getCumulativeConnectionWaitTime
in interface UniversalConnectionPoolMBean
public long getCumulativeConnectionBorrowedCount()
getCumulativeConnectionBorrowedCount
in interface UniversalConnectionPoolMBean
public long getCumulativeConnectionUseTime()
getCumulativeConnectionUseTime
in interface UniversalConnectionPoolMBean
public long getCumulativeConnectionReturnedCount()
getCumulativeConnectionReturnedCount
in interface UniversalConnectionPoolMBean
public long getCumulativeSuccessfulConnectionWaitTime()
getCumulativeSuccessfulConnectionWaitTime
in interface UniversalConnectionPoolMBean
public long getCumulativeSuccessfulConnectionWaitCount()
getCumulativeSuccessfulConnectionWaitCount
in interface UniversalConnectionPoolMBean
public long getCumulativeFailedConnectionWaitTime()
getCumulativeFailedConnectionWaitTime
in interface UniversalConnectionPoolMBean
public long getCumulativeFailedConnectionWaitCount()
getCumulativeFailedConnectionWaitCount
in interface UniversalConnectionPoolMBean
public long getSuccessfulAffinityBasedBorrowCount()
getSuccessfulAffinityBasedBorrowCount
in interface UniversalConnectionPoolMBean
public long getFailedAffinityBasedBorrowCount()
getFailedAffinityBasedBorrowCount
in interface UniversalConnectionPoolMBean
public long getSuccessfulRCLBBasedBorrowCount()
getSuccessfulRCLBBasedBorrowCount
in interface UniversalConnectionPoolMBean
public long getFailedRCLBBasedBorrowCount()
getFailedRCLBBasedBorrowCount
in interface UniversalConnectionPoolMBean
public String getFcfProcessingInfo()
getFcfProcessingInfo
in interface UniversalConnectionPoolMBean
public String getFcfProcessingInfoProcessedOnly()
getFcfProcessingInfoProcessedOnly
in interface UniversalConnectionPoolMBean
public long getConnectionRepurposeCount()
getConnectionRepurposeCount
in interface UniversalConnectionPoolMBean
public ModelMBeanInfo getMBeanInfo(ObjectName mbeanObjName, String mbeanDisplayName) throws UniversalConnectionPoolException
getMBeanInfo
in interface UniversalConnectionPoolMBean
mbeanObjName
- 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 UniversalConnectionPoolMBean
UniversalConnectionPoolException
- If an error occurs while getting the ModelMBeanAttributeInfo[]
for UniversalConnectionPoolMBean.public ModelMBeanOperationInfo[] getUCPMBeanOperations() throws UniversalConnectionPoolException
getUCPMBeanOperations
in interface UniversalConnectionPoolMBean
UniversalConnectionPoolException
- If an error occurs while getting the ModelMBeanOperationInfo[]
for UniversalConnectionPoolMBean.
Copyright © 2008, 2017, Oracle. All rights reserved.