public final class ApiExperiment extends BaseExperiment
Implementation of the Experiment that allows to read/update existing experiment.
The ApiExperiment should be used to directly read/update data of the existing experiment from the Comet server.
| Modifier and Type | Class and Description |
|---|---|
static class |
ApiExperiment.ApiExperimentBuilderImpl
The builder to create properly configured ApiExperiment instance.
|
| Modifier and Type | Method and Description |
|---|---|
static ApiExperiment.ApiExperimentBuilderImpl |
builder(@NonNull String experimentKey)
Returns builder to create ApiExperiment instance.
|
void |
end()
Tells Comet that the Experiment is complete and release all associated resources.
|
protected Connection |
getConnection()
Returns connection associated with particular experiment.
|
String |
getContext()
Gets the current context as recorded in the Experiment object locally.
|
String |
getExperimentKey()
Get the experiment key returned by Comet.
|
Optional<String> |
getExperimentLink()
Get the experiment link returned by Comet.
|
String |
getExperimentName()
Get experiment name.
|
protected org.slf4j.Logger |
getLogger()
Returns logger instance associated with particular experiment.
|
String |
getProjectName()
Get project name of the experiment.
|
String |
getWorkspaceName()
Get workspace name of the experiment.
|
addTag, getAssetList, getGitMetadata, getGraph, getHtml, getLogOther, getMetadata, getMetrics, getOutput, getParameters, getTags, logCode, logCode, logEndTime, logGitMetadata, logGraph, logHtml, logMetric, logOther, logParameter, logStartTime, setExperimentName, uploadAsset, uploadAssetpublic static ApiExperiment.ApiExperimentBuilderImpl builder(@NonNull @NonNull String experimentKey)
experimentKey - the unique identifier of the existing experiment.protected Connection getConnection()
BaseExperimentgetConnection in class BaseExperimentprotected org.slf4j.Logger getLogger()
BaseExperimentgetLogger in class BaseExperimentpublic String getContext()
BaseExperimentgetContext in class BaseExperimentpublic String getWorkspaceName()
Experimentpublic String getProjectName()
Experimentpublic String getExperimentName()
Experimentpublic void end()
Experimentpublic String getExperimentKey()
Experimentpublic Optional<String> getExperimentLink()
ExperimentCopyright © 2021. All rights reserved.