Package com.unboundid.ldap.sdk
Class LDAPConnectionStatistics
java.lang.Object
com.unboundid.ldap.sdk.LDAPConnectionStatistics
- All Implemented Interfaces:
Serializable
@Mutable
@ThreadSafety(level=MOSTLY_THREADSAFE)
public final class LDAPConnectionStatistics
extends Object
implements Serializable
This class provides a data structure with information about operations
performed on an associated LDAP connection. Calls to update statistics
maintained by this class are threadsafe, but attempts to access different
statistics may not be consistent if other operations may be in progress on
the connection.
The set of statistics maintained for connections:
The set of statistics maintained for connections:
- The number of attempts made to establish the connection.
- The number of times the connection has been closed.
- The number of requests of each type that have been sent over the connection.
- The number of responses of each type that have been received over the connection.
- The average response time (in milliseconds or nanoseconds) for each type of operation processed on the connection.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of this LDAP connection statistics object. -
Method Summary
Modifier and TypeMethodDescriptiondoubleRetrieves the average response time in milliseconds for all add operations processed on the associated connection.doubleRetrieves the average response time in nanoseconds for all add operations processed on the associated connection.doubleRetrieves the average response time in milliseconds for all bind operations processed on the associated connection.doubleRetrieves the average response time in nanoseconds for all bind operations processed on the associated connection.doubleRetrieves the average response time in milliseconds for all compare operations processed on the associated connection.doubleRetrieves the average response time in nanoseconds for all compare operations processed on the associated connection.doubleRetrieves the average response time in milliseconds for all delete operations processed on the associated connection.doubleRetrieves the average response time in nanoseconds for all delete operations processed on the associated connection.doubleRetrieves the average response time in milliseconds for all extended operations processed on the associated connection.doubleRetrieves the average response time in nanoseconds for all extended operations processed on the associated connection.doubleRetrieves the average response time in milliseconds for all modify DN operations processed on the associated connection.doubleRetrieves the average response time in nanoseconds for all modify DN operations processed on the associated connection.doubleRetrieves the average response time in milliseconds for all modify operations processed on the associated connection.doubleRetrieves the average response time in nanoseconds for all modify operations processed on the associated connection.doubleRetrieves the average response time in milliseconds for all search operations processed on the associated connection.doubleRetrieves the average response time in nanoseconds for all search operations processed on the associated connection.longRetrieves the number of abandon requests sent on the associated connection.longRetrieves the number of add requests sent on the associated connection.longRetrieves the number of add responses sent on the associated connection.longRetrieves the number of bind requests sent on the associated connection.longRetrieves the number of bind responses sent on the associated connection.longRetrieves the number of compare requests sent on the associated connection.longRetrieves the number of compare responses sent on the associated connection.longRetrieves the number of times an attempt has been made to establish the associated connection.longRetrieves the number of delete requests sent on the associated connection.longRetrieves the number of delete responses sent on the associated connection.longRetrieves the number of times the associated connection has been terminated.longRetrieves the number of extended requests sent on the associated connection.longRetrieves the number of extended responses sent on the associated connection.longRetrieves the number of modify DN requests sent on the associated connection.longRetrieves the number of modify DN responses sent on the associated connection.longRetrieves the number of modify requests sent on the associated connection.longRetrieves the number of modify responses sent on the associated connection.longRetrieves the number of search result done responses received on the associated connection.longRetrieves the number of search result entry responses received on the associated connection.longRetrieves the number of search result reference responses received on the associated connection.longRetrieves the number of search requests sent on the associated connection.longRetrieves the number of unbind requests sent on the associated connection.longRetrieves the total response time in milliseconds for all add operations processed on the associated connection.longRetrieves the total response time in nanoseconds for all add operations processed on the associated connection.longRetrieves the total response time in milliseconds for all bind operations processed on the associated connection.longRetrieves the total response time in nanoseconds for all bind operations processed on the associated connection.longRetrieves the total response time in milliseconds for all compare operations processed on the associated connection.longRetrieves the total response time in nanoseconds for all compare operations processed on the associated connection.longRetrieves the total response time in milliseconds for all delete operations processed on the associated connection.longRetrieves the total response time in nanoseconds for all delete operations processed on the associated connection.longRetrieves the total response time in milliseconds for all extended operations processed on the associated connection.longRetrieves the total response time in nanoseconds for all extended operations processed on the associated connection.longRetrieves the total response time in milliseconds for all modify DN operations processed on the associated connection.longRetrieves the total response time in nanoseconds for all modify DN operations processed on the associated connection.longRetrieves the total response time in milliseconds for all modify operations processed on the associated connection.longRetrieves the total response time in nanoseconds for all modify operations processed on the associated connection.longRetrieves the total response time in milliseconds for all search operations processed on the associated connection.longRetrieves the total response time in nanoseconds for all search operations processed on the associated connection.voidreset()Resets all counters back to zero.toString()Retrieves a string representation of this LDAP connection statistics object.voidtoString(StringBuilder buffer) Appends a string representation of this LDAP connection statistics object to the provided buffer.
-
Constructor Details
-
LDAPConnectionStatistics
public LDAPConnectionStatistics()Creates a new instance of this LDAP connection statistics object. All of the counts will be initialized to zero.
-
-
Method Details
-
reset
Resets all counters back to zero. -
getNumConnects
Retrieves the number of times an attempt has been made to establish the associated connection.- Returns:
- The number of times an attempt has been made to establish the associated connection.
-
getNumDisconnects
Retrieves the number of times the associated connection has been terminated. Note that this may exceed the number of connection attempts because there may be cases in which an attempt is made to close a connection after it has already been closed or otherwise disconnected.- Returns:
- The number of times the associated connection has been terminated.
-
getNumAbandonRequests
Retrieves the number of abandon requests sent on the associated connection.- Returns:
- The number of abandon requests sent on the associated connection.
-
getNumAddRequests
Retrieves the number of add requests sent on the associated connection.- Returns:
- The number of add requests sent on the associated connection.
-
getNumAddResponses
Retrieves the number of add responses sent on the associated connection.- Returns:
- The number of add responses sent on the associated connection.
-
getTotalAddResponseTimeNanos
Retrieves the total response time in nanoseconds for all add operations processed on the associated connection.- Returns:
- The total response time in nanoseconds for all add operations processed on the associated connection.
-
getTotalAddResponseTimeMillis
Retrieves the total response time in milliseconds for all add operations processed on the associated connection.- Returns:
- The total response time in milliseconds for all add operations processed on the associated connection.
-
getAverageAddResponseTimeNanos
Retrieves the average response time in nanoseconds for all add operations processed on the associated connection.- Returns:
- The average response time in nanoseconds for all add operations
processed on the associated connection, or
Double.NaNif no add operations have yet been performed.
-
getAverageAddResponseTimeMillis
Retrieves the average response time in milliseconds for all add operations processed on the associated connection.- Returns:
- The average response time in milliseconds for all add operations
processed on the associated connection, or
Double.NaNif no add operations have yet been performed.
-
getNumBindRequests
Retrieves the number of bind requests sent on the associated connection.- Returns:
- The number of bind requests sent on the associated connection.
-
getNumBindResponses
Retrieves the number of bind responses sent on the associated connection.- Returns:
- The number of bind responses sent on the associated connection.
-
getTotalBindResponseTimeNanos
Retrieves the total response time in nanoseconds for all bind operations processed on the associated connection.- Returns:
- The total response time in nanoseconds for all bind operations processed on the associated connection.
-
getTotalBindResponseTimeMillis
Retrieves the total response time in milliseconds for all bind operations processed on the associated connection.- Returns:
- The total response time in milliseconds for all bind operations processed on the associated connection.
-
getAverageBindResponseTimeNanos
Retrieves the average response time in nanoseconds for all bind operations processed on the associated connection.- Returns:
- The average response time in nanoseconds for all bind operations
processed on the associated connection, or
Double.NaNif no bind operations have yet been performed.
-
getAverageBindResponseTimeMillis
Retrieves the average response time in milliseconds for all bind operations processed on the associated connection.- Returns:
- The average response time in milliseconds for all bind operations
processed on the associated connection, or
Double.NaNif no bind operations have yet been performed.
-
getNumCompareRequests
Retrieves the number of compare requests sent on the associated connection.- Returns:
- The number of compare requests sent on the associated connection.
-
getNumCompareResponses
Retrieves the number of compare responses sent on the associated connection.- Returns:
- The number of compare responses sent on the associated connection.
-
getTotalCompareResponseTimeNanos
Retrieves the total response time in nanoseconds for all compare operations processed on the associated connection.- Returns:
- The total response time in nanoseconds for all compare operations processed on the associated connection.
-
getTotalCompareResponseTimeMillis
Retrieves the total response time in milliseconds for all compare operations processed on the associated connection.- Returns:
- The total response time in milliseconds for all compare operations processed on the associated connection.
-
getAverageCompareResponseTimeNanos
Retrieves the average response time in nanoseconds for all compare operations processed on the associated connection.- Returns:
- The average response time in nanoseconds for all compare
operations processed on the associated connection, or
Double.NaNif no compare operations have yet been performed.
-
getAverageCompareResponseTimeMillis
Retrieves the average response time in milliseconds for all compare operations processed on the associated connection.- Returns:
- The average response time in milliseconds for all compare
operations processed on the associated connection, or
Double.NaNif no compare operations have yet been performed.
-
getNumDeleteRequests
Retrieves the number of delete requests sent on the associated connection.- Returns:
- The number of delete requests sent on the associated connection.
-
getNumDeleteResponses
Retrieves the number of delete responses sent on the associated connection.- Returns:
- The number of delete responses sent on the associated connection.
-
getTotalDeleteResponseTimeNanos
Retrieves the total response time in nanoseconds for all delete operations processed on the associated connection.- Returns:
- The total response time in nanoseconds for all delete operations processed on the associated connection.
-
getTotalDeleteResponseTimeMillis
Retrieves the total response time in milliseconds for all delete operations processed on the associated connection.- Returns:
- The total response time in milliseconds for all delete operations processed on the associated connection.
-
getAverageDeleteResponseTimeNanos
Retrieves the average response time in nanoseconds for all delete operations processed on the associated connection.- Returns:
- The average response time in nanoseconds for all delete
operations processed on the associated connection, or
Double.NaNif no delete operations have yet been performed.
-
getAverageDeleteResponseTimeMillis
Retrieves the average response time in milliseconds for all delete operations processed on the associated connection.- Returns:
- The average response time in milliseconds for all delete
operations processed on the associated connection, or
Double.NaNif no delete operations have yet been performed.
-
getNumExtendedRequests
Retrieves the number of extended requests sent on the associated connection.- Returns:
- The number of extended requests sent on the associated connection.
-
getNumExtendedResponses
Retrieves the number of extended responses sent on the associated connection.- Returns:
- The number of extended responses sent on the associated connection.
-
getTotalExtendedResponseTimeNanos
Retrieves the total response time in nanoseconds for all extended operations processed on the associated connection.- Returns:
- The total response time in nanoseconds for all extended operations processed on the associated connection.
-
getTotalExtendedResponseTimeMillis
Retrieves the total response time in milliseconds for all extended operations processed on the associated connection.- Returns:
- The total response time in milliseconds for all extended operations processed on the associated connection.
-
getAverageExtendedResponseTimeNanos
Retrieves the average response time in nanoseconds for all extended operations processed on the associated connection.- Returns:
- The average response time in nanoseconds for all extended
operations processed on the associated connection, or
Double.NaNif no extended operations have yet been performed.
-
getAverageExtendedResponseTimeMillis
Retrieves the average response time in milliseconds for all extended operations processed on the associated connection.- Returns:
- The average response time in milliseconds for all extended
operations processed on the associated connection, or
Double.NaNif no extended operations have yet been performed.
-
getNumModifyRequests
Retrieves the number of modify requests sent on the associated connection.- Returns:
- The number of modify requests sent on the associated connection.
-
getNumModifyResponses
Retrieves the number of modify responses sent on the associated connection.- Returns:
- The number of modify responses sent on the associated connection.
-
getTotalModifyResponseTimeNanos
Retrieves the total response time in nanoseconds for all modify operations processed on the associated connection.- Returns:
- The total response time in nanoseconds for all modify operations processed on the associated connection.
-
getTotalModifyResponseTimeMillis
Retrieves the total response time in milliseconds for all modify operations processed on the associated connection.- Returns:
- The total response time in milliseconds for all modify operations processed on the associated connection.
-
getAverageModifyResponseTimeNanos
Retrieves the average response time in nanoseconds for all modify operations processed on the associated connection.- Returns:
- The average response time in nanoseconds for all modify
operations processed on the associated connection, or
Double.NaNif no modify operations have yet been performed.
-
getAverageModifyResponseTimeMillis
Retrieves the average response time in milliseconds for all modify operations processed on the associated connection.- Returns:
- The average response time in milliseconds for all modify
operations processed on the associated connection, or
Double.NaNif no modify operations have yet been performed.
-
getNumModifyDNRequests
Retrieves the number of modify DN requests sent on the associated connection.- Returns:
- The number of modify DN requests sent on the associated connection.
-
getNumModifyDNResponses
Retrieves the number of modify DN responses sent on the associated connection.- Returns:
- The number of modify DN responses sent on the associated connection.
-
getTotalModifyDNResponseTimeNanos
Retrieves the total response time in nanoseconds for all modify DN operations processed on the associated connection.- Returns:
- The total response time in nanoseconds for all modify DN operations processed on the associated connection.
-
getTotalModifyDNResponseTimeMillis
Retrieves the total response time in milliseconds for all modify DN operations processed on the associated connection.- Returns:
- The total response time in milliseconds for all modify DN operations processed on the associated connection.
-
getAverageModifyDNResponseTimeNanos
Retrieves the average response time in nanoseconds for all modify DN operations processed on the associated connection.- Returns:
- The average response time in nanoseconds for all modify DN
operations processed on the associated connection, or
Double.NaNif no modify DN operations have yet been performed.
-
getAverageModifyDNResponseTimeMillis
Retrieves the average response time in milliseconds for all modify DN operations processed on the associated connection.- Returns:
- The average response time in milliseconds for all modify DN
operations processed on the associated connection, or
Double.NaNif no modify DN operations have yet been performed.
-
getNumSearchRequests
Retrieves the number of search requests sent on the associated connection.- Returns:
- The number of search requests sent on the associated connection.
-
getNumSearchEntryResponses
Retrieves the number of search result entry responses received on the associated connection.- Returns:
- The number of search result entry responses received on the associated connection.
-
getNumSearchReferenceResponses
Retrieves the number of search result reference responses received on the associated connection.- Returns:
- The number of search result reference responses received on the associated connection.
-
getNumSearchDoneResponses
Retrieves the number of search result done responses received on the associated connection.- Returns:
- The number of search result done responses received on the associated connection.
-
getTotalSearchResponseTimeNanos
Retrieves the total response time in nanoseconds for all search operations processed on the associated connection.- Returns:
- The total response time in nanoseconds for all search operations processed on the associated connection.
-
getTotalSearchResponseTimeMillis
Retrieves the total response time in milliseconds for all search operations processed on the associated connection.- Returns:
- The total response time in milliseconds for all search operations processed on the associated connection.
-
getAverageSearchResponseTimeNanos
Retrieves the average response time in nanoseconds for all search operations processed on the associated connection.- Returns:
- The average response time in nanoseconds for all search
operations processed on the associated connection, or
Double.NaNif no compare operations have yet been performed.
-
getAverageSearchResponseTimeMillis
Retrieves the average response time in milliseconds for all search operations processed on the associated connection.- Returns:
- The average response time in milliseconds for all search
operations processed on the associated connection, or
Double.NaNif no compare operations have yet been performed.
-
getNumUnbindRequests
Retrieves the number of unbind requests sent on the associated connection.- Returns:
- The number of unbind requests sent on the associated connection.
-
toString
Retrieves a string representation of this LDAP connection statistics object. -
toString
Appends a string representation of this LDAP connection statistics object to the provided buffer.- Parameters:
buffer- The buffer to which the string representation should be appended.
-