com.ibm.commerce.marketingcenter.events.runtime

Class ExperimentLoggingECEventListenerImpl

  • java.lang.Object
    • com.ibm.commerce.event.EventComponentConfiguration
      • com.ibm.commerce.event.impl.AbstractECEventListener
        • com.ibm.commerce.marketingcenter.events.runtime.ExperimentLoggingECEventListenerImpl
  • All Implemented Interfaces:
    com.ibm.commerce.event.WCSEventListener, com.ibm.commerce.server.ComponentConfiguration, java.util.EventListener


    public class ExperimentLoggingECEventListenerImpl
    extends com.ibm.commerce.event.impl.AbstractECEventListener
    This Experiment Logging Event Listener listens for Common Base Events (CBE) and processes only experiment logging events. The experiment log and statistics tables are updated with the experiment log information.

    When customizing the experiment statistics, this class needs to be extended to persist the customer's actions to the EXPLOG logging table by doing the following:

    1. Extend ExperimentLoggingECEventListenerImpl and override the method void processExperimentLoggingEvent(ExperimentLoggingDataBean) to update the EXPSTATS and EXPLOG tables.
    2. Change your WebSphere Commerce configuration file, for example instance_name.xml, to load the extended listener class instead of ExperimentLoggingECEventListenerImpl
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      IBM copyright notice field.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.Class getECEventContainer()
      This method returns the class ExperimentLoggingEventContainer as the event container.
      java.util.Set getEvents()
      This method returns a set containing the extension name for the experiment logging event.
      void processEvent(CommonBaseEvent commonBaseEvent)
      This method processes experiment logging common base events.
      void setTestData(ExperimentLoggingDataBean expId)
      Reserved for IBM internal use.
      • Methods inherited from class com.ibm.commerce.event.impl.AbstractECEventListener

        destroy, enable, getEventContainers, isTransactionRequired, processActivityEvent, registerEventContainer
      • Methods inherited from class com.ibm.commerce.event.EventComponentConfiguration

        init
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ExperimentLoggingECEventListenerImpl

        public ExperimentLoggingECEventListenerImpl()
        Creates an instance of the experiment logging event listener. This constructor calls the superclass then sets values if the database type is DB2 and if tracing is enabled for the marketing component.
    • Method Detail

      • getECEventContainer

        public java.lang.Class getECEventContainer()
        This method returns the class ExperimentLoggingEventContainer as the event container.
        Specified by:
        getECEventContainer in class com.ibm.commerce.event.impl.AbstractECEventListener
        Returns:
        The ExperimentLoggingEventContainer class.
        See Also:
        AbstractECEventListener.getECEventContainer()
      • getEvents

        public java.util.Set getEvents()
        This method returns a set containing the extension name for the experiment logging event.
        Specified by:
        getEvents in class com.ibm.commerce.event.impl.AbstractECEventListener
        Returns:
        A set with only the ExperimentLogging event extension name.
        See Also:
        AbstractECEventListener.getEvents()
      • processEvent

        public void processEvent(CommonBaseEvent commonBaseEvent)
        This method processes experiment logging common base events.
        Specified by:
        processEvent in class com.ibm.commerce.event.impl.AbstractECEventListener
        Parameters:
        commonBaseEvent - The common base event to process.
        See Also:
        processExperimentLoggingEvent(CommonBaseEvent), AbstractECEventListener.processEvent(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent)
      • setTestData

        public void setTestData(ExperimentLoggingDataBean expId)
        Reserved for IBM internal use.
        Parameters:
        expId - Reserved for IBM internal use.