za.org.coefficient.util.stats.ejb
Class EjbStatisticsMessageSender
java.lang.Object
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.
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 |
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
EjbStatisticsMessageSender
public EjbStatisticsMessageSender()
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 withmoduleName
- 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.