Class HTTPStatistics


  • public class HTTPStatistics
    extends LDAPStatistics
    Collects statistics for HTTP. This class inherits from LDAPStatistics to show the administrator how the underlying LDAP internal operations are performing.
    • Constructor Detail

      • HTTPStatistics

        public HTTPStatistics​(String instanceName)
        Constructor for this class.
        Parameters:
        instanceName - The name for this monitor provider instance.
    • Method Detail

      • clearStatistics

        public void clearStatistics()
        Clears any statistical information collected to this point.
        Overrides:
        clearStatistics in class LDAPStatistics
      • getMonitorData

        public MonitorData getMonitorData()
        Description copied from class: MonitorProvider
        Retrieves a set of attributes containing monitor data that should be returned to the client if the corresponding monitor entry is requested.
        Overrides:
        getMonitorData in class LDAPStatistics
        Returns:
        A set of attributes containing monitor data that should be returned to the client if the corresponding monitor entry is requested.
      • updateRequestMonitoringData

        public void updateRequestMonitoringData​(String httpMethod,
                                                long time)
                                         throws NullPointerException
        Adds to the total time of an HTTP request method.
        Parameters:
        httpMethod - the method of the HTTP request to add to the stats
        time - the time to add to the total
        Throws:
        NullPointerException - if the httpMethod is null