Package org.apache.hadoop.hbase.master
Class TableNamespaceManager
java.lang.Object
org.apache.hadoop.hbase.master.TableNamespaceManager
This is a helper class used internally to manage the namespace metadata that is stored in the ns
family in meta table.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ConcurrentMap<String,NamespaceDescriptor> (package private) static final intstatic final Stringstatic final Stringprivate final MasterServicesprivate boolean(package private) static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprivate voidaddToCache(Result result, byte[] family, byte[] qualifier) private voidvoiddeleteNamespace(String namespaceName) booleandoesNamespaceExist(String namespaceName) check whether a namespace has already existed.static longstatic longstatic voidlist()private voidprivate voidprivate voidvoidprivate booleanvoidstart()private voidvoid
-
Field Details
-
KEY_MAX_REGIONS
- See Also:
-
KEY_MAX_TABLES
- See Also:
-
NS_INIT_TIMEOUT
- See Also:
-
DEFAULT_NS_INIT_TIMEOUT
- See Also:
-
cache
-
masterServices
-
migrationDone
-
-
Constructor Details
-
TableNamespaceManager
TableNamespaceManager(MasterServices masterServices)
-
-
Method Details
-
tryMigrateNamespaceTable
- Throws:
IOExceptionInterruptedException
-
addToCache
- Throws:
IOException
-
loadFromMeta
- Throws:
IOException
-
loadFromNamespace
- Throws:
IOException
-
shouldLoadFromMeta
- Throws:
IOException
-
loadNamespaceIntoCache
- Throws:
IOException
-
start
- Throws:
IOExceptionInterruptedException
-
doesNamespaceExist
check whether a namespace has already existed.- Throws:
IOException
-
get
- Throws:
IOException
-
checkMigrationDone
- Throws:
IOException
-
addOrUpdateNamespace
- Throws:
IOException
-
insertNamespaceToMeta
public static void insertNamespaceToMeta(Connection conn, NamespaceDescriptor ns) throws IOException - Throws:
IOException
-
deleteNamespace
- Throws:
IOException
-
list
- Throws:
IOException
-
validateTableAndRegionCount
- Throws:
IOException
-
setMigrationDone
-
getMaxTables
- Throws:
IOException
-
getMaxRegions
- Throws:
IOException
-