@Mutable @ThreadSafety(level=MOSTLY_THREADSAFE) public final class LDAPConnectionPoolStatistics extends java.lang.Object implements java.io.Serializable
Constructor and Description |
---|
LDAPConnectionPoolStatistics(AbstractConnectionPool pool)
Creates a new instance of this LDAP connection pool statistics object.
|
Modifier and Type | Method and Description |
---|---|
int |
getMaximumAvailableConnections()
Retrieves the maximum number of connections that may be available in the
pool at any time, if that information is available.
|
int |
getNumAvailableConnections()
Retrieves the number of connections currently available for use in the
pool, if that information is available.
|
long |
getNumConnectionsClosedDefunct()
Retrieves the number of connections that have been closed as defunct (i.e.,
they are no longer believed to be valid).
|
long |
getNumConnectionsClosedExpired()
Retrieves the number of connections that have been closed as expired (i.e.,
they have been established for longer than the maximum connection age for
the pool).
|
long |
getNumConnectionsClosedUnneeded()
Retrieves the number of connections that have been closed as unneeded
(i.e., they were created in response to heavy load but are no longer needed
to meet the current load, or they were closed when the pool was closed).
|
long |
getNumFailedCheckouts()
Retrieves the number of failed attempts to check out a connection from
the pool (including connections checked out for internal use by operations
processed as part of the pool).
|
long |
getNumFailedConnectionAttempts()
Retrieves the number of failed attempts to create a connection for use in
the connection pool.
|
long |
getNumReleasedValid()
Retrieves the number of times a valid, usable connection has been released
back to the pool after being checked out (including connections checked out
for internal use by operations processed within the pool).
|
long |
getNumSuccessfulCheckouts()
Retrieves the number of successful attempts to check out a connection from
the pool (including connections checked out for internal use by operations
processed as part of the pool).
|
long |
getNumSuccessfulCheckoutsAfterWaiting()
Retrieves the number of successful attempts to check out a connection from
the pool that had to wait for a connection to become available.
|
long |
getNumSuccessfulCheckoutsNewConnection()
Retrieves the number of successful attempts to check out a connection from
the pool that had to create a new connection because no existing
connections were available.
|
long |
getNumSuccessfulCheckoutsWithoutWaiting()
Retrieves the number of successful attempts to check out a connection from
the pool that were able to obtain an existing connection without waiting.
|
long |
getNumSuccessfulConnectionAttempts()
Retrieves the number of connections that have been successfully created for
use in conjunction with the connection pool.
|
void |
reset()
Resets all counters back to zero.
|
java.lang.String |
toString()
Retrieves a string representation of this LDAP connection pool statistics
object.
|
void |
toString(java.lang.StringBuilder buffer)
Appends a string representation of this LDAP connection pool statistics
object to the provided buffer.
|
public LDAPConnectionPoolStatistics(@NotNull AbstractConnectionPool pool)
pool
- The connection pool with which these statistics are
associated.public void reset()
public long getNumSuccessfulConnectionAttempts()
public long getNumFailedConnectionAttempts()
public long getNumConnectionsClosedDefunct()
public long getNumConnectionsClosedExpired()
public long getNumConnectionsClosedUnneeded()
public long getNumSuccessfulCheckouts()
public long getNumSuccessfulCheckoutsWithoutWaiting()
public long getNumSuccessfulCheckoutsAfterWaiting()
public long getNumSuccessfulCheckoutsNewConnection()
public long getNumFailedCheckouts()
public long getNumReleasedValid()
public int getNumAvailableConnections()
public int getMaximumAvailableConnections()
@NotNull public java.lang.String toString()
toString
in class java.lang.Object