@InterfaceAudience.Private class ClusterSchemaServiceImpl extends org.apache.hbase.thirdparty.com.google.common.util.concurrent.AbstractService implements ClusterSchemaService
| Modifier and Type | Field and Description |
|---|---|
private static List<NamespaceDescriptor> |
EMPTY_NAMESPACE_LIST |
private MasterServices |
masterServices |
private TableNamespaceManager |
tableNamespaceManager |
DEFAULT_HBASE_MASTER_CLUSTER_SCHEMA_OPERATION_TIMEOUT, HBASE_MASTER_CLUSTER_SCHEMA_OPERATION_TIMEOUT_KEY| Constructor and Description |
|---|
ClusterSchemaServiceImpl(MasterServices masterServices) |
| Modifier and Type | Method and Description |
|---|---|
private void |
checkIsRunning() |
long |
createNamespace(NamespaceDescriptor namespaceDescriptor,
NonceKey nonceKey,
ProcedurePrepareLatch latch)
Create a new Namespace.
|
long |
deleteNamespace(String name,
NonceKey nonceKey,
ProcedurePrepareLatch latch)
Delete an existing Namespace.
|
protected void |
doStart() |
protected void |
doStop() |
NamespaceDescriptor |
getNamespace(String name)
Get a Namespace
|
List<NamespaceDescriptor> |
getNamespaces()
Get all Namespaces
|
TableNamespaceManager |
getTableNamespaceManager()
For internals use only.
|
long |
modifyNamespace(NamespaceDescriptor namespaceDescriptor,
NonceKey nonceKey,
ProcedurePrepareLatch latch)
Modify an existing Namespace.
|
private long |
submitProcedure(Procedure<MasterProcedureEnv> procedure,
NonceKey nonceKey) |
addListener, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, failureCause, isRunning, notifyFailed, notifyStarted, notifyStopped, startAsync, state, stopAsync, toStringprivate final TableNamespaceManager tableNamespaceManager
private final MasterServices masterServices
private static final List<NamespaceDescriptor> EMPTY_NAMESPACE_LIST
ClusterSchemaServiceImpl(MasterServices masterServices)
private void checkIsRunning() throws ServiceNotRunningException
ServiceNotRunningExceptionprotected void doStart()
doStart in class org.apache.hbase.thirdparty.com.google.common.util.concurrent.AbstractServiceprotected void doStop()
doStop in class org.apache.hbase.thirdparty.com.google.common.util.concurrent.AbstractServicepublic TableNamespaceManager getTableNamespaceManager()
ClusterSchemagetTableNamespaceManager in interface ClusterSchemaTableNamespaceManagerprivate long submitProcedure(Procedure<MasterProcedureEnv> procedure, NonceKey nonceKey) throws ServiceNotRunningException
ServiceNotRunningExceptionpublic long createNamespace(NamespaceDescriptor namespaceDescriptor, NonceKey nonceKey, ProcedurePrepareLatch latch) throws IOException
ClusterSchemacreateNamespace in interface ClusterSchemanamespaceDescriptor - 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 IOExceptionpublic long modifyNamespace(NamespaceDescriptor namespaceDescriptor, NonceKey nonceKey, ProcedurePrepareLatch latch) throws IOException
ClusterSchemamodifyNamespace in interface ClusterSchemanonceKey - 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 IOExceptionpublic long deleteNamespace(String name, NonceKey nonceKey, ProcedurePrepareLatch latch) throws IOException
ClusterSchemadeleteNamespace in interface ClusterSchemanonceKey - 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 IOExceptionpublic NamespaceDescriptor getNamespace(String name) throws IOException
ClusterSchemagetNamespace in interface ClusterSchemaname - Name of the NamespacenameIOException - Throws ClusterSchemaException and InterruptedIOException
as well as IOExceptionpublic List<NamespaceDescriptor> getNamespaces() throws IOException
ClusterSchemagetNamespaces in interface ClusterSchemaIOExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.