Java Doc for httpdStatistics.java in  » Web-Server » Jigsaw » org » w3c » jigsaw » http » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Web Server » Jigsaw » org.w3c.jigsaw.http 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.w3c.jigsaw.http.httpdStatistics

httpdStatistics
public class httpdStatistics (Code)
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  SocketClientFactoryStatsfactoryStats
    
protected  booleaninit
    
protected  longr_max
     The maximum processing time in ms.
protected  longr_min
     The min processing time in ms.
protected  longrd_max
    
protected  longrd_min
    
protected  httpdserver
    
protected  longstart_time
     The date at which the server was started (ms since Java epoch).
protected  longt_bytes
     The total number of emited bytes.
protected  longt_hits
     The total number of hits.
protected  longt_req
     The total time spent in processing requests in ms.
protected  longtd_bytes
    
protected  longtd_hits
    
protected  longtd_req
    
protected  URLu_max
     The URL that has been processed the slowest.
protected  URLu_min
     The URL that has been processed the fastest.
protected  URLud_max
    
protected  URLud_min
    

Constructor Summary
 httpdStatistics(httpd server)
    

Method Summary
public  longgetDynamicHitCount()
     Get the total number of hits for dynamic content.
public  longgetEmittedBytes()
     Get the total number of bytes emited.
public  intgetFreeThreadCount()
     Get the number of free threads in the server.
public  longgetHitCount()
     Get the total number of hits.
public  intgetIdleThreadCount()
     Get the number of idle threads in the server.
public  longgetMaxDynamicRequestTime()
    
public  longgetMaxRequestTime()
     Get the max request processing time.
public  URLgetMaxRequestURL()
     Get the URL of the request that took the longest time to be processed.
public  longgetMaxStaticRequestTime()
    
public  longgetMeanDynamicRequestTime()
    
public  longgetMeanRequestTime()
     Get the mean request processing time.
public  longgetMeanStaticRequestTime()
     Get the mean request processing time.
public  longgetMinDynamicRequestTime()
    
public  longgetMinRequestTime()
     Get the min request processing time.
public  URLgetMinRequestURL()
     Get the URL of the request that took the smallest time to be processed.
public  longgetMinStaticRequestTime()
     Get the min request processing time.
public  intgetServerLoad()
     Get the current server load.
public  longgetStartTime()
     Get the time at which the server was started.
public  longgetStaticHitCount()
     Get the total number of hits for static content.
public  intgetTotalThreadCount()
     Get the total number of client threads.
protected synchronized  voidupdateStatistics(Client client, Request request, Reply reply, int nbytes, long duration)
     Update the current statistics with the given request.

Field Detail
factoryStats
protected SocketClientFactoryStats factoryStats(Code)



init
protected boolean init(Code)



r_max
protected long r_max(Code)
The maximum processing time in ms.



r_min
protected long r_min(Code)
The min processing time in ms.



rd_max
protected long rd_max(Code)
The maximum processing time in ms for dynamic content



rd_min
protected long rd_min(Code)
The min processing time in ms for dynamic content



server
protected httpd server(Code)



start_time
protected long start_time(Code)
The date at which the server was started (ms since Java epoch).



t_bytes
protected long t_bytes(Code)
The total number of emited bytes.



t_hits
protected long t_hits(Code)
The total number of hits.



t_req
protected long t_req(Code)
The total time spent in processing requests in ms.



td_bytes
protected long td_bytes(Code)
The total number of emited bytes for dynamic content



td_hits
protected long td_hits(Code)
The total number of hits for dynamic content



td_req
protected long td_req(Code)
The total time spent in processing requests in ms for dynamic content



u_max
protected URL u_max(Code)
The URL that has been processed the slowest.



u_min
protected URL u_min(Code)
The URL that has been processed the fastest.



ud_max
protected URL ud_max(Code)
The URL that has been processed the slowest for dynamic content



ud_min
protected URL ud_min(Code)
The URL that has been processed the fastest for dynamic content




Constructor Detail
httpdStatistics
httpdStatistics(httpd server)(Code)




Method Detail
getDynamicHitCount
public long getDynamicHitCount()(Code)
Get the total number of hits for dynamic content. The total number of processed requests since the server is up.



getEmittedBytes
public long getEmittedBytes()(Code)
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).



getFreeThreadCount
public int getFreeThreadCount()(Code)
Get the number of free threads in the server. The number of threads ready to server client requests.



getHitCount
public long getHitCount()(Code)
Get the total number of hits. The total number of processed requests since the server is up.



getIdleThreadCount
public int getIdleThreadCount()(Code)
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.



getMaxDynamicRequestTime
public long getMaxDynamicRequestTime()(Code)
Get the max request processing time for dynamic content A long giving the maximum duration for a request.



getMaxRequestTime
public long getMaxRequestTime()(Code)
Get the max request processing time. A long giving the maximum duration for a request.



getMaxRequestURL
public URL getMaxRequestURL()(Code)
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.



getMaxStaticRequestTime
public long getMaxStaticRequestTime()(Code)
Get the max request processing time for static content A long giving the maximum duration for a request.



getMeanDynamicRequestTime
public long getMeanDynamicRequestTime()(Code)
Get the mean request processing time for dynamic content The average time to process a request.



getMeanRequestTime
public long getMeanRequestTime()(Code)
Get the mean request processing time. The average time to process a request.



getMeanStaticRequestTime
public long getMeanStaticRequestTime()(Code)
Get the mean request processing time. The average time to process a request.



getMinDynamicRequestTime
public long getMinDynamicRequestTime()(Code)
Get the min request processing time for dynamic content A long giving the minimum request processing time.



getMinRequestTime
public long getMinRequestTime()(Code)
Get the min request processing time. A long giving the minimum request processing time.



getMinRequestURL
public URL getMinRequestURL()(Code)
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.



getMinStaticRequestTime
public long getMinStaticRequestTime()(Code)
Get the min request processing time. A long giving the minimum request processing time.



getServerLoad
public int getServerLoad()(Code)
Get the current server load. A number between 1 and 4.



getStartTime
public long getStartTime()(Code)
Get the time at which the server was started. A number of milliseconds since java epoch, giving the dateat which the server started.



getStaticHitCount
public long getStaticHitCount()(Code)
Get the total number of hits for static content. The total number of processed requests since the server is up.



getTotalThreadCount
public int getTotalThreadCount()(Code)
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.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.