|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.w3c.jigsaw.http.httpdStatistics
public class httpdStatistics
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.
Field Summary | |
---|---|
protected SocketClientFactoryStats |
factoryStats
|
protected boolean |
init
|
protected long |
r_max
The maximum processing time in ms. |
protected long |
r_min
The min processing time in ms. |
protected long |
rd_max
The maximum processing time in ms for dynamic content |
protected long |
rd_min
The min processing time in ms for dynamic content |
protected httpd |
server
|
protected long |
start_time
The date at which the server was started (ms since Java epoch). |
protected long |
t_bytes
The total number of emited bytes. |
protected long |
t_hits
The total number of hits. |
protected long |
t_req
The total time spent in processing requests in ms. |
protected long |
td_bytes
The total number of emited bytes for dynamic content |
protected long |
td_hits
The total number of hits for dynamic content |
protected long |
td_req
The total time spent in processing requests in ms for dynamic content |
protected java.net.URL |
u_max
The URL that has been processed the slowest. |
protected java.net.URL |
u_min
The URL that has been processed the fastest. |
protected java.net.URL |
ud_max
The URL that has been processed the slowest for dynamic content |
protected java.net.URL |
ud_min
The URL that has been processed the fastest for dynamic content |
Method Summary | |
---|---|
long |
getDynamicHitCount()
Get the total number of hits for dynamic content. |
long |
getEmittedBytes()
Get the total number of bytes emited. |
int |
getFreeThreadCount()
Get the number of free threads in the server. |
long |
getHitCount()
Get the total number of hits. |
int |
getIdleThreadCount()
Get the number of idle threads in the server. |
long |
getMaxDynamicRequestTime()
Get the max request processing time for dynamic content |
long |
getMaxRequestTime()
Get the max request processing time. |
java.net.URL |
getMaxRequestURL()
Get the URL of the request that took the longest time to be processed. |
long |
getMaxStaticRequestTime()
Get the max request processing time for static content |
long |
getMeanDynamicRequestTime()
Get the mean request processing time for dynamic content |
long |
getMeanRequestTime()
Get the mean request processing time. |
long |
getMeanStaticRequestTime()
Get the mean request processing time. |
long |
getMinDynamicRequestTime()
Get the min request processing time for dynamic content |
long |
getMinRequestTime()
Get the min request processing time. |
java.net.URL |
getMinRequestURL()
Get the URL of the request that took the smallest time to be processed. |
long |
getMinStaticRequestTime()
Get the min request processing time. |
int |
getServerLoad()
Get the current server load. |
long |
getStartTime()
Get the time at which the server was started. |
long |
getStaticHitCount()
Get the total number of hits for static content. |
int |
getTotalThreadCount()
Get the total number of client threads. |
protected void |
updateStatistics(Client client,
Request request,
Reply reply,
int nbytes,
long duration)
Update the current statistics with the given request. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected httpd server
protected long r_min
protected long rd_min
protected java.net.URL u_min
protected java.net.URL ud_min
protected long r_max
protected long rd_max
protected java.net.URL u_max
protected java.net.URL ud_max
protected long t_hits
protected long td_hits
protected long t_bytes
protected long td_bytes
protected long t_req
protected long td_req
protected long start_time
protected SocketClientFactoryStats factoryStats
protected boolean init
Method Detail |
---|
protected void updateStatistics(Client client, Request request, Reply reply, int nbytes, long duration)
client
- The client that processed the request.request
- The request that has been processed.nbytes
- The number of emited bytes in reply's body.duration
- The processing time of the request.public int getServerLoad()
public int getFreeThreadCount()
public int getIdleThreadCount()
public int getTotalThreadCount()
public long getHitCount()
public long getDynamicHitCount()
public long getStaticHitCount()
public long getMeanRequestTime()
public long getMeanDynamicRequestTime()
public long getMeanStaticRequestTime()
public long getMaxRequestTime()
public long getMaxDynamicRequestTime()
public long getMaxStaticRequestTime()
public java.net.URL getMaxRequestURL()
public long getMinRequestTime()
public long getMinDynamicRequestTime()
public long getMinStaticRequestTime()
public java.net.URL getMinRequestURL()
public long getEmittedBytes()
public long getStartTime()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |