za.org.coefficient.util.stats.ejb
Class EjbStatisticsMessageSender

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

public class EjbStatisticsMessageSender
extends java.lang.Object
implements StatisticsMessageSender

This is the Ejb implementation of the statisticMessageSender. This implementation relies on a JMS provider and a configured statistics message queue.


Field Summary
private  boolean connected
           
private  javax.naming.InitialContext ctx
           
private  javax.jms.QueueConnection queueConnection
           
private  javax.jms.QueueSender queueSender
           
private  javax.jms.QueueSession queueSession
           
 
Fields inherited from interface za.org.coefficient.interfaces.StatisticsMessageSender
COMPLETE, CREATE, DOWNLOAD, UPDATE, VIEW
 
Constructor Summary
EjbStatisticsMessageSender()
           
 
Method Summary
private  void init()
           
 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
 

Field Detail

ctx

private javax.naming.InitialContext ctx

queueConnection

private javax.jms.QueueConnection queueConnection

queueSession

private javax.jms.QueueSession queueSession

queueSender

private javax.jms.QueueSender queueSender

connected

private boolean connected
Constructor Detail

EjbStatisticsMessageSender

public EjbStatisticsMessageSender()
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.

init

private void init()


Copyright CSIR. All Rights Reserved.