Java Doc for PortalStatistics.java in  » Portal » jetspeed-2.1.3 » org » apache » jetspeed » statistics » 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 » Portal » jetspeed 2.1.3 » org.apache.jetspeed.statistics 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.jetspeed.statistics.PortalStatistics

All known Subclasses:   org.apache.jetspeed.statistics.impl.PortalStatisticsImpl,
PortalStatistics
public interface PortalStatistics (Code)
The PortletStatistics interface provides an API for logging portlet statistics. Each log entry is formatted in the Apache Common Log Format (CLF) . Each CLF log entry has the following form:

"%h %l %u %t \"%r\" %>s %b"

where:

  • %h - remote host
  • %l - remote log name
  • %u - remote user
  • %t - time in common log time format
  • %r - first line of HTTP request
  • %s - HTTP status code
  • %b - number of bytes sent ("-" if no bytes sent).

Here's an example of a CLF log entry:

 192.168.2.3 - johndoe [25/Oct/2005:11:44:40 PDT] "GET
 /jetspeed/DatabaseBrowserTest HTTP/1.1" 200 -
 

The PortletStatistics interface overloads the %r field of the CLF format, depending on the type of information being logged:

 LOG TYPE FORMAT OF %r FIELD -------------- ----------------------------
 Portlet access "PORTLET " Page access "PAGE
 " User logout "LOGOUT"
 

author:
   David Sean Taylor
author:
   Mark Orciuch
author:
   Richard Klein
version:
   $Id: $


Field Summary
final public static  StringHTTP_INTERNAL_ERROR
    
final public static  StringHTTP_NOT_FOUND
    
final public static  StringHTTP_OK
    
final public static  StringHTTP_UNAUTHORIZED
    
final public static  StringQUERY_TYPE_PAGE
    
final public static  StringQUERY_TYPE_PORTLET
    
final public static  StringQUERY_TYPE_USER
    


Method Summary
public  StatisticsQueryCriteriacreateStatisticsQueryCriteria()
    
public  voidforceFlush()
    
public  DataSourcegetDataSource()
    
public  AggregateStatisticsgetDefaultEmptyAggregateStatistics()
     Factory to create new, empty, aggregate statistics object.
public  ListgetListOfLoggedInUsers()
    
public  intgetNumberOfCurrentUsers()
    
public  intgetNumberOfLoggedInUsers()
    
public  voidlogPageAccess(RequestContext request, String statusCode, long msElapsedTime)
     Logs an access to a page.
public  voidlogPortletAccess(RequestContext request, String portlet, String statusCode, long msElapsedTime)
     Logs an access to a portlet.
public  voidlogUserLogin(RequestContext request, long msElapsedLoginTime)
     Logs a user logout event.
public  voidlogUserLogout(String ipAddress, String userName, long msSessionLength)
     Logs a user logout event.
public  AggregateStatisticsqueryStatistics(StatisticsQueryCriteria criteria)
    

Field Detail
HTTP_INTERNAL_ERROR
final public static String HTTP_INTERNAL_ERROR(Code)



HTTP_NOT_FOUND
final public static String HTTP_NOT_FOUND(Code)



HTTP_OK
final public static String HTTP_OK(Code)



HTTP_UNAUTHORIZED
final public static String HTTP_UNAUTHORIZED(Code)



QUERY_TYPE_PAGE
final public static String QUERY_TYPE_PAGE(Code)



QUERY_TYPE_PORTLET
final public static String QUERY_TYPE_PORTLET(Code)



QUERY_TYPE_USER
final public static String QUERY_TYPE_USER(Code)





Method Detail
createStatisticsQueryCriteria
public StatisticsQueryCriteria createStatisticsQueryCriteria()(Code)
Factory to create new statistics query criteria a newly create statistics empty criteria



forceFlush
public void forceFlush()(Code)
force the database loggers to flush out



getDataSource
public DataSource getDataSource()(Code)
DataSource in use by the logger useful for writing decent tests



getDefaultEmptyAggregateStatistics
public AggregateStatistics getDefaultEmptyAggregateStatistics()(Code)
Factory to create new, empty, aggregate statistics object. unpopulated AggregateStatistics object



getListOfLoggedInUsers
public List getListOfLoggedInUsers()(Code)



getNumberOfCurrentUsers
public int getNumberOfCurrentUsers()(Code)
returns the current number of logged in users



getNumberOfLoggedInUsers
public int getNumberOfLoggedInUsers()(Code)



logPageAccess
public void logPageAccess(RequestContext request, String statusCode, long msElapsedTime)(Code)
Logs an access to a page.
Parameters:
  request - current request info object
Parameters:
  statusCode - HTTP status code
Parameters:
  msElapsedTime - elapsed time the page took to render



logPortletAccess
public void logPortletAccess(RequestContext request, String portlet, String statusCode, long msElapsedTime)(Code)
Logs an access to a portlet.
Parameters:
  request - current request info object
Parameters:
  portlet - portlet being logged
Parameters:
  statusCode - HTTP status code.
Parameters:
  msElapsedTime - elapsed time the portlet took to render



logUserLogin
public void logUserLogin(RequestContext request, long msElapsedLoginTime)(Code)
Logs a user logout event. The %s (HTTP status code) field of the log entry will be set to 200 (OK).
Parameters:
  request - current request info object
Parameters:
  msElapsedLoginTime - time it took the user to login



logUserLogout
public void logUserLogout(String ipAddress, String userName, long msSessionLength)(Code)
Logs a user logout event. The %s (HTTP status code) field of the log entry will be set to 200 (OK).
Parameters:
  request - current request info object
Parameters:
  msElapsedTime - elapsed time that the user was logged in



queryStatistics
public AggregateStatistics queryStatistics(StatisticsQueryCriteria criteria) throws InvalidCriteriaException(Code)



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