public interface UniversalConnectionPoolStatistics
The cumulative statistics are collected across multiple pool start/stop cycles, while the others only apply to the current running connection pool instance.
UniversalConnectionPool| Modifier and Type | Method and Description |
|---|---|
int |
getAbandonedConnectionsCount()
Gets the number of abandoned connections that have been reclaimed.
|
int |
getAvailableConnectionsCount()
Gets the number of connections that are available in the connection
pool (that is, connections in the pool that are not currently in use by
clients).
|
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 number of connections that are actively in use by clients.
|
default long |
getConnectionCreationAttemptsSinceLastOutage()
Gets the number of connection creation attempts during database outages
when the driver threw SQLRecoverableException (temporary issue).
|
int |
getConnectionsClosedCount()
Gets the number of connections closed by this connection pool.
|
int |
getConnectionsCreatedCount()
Gets the number of connections created for this connection pool.
|
long |
getCumulativeConnectionBorrowedCount()
Gets the number of connections borrowed from the connection pool over the
life of the pool.
|
default long |
getCumulativeConnectionCreationAttemts()
Gets the number of connection creation attempts during database outages
when the driver threw SQLRecoverableException (temporary issue).
|
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.
|
int |
getLabeledConnectionsCount()
Gets the number of labeled connections in the connection pool.
|
default int |
getPeakBorrowedConnectionsCount()
Gets the maximum number of borrowed connections that the connection pool has
reached during the life of the pool.
|
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. |
default java.util.Map<java.lang.String,oracle.ucp.ShardConnectionStatistics> |
getShardConnectionStats()
Returns a map containing shard connection statistics object for various
shards discovered by the pool so far.
|
int |
getTotalConnectionsCount()
Gets the total number of connections (both available and borrowed)
in the connection pool.
|
default java.lang.String |
shortForm()
Get statistics in the short form (is used in exception messages).
|
int getTotalConnectionsCount()
int getAvailableConnectionsCount()
int getBorrowedConnectionsCount()
int getAverageBorrowedConnectionsCount()
int getPeakConnectionsCount()
default int getPeakBorrowedConnectionsCount()
int getRemainingPoolCapacityCount()
maxPoolSize.maxPoolSize.int getLabeledConnectionsCount()
int getConnectionsCreatedCount()
int getConnectionsClosedCount()
long getAverageConnectionWaitTime()
long getPeakConnectionWaitTime()
int getAbandonedConnectionsCount()
int getPendingRequestsCount()
long getCumulativeConnectionWaitTime()
long getCumulativeConnectionBorrowedCount()
long getCumulativeConnectionUseTime()
long getCumulativeConnectionReturnedCount()
long getCumulativeSuccessfulConnectionWaitTime()
long getCumulativeSuccessfulConnectionWaitCount()
long getCumulativeFailedConnectionWaitTime()
long getCumulativeFailedConnectionWaitCount()
default long getCumulativeConnectionCreationAttemts()
default long getConnectionCreationAttemptsSinceLastOutage()
default java.util.Map<java.lang.String,oracle.ucp.ShardConnectionStatistics> getShardConnectionStats()
default java.lang.String shortForm()
Example:
[ 100, 100, 5959, 5859, 0, 100, 16, 0, 100, 99 ],
or commonly:
[ Borrowed, Total, Created, Closed, Abandoned, Labeled, PendingRequests, RemainingCapacity, PeakCount ]
where:
Borrowed - number of borrowed connections in a pool;
Total - number of total connections in a pool;
Created - cumulative number of connection created since a pool's startup;
Closed - cumulative number of connections closed since a pool's startup;
Abandoned - cumulative number of abandoned connections (i.e. processed by the abandonement timer mechanism);
Labeled - number of labeled connections in a pool;
PendingRequests - number of pending borrow requests;
RemainingCapacity - number of connections to create over an existing set until the max pool size is reached;
PeakCount - number of connections at its peak since a pool's startup.
PeakBorrowedCount - number of borrowed connections at its peak since a pool's startup.