public class HTTPStatistics extends LDAPStatistics
LDAPStatistics
to show the administrator how the underlying LDAP internal operations are
performing.| Constructor and Description |
|---|
HTTPStatistics(String instanceName)
Constructor for this class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRequest(String httpMethod)
Adds a request to the stats using the provided HTTP method.
|
void |
clearStatistics()
Clears any statistical information collected to this point.
|
List<Attribute> |
getMonitorData()
Retrieves a set of attributes containing monitor data that should
be returned to the client if the corresponding monitor entry is
requested.
|
void |
updateRequestMonitoringData(String httpMethod,
long time)
Adds to the total time of an HTTP request method.
|
createAttribute, 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, updateOperationMonitoringDatafinalizeMonitorProvider, isConfigurationAcceptable, scheduleUpdatepublic HTTPStatistics(String instanceName)
instanceName - The name for this monitor provider instance.public void clearStatistics()
clearStatistics in class LDAPStatisticspublic List<Attribute> getMonitorData()
getMonitorData in class LDAPStatisticspublic void addRequest(String httpMethod) throws NullPointerException
httpMethod - the method of the HTTP request to add to the statsNullPointerException - if the httpMethod is nullpublic void updateRequestMonitoringData(String httpMethod, long time) throws NullPointerException
httpMethod - the method of the HTTP request to add to the statstime - the time to add to the totalNullPointerException - if the httpMethod is nullCopyright © 2010-2015 ForgeRock AS. All Rights Reserved.