@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 |
---|---|
void |
create(NamespaceDescriptor ns) |
NamespaceDescriptor |
get(String name) |
static long |
getMaxRegions(NamespaceDescriptor ns) |
static long |
getMaxTables(NamespaceDescriptor ns) |
boolean |
isTableAvailableAndInitialized()
This method checks if the namespace table is assigned and then
tries to create its HTable.
|
NavigableSet<NamespaceDescriptor> |
list() |
void |
remove(String name) |
void |
start() |
void |
update(NamespaceDescriptor ns) |
public static final String KEY_MAX_REGIONS
public static final String KEY_MAX_TABLES
public TableNamespaceManager(MasterServices masterServices)
public void start() throws IOException
IOException
public NamespaceDescriptor get(String name) throws IOException
IOException
public void create(NamespaceDescriptor ns) throws IOException
IOException
public void update(NamespaceDescriptor ns) throws IOException
IOException
public void remove(String name) throws IOException
IOException
public NavigableSet<NamespaceDescriptor> list() throws IOException
IOException
public boolean isTableAvailableAndInitialized() throws IOException
IOException
public static long getMaxTables(NamespaceDescriptor ns) throws IOException
IOException
public static long getMaxRegions(NamespaceDescriptor ns) throws IOException
IOException
Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.