org.infoglue.cms.services
Class StatisticsService

java.lang.Object
  |
  +--org.infoglue.cms.services.StatisticsService

public class StatisticsService
extends java.lang.Object

This class is thought of as an service which logs statistics about a request so that log analyzers later on can extract information from it. The thought is to have all delivery-engines report to a central service about their requests so the logfiles get merged at once. The service should be very performance centered and only write to the logfile when the system is low on use.


Method Summary
static StatisticsService getStatisticsService()
          A factory singleton implementation
 void registerRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String pagePath, long elapsedTime)
          This method registers a request to the distributed service.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getStatisticsService

public static StatisticsService getStatisticsService()
A factory singleton implementation


registerRequest

public void registerRequest(javax.servlet.http.HttpServletRequest request,
                            javax.servlet.http.HttpServletResponse response,
                            java.lang.String pagePath,
                            long elapsedTime)
This method registers a request to the distributed service. For now it only logs the request - bad boy!!!!