@InterfaceAudience.Private public class TableNamespaceManager extends Object
ZKNamespaceManager| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_MAX_REGIONS |
static String |
KEY_MAX_TABLES |
| Constructor and Description |
|---|
TableNamespaceManager(MasterServices masterServices) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
doesNamespaceExist(String namespaceName) |
NamespaceDescriptor |
get(String name) |
static long |
getMaxRegions(NamespaceDescriptor ns) |
static long |
getMaxTables(NamespaceDescriptor ns) |
void |
insertIntoNSTable(NamespaceDescriptor ns) |
boolean |
isTableAvailableAndInitialized(boolean createNamespaceAync)
This method checks if the namespace table is assigned and then
tries to create its HTable.
|
NavigableSet<NamespaceDescriptor> |
list() |
void |
removeFromNSTable(String namespaceName) |
void |
removeFromZKNamespaceManager(String namespaceName) |
void |
start() |
void |
updateZKNamespaceManager(NamespaceDescriptor ns) |
void |
validateTableAndRegionCount(NamespaceDescriptor desc) |
public static final String KEY_MAX_REGIONS
public static final String KEY_MAX_TABLES
public TableNamespaceManager(MasterServices masterServices)
public void start()
throws IOException
IOExceptionpublic boolean doesNamespaceExist(String namespaceName) throws IOException
IOExceptionpublic NamespaceDescriptor get(String name) throws IOException
IOExceptionpublic void insertIntoNSTable(NamespaceDescriptor ns) throws IOException
IOExceptionpublic void updateZKNamespaceManager(NamespaceDescriptor ns) throws IOException
IOExceptionpublic void removeFromNSTable(String namespaceName) throws IOException
IOExceptionpublic void removeFromZKNamespaceManager(String namespaceName) throws IOException
IOExceptionpublic NavigableSet<NamespaceDescriptor> list() throws IOException
IOExceptionpublic boolean isTableAvailableAndInitialized(boolean createNamespaceAync)
throws IOException
IOExceptionpublic void validateTableAndRegionCount(NamespaceDescriptor desc) throws IOException
IOExceptionpublic static long getMaxTables(NamespaceDescriptor ns) throws IOException
IOExceptionpublic static long getMaxRegions(NamespaceDescriptor ns) throws IOException
IOExceptionCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.