public interface IExperimentDatabaseHandle
| Modifier and Type | Method and Description |
|---|---|
ExperimentDBEntry |
createAndGetExperiment(Experiment experiment)
* Creates a new experiment entry and returns it.
|
void |
finishExperiment(ExperimentDBEntry exp)
Signals that an experiment has been finished successfully.
|
void |
finishExperiment(ExperimentDBEntry exp,
java.lang.Throwable errror)
Signals that an experiment has failed with an exception.
|
java.util.Collection<ExperimentDBEntry> |
getConductedExperiments()
Returns a list of all experiments contained in the database.
|
void |
setup(IExperimentSetConfig config)
Prepares everything so that upcoming calls for create and update will be managed according to the specified configuration.
|
void |
updateExperiment(ExperimentDBEntry exp,
java.util.Map<java.lang.String,? extends java.lang.Object> values)
Updates non-keyfield values of the experiment.
|
void setup(IExperimentSetConfig config) throws ExperimentDBInteractionFailedException
config - Description of the experiment setupExperimentDBInteractionFailedExceptionjava.util.Collection<ExperimentDBEntry> getConductedExperiments() throws ExperimentDBInteractionFailedException
ExperimentDBInteractionFailedExceptionExperimentDBEntry createAndGetExperiment(Experiment experiment) throws ExperimentDBInteractionFailedException, ExperimentAlreadyExistsInDatabaseException
experiment - experiment - ExperimentDBInteractionFailedExceptionExperimentAlreadyExistsInDatabaseExceptionvoid updateExperiment(ExperimentDBEntry exp, java.util.Map<java.lang.String,? extends java.lang.Object> values) throws ExperimentUpdateFailedException
exp - The experiment entry in the databasevalues - A key-value store where keys are names of result fields. The values will be associated to each key in the database.ExperimentUpdateFailedExceptionvoid finishExperiment(ExperimentDBEntry exp) throws ExperimentDBInteractionFailedException
exp - ExperimentDBInteractionFailedExceptionvoid finishExperiment(ExperimentDBEntry exp, java.lang.Throwable errror) throws ExperimentDBInteractionFailedException
exp - errror - ExperimentDBInteractionFailedException