@InterfaceAudience.Private public class TableNamespaceManager extends Object implements 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) |
NamespaceDescriptor |
get(String name) |
static long |
getMaxRegions(NamespaceDescriptor ns) |
static long |
getMaxTables(NamespaceDescriptor ns) |
void |
insertIntoNSTable(NamespaceDescriptor ns) |
boolean |
isStopped() |
boolean |
isTableAvailableAndInitialized()
This method checks if the namespace table is assigned and then
tries to create its Table reference.
|
NavigableSet<NamespaceDescriptor> |
list() |
void |
removeFromNSTable(String namespaceName) |
void |
removeFromZKNamespaceManager(String namespaceName) |
void |
start() |
void |
stop(String why)
Stop this service.
|
void |
updateZKNamespaceManager(NamespaceDescriptor ns) |
void |
validateTableAndRegionCount(NamespaceDescriptor desc) |
public static final String KEY_MAX_REGIONS
public static final String KEY_MAX_TABLES
public void start() throws IOException
IOException
public boolean doesNamespaceExist(String namespaceName) throws IOException
IOException
public NamespaceDescriptor get(String name) throws IOException
IOException
public void insertIntoNSTable(NamespaceDescriptor ns) throws IOException
IOException
public void updateZKNamespaceManager(NamespaceDescriptor ns) throws IOException
IOException
public void removeFromNSTable(String namespaceName) throws IOException
IOException
public void removeFromZKNamespaceManager(String namespaceName) throws IOException
IOException
public NavigableSet<NamespaceDescriptor> list() throws IOException
IOException
public boolean isTableAvailableAndInitialized() throws IOException
IOException
public void validateTableAndRegionCount(NamespaceDescriptor desc) throws IOException
IOException
public static long getMaxTables(NamespaceDescriptor ns) throws IOException
IOException
public static long getMaxRegions(NamespaceDescriptor ns) throws IOException
IOException
public boolean isStopped()
isStopped
in interface Stoppable
Stoppable.stop(String)
has been closed.Copyright © 2007–2019 Cloudera. All rights reserved.