atg.projects.store.recommendations.adc
Class StoreADCEventMonitor

java.lang.Object
  extended by atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
      extended by atg.nucleus.GenericService
          extended by atg.adc.ADCEventMonitor
              extended by atg.projects.store.recommendations.adc.StoreADCEventMonitor
All Implemented Interfaces:
atg.dms.patchbay.MessageSink, atg.naming.AbsoluteNameable, atg.naming.NameContextBindingListener, atg.naming.NameContextElement, atg.naming.NameContextParentable, atg.naming.NameResolver, atg.nucleus.AdminableService, atg.nucleus.Configured, atg.nucleus.logging.ApplicationLogging, atg.nucleus.logging.ApplicationLoggingSender, atg.nucleus.logging.TraceApplicationLogging, atg.nucleus.logging.VariableArgumentApplicationLogging, atg.nucleus.naming.ComponentNameResolver, atg.nucleus.Service, atg.nucleus.ServiceListener, java.util.EventListener

public class StoreADCEventMonitor
extends atg.adc.ADCEventMonitor

This class extends ADCEventMonitor in order to store events into session data. This is needed for the case when event is happen in the scope of AJAX request and can't be processed in the same request. So we need to store events into the session to so that the next request will be able to process them.

Version:
$Id: //hosting-blueprint/B2CBlueprint/version/10.2.1/Recommendations/src/atg/projects/store/recommendations/adc/StoreADCEventMonitor.java#2 $Change: 630322 $
Author:
ATG

Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Fields inherited from class atg.adc.ADCEventMonitor
mBodyDataReporterMap, mHeadDataReporterMap, sResourceBundle
 
Fields inherited from class atg.nucleus.GenericService
SERVICE_INFO_KEY
 
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging
DEFAULT_LOG_TRACE_STATUS
 
Fields inherited from interface atg.nucleus.logging.ApplicationLogging
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
 
Constructor Summary
StoreADCEventMonitor()
           
 
Method Summary
 StoreADCSessionData getCurrentSessionData()
          Return the EventHolder associated with the current session.
 java.lang.String getSessionDataPath()
          Returns the path to the session scoped Nucleus component that holds the events for the current session
 void receiveMessage(java.lang.String pPortName, javax.jms.Message pMessage)
          Overrides parent class method in order to store events not only into the request data holder object but into the session data holder too.
 void setSessionDataPath(java.lang.String pSessionDataPath)
          The path to the session-scoped Nucleus component that holds the events for the current session.
 
Methods inherited from class atg.adc.ADCEventMonitor
doStartService, findDataReporter, generateDataReporterMap, getBodyDataReporters, getCurrentRequestData, getHeadDataReporters, getRequestDataPath, processADCData, processBodyData, processBodyData, processHeadData, processHeadData, setBodyDataReporters, setHeadDataReporters, setRequestDataPath
 
Methods inherited from class atg.nucleus.GenericService
addLogListener, createAdminServlet, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService
 
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static final java.lang.String CLASS_VERSION
Class version string

See Also:
Constant Field Values
Constructor Detail

StoreADCEventMonitor

public StoreADCEventMonitor()
Method Detail

setSessionDataPath

public void setSessionDataPath(java.lang.String pSessionDataPath)
The path to the session-scoped Nucleus component that holds the events for the current session.

Parameters:
pSessionDataPath - the path to the session-scoped Nucleus component that holds the events for the current session.

getSessionDataPath

public java.lang.String getSessionDataPath()
Returns the path to the session scoped Nucleus component that holds the events for the current session

Returns:
The path to the session scoped Nucleus component that holds the events for the current session

getCurrentSessionData

public StoreADCSessionData getCurrentSessionData()
Return the EventHolder associated with the current session.

Returns:
the EventHolder associated with the current session.

receiveMessage

public void receiveMessage(java.lang.String pPortName,
                           javax.jms.Message pMessage)
                    throws javax.jms.JMSException
Overrides parent class method in order to store events not only into the request data holder object but into the session data holder too. This allows not to loose events that happened in the scope of AJAX requests.

Specified by:
receiveMessage in interface atg.dms.patchbay.MessageSink
Overrides:
receiveMessage in class atg.adc.ADCEventMonitor
Throws:
javax.jms.JMSException