This class maintains server wide statistics about hits.
This class should probably be coded as a resource itself, and made
accessible through a specific HTTPResource. I am just having fun
for the time being.
Get the total number of bytes emited.
A long giving the total number of bytes emited by the server.This count that not include the reply's header, but only the reply'sbody (or entity size).
Get the number of idle threads in the server.
Idle threads are the threads ready to accept more requests on a given
connection.
The number of idle threads.
Get the URL of the request that took the longest time to be processed.
A String giving the URL of the corresponding request, ornull if no request has been processed yet.
Get the URL of the request that took the smallest time to be processed.
A String giving the URL of the corresponding request, ornull if no request has been processed yet.
Get the total number of client threads.
The total number of created threads.
updateStatistics
protected synchronized void updateStatistics(Client client, Request request, Reply reply, int nbytes, long duration)(Code)
Update the current statistics with the given request.
Parameters: client - The client that processed the request. Parameters: request - The request that has been processed. Parameters: nbytes - The number of emited bytes in reply's body. Parameters: duration - The processing time of the request.