Package org.opends.server.protocols.http
Class HttpStatistics
- java.lang.Object
- 
- org.opends.server.protocols.http.HttpStatistics
 
- 
 public final class HttpStatistics extends Object Collects statistics for HTTP.
- 
- 
Field SummaryFields Modifier and Type Field Description static List<String>SUPPORTED_HTTP_METHODSHTTP methods supported by Rest2Ldap.
 - 
Constructor SummaryConstructors Constructor Description HttpStatistics()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetAllRequestsCount()Returns the number of HTTP requests of any kind that have been processed.LonggetRequestCount(String httpMethod)Returns the number of HTTP requests of the provided HTTP method that have been processed.voidupdateBytesRead(long bytes)Updates the counter for the number of bytes that have been read from the network.voidupdateBytesWritten(long bytes)Updates the counter for the number of bytes that have been written to the network.
 
- 
- 
- 
Method Detail- 
getRequestCountpublic Long getRequestCount(String httpMethod) Returns the number of HTTP requests of the provided HTTP method that have been processed.- Parameters:
- httpMethod- A- Stringrepresenting the http method name. Available methods are (case insensitive) "delete", "get", "patch", "post" and "put".
- Returns:
- The number of HTTP requests for the provided HTTP methods that have been processed,
         or nullif the httpMethod is not part of the method listed above.
 
 - 
getAllRequestsCountpublic long getAllRequestsCount() Returns the number of HTTP requests of any kind that have been processed.- Returns:
- The number of HTTP requests of any kind that have been processed.
 
 - 
updateBytesReadpublic void updateBytesRead(long bytes) Updates the counter for the number of bytes that have been read from the network.- Parameters:
- bytes- The number of bytes read from the network.
 
 - 
updateBytesWrittenpublic void updateBytesWritten(long bytes) Updates the counter for the number of bytes that have been written to the network.- Parameters:
- bytes- The number of bytes written to the network.
 
 
- 
 
-