public interface LibraryService
| Modifier and Type | Method and Description |
|---|---|
ClusterLibraryStatusesDTO[] |
allClusterStatuses()
Gets the statuses of all clusters on a databricks instance.
|
ClusterLibraryStatusesDTO |
clusterStatus(String clusterId)
Gets the status of a specific cluster.
|
void |
install(String clusterId,
LibraryDTO[] libraries)
Installs one or more libraries on a specific cluster.
|
void |
uninstall(String clusterId,
LibraryDTO[] libraries)
Uninstalls one or more libraries from a specific cluster.
|
void |
uninstallAll(String clusterId)
Uninstalls all libraries from a specific cluster.
|
ClusterLibraryStatusesDTO[] allClusterStatuses() throws IOException, DatabricksRestException
IOException - any other errors.DatabricksRestException - errors with db request.ClusterLibraryStatusesDTO clusterStatus(String clusterId) throws IOException, DatabricksRestException
clusterId - the cluster id to get the status ofIOException - any other errorsDatabricksRestException - errors with specific requestvoid install(String clusterId, LibraryDTO[] libraries) throws IOException, DatabricksRestException
clusterId - the cluster to install to.libraries - the libraries to install to this clsuterIOException - any other errorsDatabricksRestException - errors with specific requestvoid uninstall(String clusterId, LibraryDTO[] libraries) throws IOException, DatabricksRestException
clusterId - the cluster to uninstall a library fromlibraries - the libraries to uninstallIOException - any other errorsDatabricksRestException - any errors with requestvoid uninstallAll(String clusterId) throws IOException, DatabricksRestException
Copyright © 2023. All rights reserved.