com.ibm.commerce.experimentation.runtime

Interface ExperimentService

  • All Known Implementing Classes:
    ExperimentServiceImpl


    public interface 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.
    • Method Summary

      All Methods Instance Methods Abstract 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.
    • Field Detail

      • COPYRIGHT

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

      • getResults

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

        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.
        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.