za.org.coefficient.util.stats.webapp
Class WebAppStatisticsMessageSender

java.lang.Object
  extended by za.org.coefficient.util.stats.webapp.WebAppStatisticsMessageSender
All Implemented Interfaces:
StatisticsMessageSender

public class WebAppStatisticsMessageSender
extends java.lang.Object
implements StatisticsMessageSender

This is the webapp implementation of the statisticMessageSender. This implementation does not use JMS, instead it spawns a new thread and invokes the service directly within that thread.


Nested Class Summary
private  class WebAppStatisticsMessageSender.StatsThread
           
 
Field Summary
 
Fields inherited from interface za.org.coefficient.interfaces.StatisticsMessageSender
COMPLETE, CREATE, DOWNLOAD, UPDATE, VIEW
 
Constructor Summary
WebAppStatisticsMessageSender()
           
 
Method Summary
 void reportStatistic(java.lang.Long projectId, java.lang.String moduleName, java.lang.String action)
          This method is used to report a statistic event to the system.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebAppStatisticsMessageSender

public WebAppStatisticsMessageSender()
Method Detail

reportStatistic

public void reportStatistic(java.lang.Long projectId,
                            java.lang.String moduleName,
                            java.lang.String action)
Description copied from interface: StatisticsMessageSender
This method is used to report a statistic event to the system. The processing of a statistic should not be a synchronous call.

Specified by:
reportStatistic in interface StatisticsMessageSender
Parameters:
projectId - identifies the project the stat is associated with
moduleName - identifies the module associated with the stat, this value can be null which implies it was a project level stat and not a project module stat.
action - tells the system what event occurred this must not be null.


Copyright CSIR. All Rights Reserved.