public class GravitinoAdminClient extends GravitinoClientBase implements SupportsMetalakes
Normal users should use GravitinoClient to connect with the Gravitino server.
| Modifier and Type | Class and Description | 
|---|---|
| static class  | GravitinoAdminClient.AdminClientBuilderBuilder class for constructing a GravitinoAdminClient. | 
GravitinoClientBase.Builder<T>API_METALAKES_IDENTIFIER_PATH, API_METALAKES_LIST_PATH, restClient| Modifier and Type | Method and Description | 
|---|---|
| GravitinoMetalake | alterMetalake(java.lang.String name,
             MetalakeChange... changes)Alters a specific Metalake using the Gravitino API. | 
| static GravitinoAdminClient.AdminClientBuilder | builder(java.lang.String uri)Creates a new builder for constructing a GravitinoClient. | 
| GravitinoMetalake | createMetalake(java.lang.String name,
              java.lang.String comment,
              java.util.Map<java.lang.String,java.lang.String> properties)Creates a new Metalake using the Gravitino API. | 
| void | disableMetalake(java.lang.String name)Disable a metalake. | 
| boolean | dropMetalake(java.lang.String name,
            boolean force)Drop a metalake with specified name. | 
| void | enableMetalake(java.lang.String name)Enable a metalake. | 
| GravitinoMetalake[] | listMetalakes()Retrieves a list of Metalakes from the Gravitino API. | 
checkMetalakeName, checkVersion, clientVersion, close, getVersion, loadMetalake, serverVersionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdropMetalake, loadMetalake, metalakeExistspublic GravitinoMetalake[] listMetalakes()
listMetalakes in interface SupportsMetalakespublic GravitinoMetalake createMetalake(java.lang.String name, java.lang.String comment, java.util.Map<java.lang.String,java.lang.String> properties) throws MetalakeAlreadyExistsException
createMetalake in interface SupportsMetalakesname - The name of the new Metalake.comment - The comment for the new Metalake.properties - The properties of the new Metalake.MetalakeAlreadyExistsException - If a Metalake with the specified identifier already
     exists.public GravitinoMetalake alterMetalake(java.lang.String name, MetalakeChange... changes) throws NoSuchMetalakeException, java.lang.IllegalArgumentException
alterMetalake in interface SupportsMetalakesname - The name of the Metalake to be altered.changes - The changes to be applied to the Metalake.NoSuchMetalakeException - If the specified Metalake does not exist.java.lang.IllegalArgumentException - If the provided changes are invalid or not applicable.public boolean dropMetalake(java.lang.String name,
                            boolean force)
                     throws NonEmptyEntityException,
                            MetalakeInUseException
SupportsMetalakes.dropMetalake(String).dropMetalake in interface SupportsMetalakesname - The name of the metalake.force - Whether to force the drop.NonEmptyEntityException - If the metalake is not empty and force is false.MetalakeInUseException - If the metalake is in use and force is false.public void enableMetalake(java.lang.String name)
                    throws NoSuchMetalakeException
SupportsMetalakesenableMetalake in interface SupportsMetalakesname - The name of the metalake.NoSuchMetalakeException - If the metalake does not exist.public void disableMetalake(java.lang.String name)
                     throws NoSuchMetalakeException
SupportsMetalakesMetalakeNotInUseException.
   MetalakeNotInUseException.
 disableMetalake in interface SupportsMetalakesname - The name of the metalake.NoSuchMetalakeException - If the metalake does not exist.public static GravitinoAdminClient.AdminClientBuilder builder(java.lang.String uri)
uri - The base URI for the Gravitino API.