Class LDAPConnectionStatistics

java.lang.Object
com.unboundid.ldap.sdk.LDAPConnectionStatistics
All Implemented Interfaces:
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 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 Details

    • LDAPConnectionStatistics

      Creates a new instance of this LDAP connection statistics object. All of the counts will be initialized to zero.
  • Method Details

    • reset

      public void reset()
      Resets all counters back to zero.
    • getNumConnects

      public long 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

      public long 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

      public long getNumAbandonRequests()
      Retrieves the number of abandon requests sent on the associated connection.
      Returns:
      The number of abandon requests sent on the associated connection.
    • getNumAddRequests

      public long getNumAddRequests()
      Retrieves the number of add requests sent on the associated connection.
      Returns:
      The number of add requests sent on the associated connection.
    • getNumAddResponses

      public long 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.NaN if 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.NaN if no add operations have yet been performed.
    • getNumBindRequests

      public long getNumBindRequests()
      Retrieves the number of bind requests sent on the associated connection.
      Returns:
      The number of bind requests sent on the associated connection.
    • getNumBindResponses

      public long 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.NaN if 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.NaN if no bind operations have yet been performed.
    • getNumCompareRequests

      public long getNumCompareRequests()
      Retrieves the number of compare requests sent on the associated connection.
      Returns:
      The number of compare requests sent on the associated connection.
    • getNumCompareResponses

      public long 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.NaN if 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.NaN if no compare operations have yet been performed.
    • getNumDeleteRequests

      public long getNumDeleteRequests()
      Retrieves the number of delete requests sent on the associated connection.
      Returns:
      The number of delete requests sent on the associated connection.
    • getNumDeleteResponses

      public long 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.NaN if 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.NaN if no delete operations have yet been performed.
    • getNumExtendedRequests

      public long getNumExtendedRequests()
      Retrieves the number of extended requests sent on the associated connection.
      Returns:
      The number of extended requests sent on the associated connection.
    • getNumExtendedResponses

      public long 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.NaN if 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.NaN if no extended operations have yet been performed.
    • getNumModifyRequests

      public long getNumModifyRequests()
      Retrieves the number of modify requests sent on the associated connection.
      Returns:
      The number of modify requests sent on the associated connection.
    • getNumModifyResponses

      public long 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.NaN if 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.NaN if no modify operations have yet been performed.
    • getNumModifyDNRequests

      public long 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

      public long 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.NaN if 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.NaN if no modify DN operations have yet been performed.
    • getNumSearchRequests

      public long 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.NaN if 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.NaN if no compare operations have yet been performed.
    • getNumUnbindRequests

      public long 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.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this LDAP connection statistics object.
    • toString

      public void toString(@NotNull StringBuilder buffer)
      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.