public final class HttpStatistics extends Object
Modifier and Type | Field and Description |
---|---|
static List<String> |
SUPPORTED_HTTP_METHODS
HTTP methods supported by Rest2Ldap.
|
Constructor and Description |
---|
HttpStatistics() |
Modifier and Type | Method and Description |
---|---|
long |
getAllRequestsCount()
Returns the number of HTTP requests of any kind that have been processed.
|
Long |
getRequestCount(String httpMethod)
Returns the number of HTTP requests of the provided HTTP method that have been processed.
|
void |
updateBytesRead(int bytes)
Updates the counter for the number of bytes that have been read from the network.
|
void |
updateBytesWritten(int bytes)
Updates the counter for the number of bytes that have been written to the network.
|
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()
public void updateBytesRead(int bytes)
bytes
- The number of bytes read from the network.public void updateBytesWritten(int bytes)
bytes
- The number of bytes written to the network.Copyright 2010-2018 ForgeRock AS.