@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.
|
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, toString
private final TableNamespaceManager tableNamespaceManager
private final MasterServices masterServices
private static final List<NamespaceDescriptor> EMPTY_NAMESPACE_LIST
ClusterSchemaServiceImpl(MasterServices masterServices)
private void checkIsRunning() throws ServiceNotRunningException
ServiceNotRunningException
public void doStart()
doStart
in class org.apache.hbase.thirdparty.com.google.common.util.concurrent.AbstractService
protected void doStop()
doStop
in class org.apache.hbase.thirdparty.com.google.common.util.concurrent.AbstractService
public TableNamespaceManager getTableNamespaceManager()
ClusterSchema
getTableNamespaceManager
in interface ClusterSchema
TableNamespaceManager
private long submitProcedure(Procedure<MasterProcedureEnv> procedure, NonceKey nonceKey) throws ServiceNotRunningException
ServiceNotRunningException
public long createNamespace(NamespaceDescriptor namespaceDescriptor, NonceKey nonceKey, ProcedurePrepareLatch latch) throws IOException
ClusterSchema
createNamespace
in interface ClusterSchema
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
public long modifyNamespace(NamespaceDescriptor namespaceDescriptor, NonceKey nonceKey, ProcedurePrepareLatch latch) throws IOException
ClusterSchema
modifyNamespace
in interface ClusterSchema
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
public long deleteNamespace(String name, NonceKey nonceKey, ProcedurePrepareLatch latch) throws IOException
ClusterSchema
deleteNamespace
in interface ClusterSchema
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
public NamespaceDescriptor getNamespace(String name) throws IOException
ClusterSchema
getNamespace
in interface ClusterSchema
name
- Name of the Namespacename
IOException
- Throws ClusterSchemaException
and InterruptedIOException
as well as IOException
public List<NamespaceDescriptor> getNamespaces() throws IOException
ClusterSchema
getNamespaces
in interface ClusterSchema
IOException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.