public class ExperimentBaseEvaluateCmdImpl extends TaskCommandImpl implements ExperimentBaseEvaluateCmd
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
static int | DEFAULT_FREQUENCY_SIZE
Default size of display frequency in an experiment.
|
Constructor and Description |
---|
ExperimentBaseEvaluateCmdImpl() |
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.
|
protected java.lang.Short | getExperimentResultFromDB(java.lang.Integer experimentId, java.lang.Long userId)
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 ID.
|
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.
|
protected java.lang.Short | getExperimentResultNumber(java.lang.Integer experimentId, java.lang.Long userId, java.lang.String sessionId, boolean isUserFallBack)
This method returns the result number from EXPRESULT table based on the given experiment, and user or session, depending on the fallback flag.
|
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.
|
void | performExecute()
This method evaluates all of the currently active experiments that are scheduled to the given store element during the given time, and gathers all of the experiment results which can be accessed through parameters, by invoking the getPostInvokeParameters method in this command.
|
public static final java.lang.String COPYRIGHT
public static final int DEFAULT_FREQUENCY_SIZE
public java.lang.Short generateExperimentResult(ExperimentRuleDefinition ruleDefinition)
public java.lang.Short getExperimentResultFromDB(java.lang.Integer experimentId, java.lang.String sessionId)
protected java.lang.Short getExperimentResultFromDB(java.lang.Integer experimentId, java.lang.Long userId)
public java.lang.Short getExperimentResultFromDB(java.lang.Integer experimentId, java.lang.Long userId, java.lang.String sessionId, boolean isUserFallBack)
protected java.lang.Short getExperimentResultNumber(java.lang.Integer experimentId, java.lang.Long userId, java.lang.String sessionId, boolean isUserFallBack) throws ECException
public void insertExperimentResultToDB(java.lang.Integer experimentId, java.lang.Long userId, java.lang.String sessionId, java.lang.Short resultNumber)
public void performExecute() throws ECException