public final class CometApiImpl extends Object implements CometApi
| Modifier and Type | Class and Description |
|---|---|
static class |
CometApiImpl.CometApiBuilder
The builder to create properly configured instance of the CometApiImpl.
|
| Constructor and Description |
|---|
CometApiImpl(@NonNull String apiKey,
@NonNull String baseUrl,
int maxAuthRetries) |
| Modifier and Type | Method and Description |
|---|---|
static CometApiImpl.CometApiBuilder |
builder()
Returns builder to be used to properly create instance of this class.
|
void |
close()
Release all resources hold by this instance, such as connection to the Comet server.
|
List<ExperimentMetadataRest> |
getAllExperiments(@NonNull String projectId)
Gets all experiment dto under specified project id
|
List<RestProject> |
getAllProjects(@NonNull String workspaceName)
Gets all project dtos under specified workspace name
|
List<String> |
getAllWorkspaces()
Gets all workspaces available for current API key
|
public List<String> getAllWorkspaces()
CometApigetAllWorkspaces in interface CometApipublic List<RestProject> getAllProjects(@NonNull @NonNull String workspaceName)
CometApigetAllProjects in interface CometApiworkspaceName - workspace namepublic List<ExperimentMetadataRest> getAllExperiments(@NonNull @NonNull String projectId)
CometApigetAllExperiments in interface CometApiprojectId - Project idpublic static CometApiImpl.CometApiBuilder builder()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOException - if an I/O exception occurs.Copyright © 2021. All rights reserved.