@InterfaceAudience.Private
public interface ClusterSchema
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_HBASE_MASTER_CLUSTER_SCHEMA_OPERATION_TIMEOUT
Default operation timeout in milliseconds.
|
static String |
HBASE_MASTER_CLUSTER_SCHEMA_OPERATION_TIMEOUT_KEY
Timeout for cluster operations in milliseconds.
|
Modifier and Type | Method and Description |
---|---|
long |
createNamespace(NamespaceDescriptor namespaceDescriptor,
NonceKey nonceKey,
ProcedurePrepareLatch latch)
Create a new Namespace.
|
long |
deleteNamespace(String name,
NonceKey nonceKey,
ProcedurePrepareLatch latch)
Delete an existing Namespace.
|
NamespaceDescriptor |
getNamespace(String name)
Get a Namespace
|
List<NamespaceDescriptor> |
getNamespaces()
Get all Namespaces
|
TableNamespaceManager |
getTableNamespaceManager()
For internals use only.
|
long |
modifyNamespace(NamespaceDescriptor descriptor,
NonceKey nonceKey,
ProcedurePrepareLatch latch)
Modify an existing Namespace.
|
static final String HBASE_MASTER_CLUSTER_SCHEMA_OPERATION_TIMEOUT_KEY
static final int DEFAULT_HBASE_MASTER_CLUSTER_SCHEMA_OPERATION_TIMEOUT
TableNamespaceManager getTableNamespaceManager()
TableNamespaceManager
long createNamespace(NamespaceDescriptor namespaceDescriptor, NonceKey nonceKey, ProcedurePrepareLatch latch) throws IOException
namespaceDescriptor
- descriptor for new NamespacenonceKey
- A unique identifier for this operation from the client or process.latch
- A latch to block on for precondition validationIOException
- Throws ClusterSchemaException
and InterruptedIOException
as well as IOException
long modifyNamespace(NamespaceDescriptor descriptor, NonceKey nonceKey, ProcedurePrepareLatch latch) throws IOException
nonceKey
- A unique identifier for this operation from the client or process.latch
- A latch to block on for precondition validationIOException
- Throws ClusterSchemaException
and InterruptedIOException
as well as IOException
long deleteNamespace(String name, NonceKey nonceKey, ProcedurePrepareLatch latch) throws IOException
nonceKey
- A unique identifier for this operation from the client or process.latch
- A latch to block on for precondition validationIOException
- Throws ClusterSchemaException
and InterruptedIOException
as well as IOException
NamespaceDescriptor getNamespace(String name) throws IOException
name
- Name of the Namespacename
IOException
- Throws ClusterSchemaException
and InterruptedIOException
as well as IOException
List<NamespaceDescriptor> getNamespaces() throws IOException
IOException
Copyright © 2007–2019 Cloudera. All rights reserved.