public class HTTPStatistics extends LDAPStatistics
LDAPStatistics
to show the administrator how the
underlying LDAP internal operations are performing.Modifier and Type | Field and Description |
---|---|
static List<String> |
SUPPORTED_HTTP_METHODS
HTTP methods supported by Rest2Ldap.
|
Constructor and Description |
---|
HTTPStatistics(String instanceName)
Constructor for this class.
|
Modifier and Type | Method and Description |
---|---|
void |
clearStatistics()
Clears any statistical information collected to this point.
|
long |
getAllRequestsCount()
Returns the number of HTTP requests of any kind that have been processed.
|
MonitorData |
getMonitorData()
Retrieves a set of attributes containing monitor data that should be returned to the client if the corresponding
monitor entry is requested.
|
long |
getRequestCount(String httpMethod)
Returns the number of HTTP requests of the provided HTTP method that have been processed.
|
getAbandonRequests, getAddRequests, getAddResponses, getAllRequests, getBindRequests, getBytesRead, getBytesWritten, getCompareRequests, getDeleteRequests, getExtendedRequests, getModifyDnRequests, getModifyRequests, getModifyResponses, getMonitorInstanceName, getMonitorObjectClass, getOperationsAbandoned, getSearchRequests, getSearchResultEntries, getSearchResultReferences, getSearchResultsDone, initializeMonitorProvider, updateBytesRead, updateBytesWritten, updateConnect, updateDisconnect, updateMessageRead
finalizeMonitorProvider, getMonitorInstanceDn, isConfigurationAcceptable, scheduleUpdate
public HTTPStatistics(String instanceName)
instanceName
- The name for this monitor provider instance.public void clearStatistics()
LDAPStatistics
clearStatistics
in class LDAPStatistics
public MonitorData getMonitorData()
MonitorProvider
getMonitorData
in class LDAPStatistics
public long getRequestCount(String httpMethod)
httpMethod
- A String
representing the http method name.
Available methods are (case insensitive) "delete", "get", "patch", "post" and "put".null
if the httpMethod is not part of the method listed above.public long getAllRequestsCount()
Copyright 2010-2020 ForgeRock AS.