@InterfaceAudience.Private public class NamespaceAuditor extends Object
| Constructor and Description |
|---|
NamespaceAuditor(MasterServices masterServices) |
| Modifier and Type | Method and Description |
|---|---|
void |
addNamespace(NamespaceDescriptor ns) |
void |
checkQuotaToCreateTable(TableName tName,
int regions)
Check quota to create table.
|
void |
checkQuotaToSplitRegion(HRegionInfo hri) |
void |
checkQuotaToUpdateRegion(TableName tName,
int regions)
Check and update region count quota for an existing table.
|
void |
deleteNamespace(String namespace) |
boolean |
isInitialized()
Checks if namespace auditor is initialized.
|
void |
removeFromNamespaceUsage(TableName tableName) |
void |
removeRegionFromNamespaceUsage(HRegionInfo hri) |
void |
start() |
void |
updateQuotaForRegionMerge(HRegionInfo hri) |
public NamespaceAuditor(MasterServices masterServices)
public void start()
throws IOException
IOExceptionpublic void checkQuotaToCreateTable(TableName tName, int regions) throws IOException
tName - - The table name to check quota.regions - - Number of regions that will be added.IOException - Signals that an I/O exception has occurred.public void checkQuotaToUpdateRegion(TableName tName, int regions) throws IOException
tName - - table name for which region count to be updated.regions - - Number of regions that will be added.IOException - Signals that an I/O exception has occurred.public void checkQuotaToSplitRegion(HRegionInfo hri) throws IOException
IOExceptionpublic void updateQuotaForRegionMerge(HRegionInfo hri) throws IOException
IOExceptionpublic void addNamespace(NamespaceDescriptor ns) throws IOException
IOExceptionpublic void deleteNamespace(String namespace) throws IOException
IOExceptionpublic void removeFromNamespaceUsage(TableName tableName) throws IOException
IOExceptionpublic void removeRegionFromNamespaceUsage(HRegionInfo hri) throws IOException
IOExceptionpublic boolean isInitialized()