@InterfaceAudience.Private public class TableNamespaceManager extends Object implements org.apache.hadoop.hbase.Stoppable
ZKNamespaceManager.
WARNING: Do not use. Go via the higher-level ClusterSchema API instead. This manager
is likely to go aways anyways.| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_MAX_REGIONS |
static String |
KEY_MAX_TABLES |
| Modifier and Type | Method and Description |
|---|---|
boolean |
doesNamespaceExist(String namespaceName) |
org.apache.hadoop.hbase.NamespaceDescriptor |
get(String name) |
static long |
getMaxRegions(org.apache.hadoop.hbase.NamespaceDescriptor ns) |
static long |
getMaxTables(org.apache.hadoop.hbase.NamespaceDescriptor ns) |
void |
insertIntoNSTable(org.apache.hadoop.hbase.NamespaceDescriptor ns) |
boolean |
isStopped() |
boolean |
isTableAvailableAndInitialized()
This method checks if the namespace table is assigned and then
tries to create its Table reference.
|
NavigableSet<org.apache.hadoop.hbase.NamespaceDescriptor> |
list() |
void |
removeFromNSTable(String namespaceName) |
void |
removeFromZKNamespaceManager(String namespaceName) |
void |
start() |
void |
stop(String why) |
void |
updateZKNamespaceManager(org.apache.hadoop.hbase.NamespaceDescriptor ns) |
void |
validateTableAndRegionCount(org.apache.hadoop.hbase.NamespaceDescriptor desc) |
public static final String KEY_MAX_REGIONS
public static final String KEY_MAX_TABLES
public void start()
throws IOException
IOExceptionpublic boolean doesNamespaceExist(String namespaceName) throws IOException
IOExceptionpublic org.apache.hadoop.hbase.NamespaceDescriptor get(String name) throws IOException
IOExceptionpublic void insertIntoNSTable(org.apache.hadoop.hbase.NamespaceDescriptor ns)
throws IOException
IOExceptionpublic void updateZKNamespaceManager(org.apache.hadoop.hbase.NamespaceDescriptor ns)
throws IOException
IOExceptionpublic void removeFromNSTable(String namespaceName) throws IOException
IOExceptionpublic void removeFromZKNamespaceManager(String namespaceName) throws IOException
IOExceptionpublic NavigableSet<org.apache.hadoop.hbase.NamespaceDescriptor> list() throws IOException
IOExceptionpublic boolean isTableAvailableAndInitialized()
throws IOException
IOExceptionpublic void validateTableAndRegionCount(org.apache.hadoop.hbase.NamespaceDescriptor desc)
throws IOException
IOExceptionpublic static long getMaxTables(org.apache.hadoop.hbase.NamespaceDescriptor ns)
throws IOException
IOExceptionpublic static long getMaxRegions(org.apache.hadoop.hbase.NamespaceDescriptor ns)
throws IOException
IOExceptionpublic boolean isStopped()
isStopped in interface org.apache.hadoop.hbase.Stoppablepublic void stop(String why)
stop in interface org.apache.hadoop.hbase.StoppableCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.