Package org.opends.server.protocols.http
Class HTTPStatistics
- java.lang.Object
-
- org.opends.server.api.MonitorProvider<MonitorProviderCfg>
-
- org.opends.server.protocols.ldap.LDAPStatistics
-
- org.opends.server.protocols.http.HTTPStatistics
-
public class HTTPStatistics extends LDAPStatistics
Collects statistics for HTTP. This class inherits fromLDAPStatisticsto show the administrator how the underlying LDAP internal operations are performing.
-
-
Constructor Summary
Constructors Constructor Description HTTPStatistics(String instanceName)Constructor for this class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearStatistics()Clears any statistical information collected to this point.MonitorDatagetMonitorData()Retrieves a set of attributes containing monitor data that should be returned to the client if the corresponding monitor entry is requested.voidupdateRequestMonitoringData(String httpMethod, long time)Adds to the total time of an HTTP request method.-
Methods inherited from class org.opends.server.protocols.ldap.LDAPStatistics
getAbandonRequests, getAddRequests, getAddResponses, getBindRequests, getBindResponses, getBytesRead, getBytesWritten, getCompareRequests, getCompareResponses, getConnectionsClosed, getConnectionsEstablished, getDeleteRequests, getDeleteResponses, getExtendedRequests, getExtendedResponses, getMessagesRead, getMessagesWritten, getModifyDNRequests, getModifyDNResponses, getModifyRequests, getModifyResponses, getMonitorInstanceName, getMonitorObjectClass, getOperationsAbandoned, getOperationsCompleted, getOperationsInitiated, getSearchOneRequests, getSearchRequests, getSearchResultEntries, getSearchResultReferences, getSearchResultsDone, getSearchSubRequests, getUnbindRequests, initializeMonitorProvider, updateAbandonedOperation, updateBytesRead, updateBytesWritten, updateConnect, updateDisconnect, updateMessageRead, updateMessageWritten, updateMessageWritten, updateOperationMonitoringData
-
Methods inherited from class org.opends.server.api.MonitorProvider
finalizeMonitorProvider, isConfigurationAcceptable, scheduleUpdate
-
-
-
-
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:
clearStatisticsin classLDAPStatistics
-
getMonitorData
public MonitorData getMonitorData()
Description copied from class:MonitorProviderRetrieves a set of attributes containing monitor data that should be returned to the client if the corresponding monitor entry is requested.- Overrides:
getMonitorDatain classLDAPStatistics- 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 statstime- the time to add to the total- Throws:
NullPointerException- if the httpMethod is null
-
-