Class SchemaServiceBase.Delegating
java.lang.Object
io.deephaven.enterprise.schema.internal.SchemaServiceBase.Delegating
- All Implemented Interfaces:
SchemaServiceBase,AutoCloseable
- Enclosing interface:
- SchemaServiceBase
Delegate all method calls to an implementation object.
This is designed to be overloaded.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.deephaven.enterprise.schema.internal.SchemaServiceBase
SchemaServiceBase.Delegating -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabout()Information about a SchemaService instance.booleanAuthenticate using default authentication.booleanauthenticate(String user, String password) Authenticate using the given user and password.booleanauthenticate(String user, String password, String operateAs) Authenticate using the given user and password, operating as the operateAs user.voidclose()booleancontainsNamespace(String namespace) Find out whether the given namespace is known to the schema service.booleancontainsNamespace(String namespace, boolean includeDeleted) Find out whether the given namespace is known to the schema service.booleancontainsSchema(String namespace, String tableName) Find out if the given schema exists.voiddeleteSchema(String namespace, String tableName) Delete the specified schema.voiddeleteSchema(String namespace, String tableName, String code, String comment) Delete the specified schema.Get a collection of the namespaces available.listNamespaces(boolean includeDeleted) Get a collection of the namespaces available.listTableNames(String namespace) Get a collection of all table names in the specified namespace.listTableNames(String namespace, boolean includeDeleted) Get a collection of all table names in the specified namespace.voidremoveNamespace(String namespaceName) Remove the given namespace.voidremoveNamespace(String namespaceName, String code, String comment) Remove the given namespace.voidshutdown()Shut down the schema service.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.deephaven.enterprise.schema.internal.SchemaServiceBase
initializationStage
-
Constructor Details
-
Delegating
-
-
Method Details
-
about
Description copied from interface:SchemaServiceBaseInformation about a SchemaService instance. Useful for debugging.- Specified by:
aboutin interfaceSchemaServiceBase- Returns:
- a string containing information about the instance
-
authenticate
Description copied from interface:SchemaServiceBaseAuthenticate using the given user and password. Implementations are not required to allow re-authentication.- Specified by:
authenticatein interfaceSchemaServiceBase- Parameters:
user- the user to authenticatepassword- the password for the user- Returns:
- true only if the authentication succeeded
-
authenticate
public boolean authenticate(@NotNull String user, @NotNull String password, @NotNull String operateAs) Description copied from interface:SchemaServiceBaseAuthenticate using the given user and password, operating as the operateAs user. Implementations are not required to allow re-authentication.- Specified by:
authenticatein interfaceSchemaServiceBase- Parameters:
user- the user to authenticatepassword- the password for the useroperateAs- attempt to operate as this effective user- Returns:
- true only if the authentication succeeded
-
authenticate
public boolean authenticate()Description copied from interface:SchemaServiceBaseAuthenticate using default authentication. This will be using the default private key or howeverAuthenticationClientManager.getDefault()has been authenticated.- Specified by:
authenticatein interfaceSchemaServiceBase- Returns:
- true only if the authentication succeeded
-
containsNamespace
Description copied from interface:SchemaServiceBaseFind out whether the given namespace is known to the schema service.- Specified by:
containsNamespacein interfaceSchemaServiceBase- Parameters:
namespace- the namespace in questionincludeDeleted- true if deleted namespaces should be considered- Returns:
- true if the namespace is found
-
containsNamespace
Description copied from interface:SchemaServiceBaseFind out whether the given namespace is known to the schema service.- Specified by:
containsNamespacein interfaceSchemaServiceBase- Parameters:
namespace- the namespace in question- Returns:
- true if the namespace is found
-
containsSchema
Description copied from interface:SchemaServiceBaseFind out if the given schema exists. Does not check for deleted schemas.- Specified by:
containsSchemain interfaceSchemaServiceBase- Parameters:
namespace- the namespace of the tabletableName- the table name- Returns:
- true if a schema is found for namespace.tableName
-
listNamespaces
Description copied from interface:SchemaServiceBaseGet a collection of the namespaces available.- Specified by:
listNamespacesin interfaceSchemaServiceBase- Returns:
- a collection of namespace names
-
listNamespaces
Description copied from interface:SchemaServiceBaseGet a collection of the namespaces available.- Specified by:
listNamespacesin interfaceSchemaServiceBase- Parameters:
includeDeleted- true if deleted namespaces should be included- Returns:
- a collection of namespace names
-
listTableNames
Description copied from interface:SchemaServiceBaseGet a collection of all table names in the specified namespace.- Specified by:
listTableNamesin interfaceSchemaServiceBase- Parameters:
namespace- the name of the namespace- Returns:
- a collection of all available schemas in namespace
-
listTableNames
@NotNull public Collection<String> listTableNames(@NotNull String namespace, boolean includeDeleted) Description copied from interface:SchemaServiceBaseGet a collection of all table names in the specified namespace.- Specified by:
listTableNamesin interfaceSchemaServiceBase- Parameters:
namespace- the name of the namespaceincludeDeleted- tf deleted schemas should be included- Returns:
- a collection of all available schemas in namespace, empty list if namespace does not exit
-
removeNamespace
Description copied from interface:SchemaServiceBaseRemove the given namespace. The namespace must be empty (contain no schemas).- Specified by:
removeNamespacein interfaceSchemaServiceBase- Parameters:
namespaceName- the namespace to remove- Throws:
SchemaException- if the namespace cannot be removed
-
removeNamespace
public void removeNamespace(@NotNull String namespaceName, @NotNull String code, @NotNull String comment) throws SchemaException Description copied from interface:SchemaServiceBaseRemove the given namespace. The namespace must be empty (contain no schemas).- Specified by:
removeNamespacein interfaceSchemaServiceBase- Parameters:
namespaceName- the namespace to removecode- pass-thru to kv persistence, indicates the code source of this updatecomment- pass-thru to kv persistence - a comment for this update- Throws:
SchemaException- if the namespace cannot be removed
-
deleteSchema
public void deleteSchema(@NotNull String namespace, @NotNull String tableName) throws IllegalArgumentException, SchemaException Description copied from interface:SchemaServiceBaseDelete the specified schema.- Specified by:
deleteSchemain interfaceSchemaServiceBase- Parameters:
namespace- the namespace of the schema to deletetableName- the name of the schema to delete- Throws:
IllegalArgumentException- if the namespace or table could not be foundSchemaException- if the schema could not be deleted
-
deleteSchema
public void deleteSchema(@NotNull String namespace, @NotNull String tableName, @NotNull String code, @NotNull String comment) throws IllegalArgumentException, SchemaException Description copied from interface:SchemaServiceBaseDelete the specified schema.- Specified by:
deleteSchemain interfaceSchemaServiceBase- Parameters:
namespace- the namespace of the schema to deletetableName- the name of the schema to deletecode- pass-thru to kv persistence, indicates the code source of this deletecomment- pass-thru to kv persistence - a comment for this delete- Throws:
IllegalArgumentException- if the namespace or table could not be foundSchemaException- if the schema could not be deleted
-
shutdown
public void shutdown()Description copied from interface:SchemaServiceBaseShut down the schema service. This may involve cleaning up threads and releasing resources.- Specified by:
shutdownin interfaceSchemaServiceBase
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceSchemaServiceBase
-