org.infoglue.deliver.services
Class StatisticsService

java.lang.Object
  extended by org.infoglue.deliver.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. Frank (03/04/2005): Only logs statistics if statistics.enabled=true in the deliver configuration file.


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
clone, equals, finalize, 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!!!! It only logs the request if statistics were enabled in the configuration file.



Copyright © 2005 InfoGlue.org All Rights Reserved.