com.ibm.commerce.experimentation.runtime

Class ExperimentServiceImpl

  • java.lang.Object
    • com.ibm.commerce.experimentation.runtime.ExperimentServiceImpl
  • All Implemented Interfaces:
    ExperimentService


    public class ExperimentServiceImpl
    extends java.lang.Object
    implements ExperimentService
    This class serves as the service facade between clients of experimentation function and the experimentation runtime infrastructure. Experiments will be evaluated upon invocation of this service according to the specified store element type, and the caller can retrieve the result of the evaluated experiments through the result getter method.
    • Field Summary

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

      Constructors 
      Constructor and Description
      ExperimentServiceImpl()
      The default constructor for this class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      DynamicEntity[] getResults()
      This method gets the experiment result after the appropriate command is invoked and the evaluation logic is performed.
      void invokeService(java.lang.Integer storeElementTypeId, java.lang.Integer storeElementId, java.sql.Timestamp currentTime, CommandContext commandContext)
      This method invokes the experimentation evaluation command according to the given store element type.
      • 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

      • ExperimentServiceImpl

        public ExperimentServiceImpl()
        The default constructor for this class.
    • Method Detail

      • getResults

        public DynamicEntity[] getResults()
        This method gets the experiment result after the appropriate command is invoked and the evaluation logic is performed.
        Specified by:
        getResults in interface ExperimentService
        Returns:
        Entity objects that represent the experiment result.
      • invokeService

        public void invokeService(java.lang.Integer storeElementTypeId,
                                  java.lang.Integer storeElementId,
                                  java.sql.Timestamp currentTime,
                                  CommandContext commandContext)
                           throws ECException
        This method invokes the experimentation evaluation command according to the given store element type. The command to be invoked is defined in IMPLCLS field in the EXPTYPE table. After the command is executed, the result of the evaluated experiments is returned to this class, and it can be retrieved using the getResults method.
        Specified by:
        invokeService in interface ExperimentService
        Parameters:
        storeElementTypeId - The ID of the store element type, which is the type of object that is used to display content in the store front.
        storeElementId - The ID of the store element, which is the object that is used to display content in the store front.
        currentTime - The current timestamp.
        commandContext - The current command context.
        Throws:
        ECException - Thrown whenever an exception occurs during experiment runtime evaluation.