public interface ExperimentBaseEvaluateCmd extends TaskCommand
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
static java.lang.String |
defaultCommandClassName
defaultCommandClassName is the default implementation class used by
the command factory to instantiate this command if the interface
com.ibm.commerce.experimentation.commands.ExperimentBaseEvaluateCmd
is not defined in the CMDREG table. |
static java.lang.String |
NAME
The name of this interface.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Short |
generateExperimentResult(ExperimentRuleDefinition ruleDefinition)
This method returns the ID of a control or test element in the given rule definition
object based on the comparison result between the element's display frequency and
the randomly generated number.
|
java.lang.Short |
getExperimentResultFromDB(java.lang.Integer experimentId,
java.lang.Long userId,
java.lang.String sessionId,
boolean isUserFallBack)
This method returns the ID of the control or test element to be returned as the
result of the experiment evaluation from the database, based on the given
experiment, and user or session, depending on the fallback flag.
|
java.lang.Short |
getExperimentResultFromDB(java.lang.Integer experimentId,
java.lang.String sessionId)
This method returns the ID of the control or test element to be returned as the
result of the experiment evaluation from the database, based on the given
experiment and session ID.
|
void |
insertExperimentResultToDB(java.lang.Integer experimentId,
java.lang.Long userId,
java.lang.String sessionId,
java.lang.Short resultNumber)
This method inserts a new record to the
EXPRESULT table in
the database which holds the experiment result uniquely identified by the
experiment, session and user.
|
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, performExecute, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
static final java.lang.String COPYRIGHT
static final java.lang.String NAME
static final java.lang.String defaultCommandClassName
defaultCommandClassName
is the default implementation class used by
the command factory to instantiate this command if the interface
com.ibm.commerce.experimentation.commands.ExperimentBaseEvaluateCmd
is not defined in the CMDREG table.java.lang.Short generateExperimentResult(ExperimentRuleDefinition ruleDefinition)
ruleDefinition
- An instance of
com.ibm.commerce.tools.experimentation.ExperimentRuleDefinition
object which contains the definition of experiment rule.java.lang.Short getExperimentResultFromDB(java.lang.Integer experimentId, java.lang.String sessionId)
experimentId
- The ID of the experiment.sessionId
- The ID of the current session.java.lang.Short getExperimentResultFromDB(java.lang.Integer experimentId, java.lang.Long userId, java.lang.String sessionId, boolean isUserFallBack)
experimentId
- The ID of the experiment.userId
- The ID of the user.sessionId
- The ID of the current session.isUserFallBack
- True if the result will be found based on the session and use
the user as fallback; false otherwise.void insertExperimentResultToDB(java.lang.Integer experimentId, java.lang.Long userId, java.lang.String sessionId, java.lang.Short resultNumber)
experimentId
- The ID of the experiment.userId
- The ID of the user.sessionId
- The ID of the current session.resultNumber
- The ID of the selected control or test element.