@InterfaceAudience.Private @InterfaceStability.Evolving public class MasterQuotaManager extends Object implements RegionStateListener
| 构造器和说明 |
|---|
MasterQuotaManager(MasterServices masterServices) |
public MasterQuotaManager(MasterServices masterServices)
public void start()
throws IOException
IOExceptionpublic void stop()
public boolean isQuotaInitialized()
public org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetQuotaResponse setQuota(org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetQuotaRequest req) throws IOException, InterruptedException
public void setUserQuota(String userName, org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetQuotaRequest req) throws IOException, InterruptedException
public void setUserQuota(String userName, TableName table, org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetQuotaRequest req) throws IOException, InterruptedException
public void setUserQuota(String userName, String namespace, org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetQuotaRequest req) throws IOException, InterruptedException
public void setTableQuota(TableName table, org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetQuotaRequest req) throws IOException, InterruptedException
public void setNamespaceQuota(String namespace, org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetQuotaRequest req) throws IOException, InterruptedException
public void setNamespaceQuota(NamespaceDescriptor desc) throws IOException
IOExceptionpublic void removeNamespaceQuota(String namespace) throws IOException
IOExceptionpublic void checkNamespaceTableAndRegionQuota(TableName tName, int regions) throws IOException
IOExceptionpublic void checkAndUpdateNamespaceRegionQuota(TableName tName, int regions) throws IOException
IOExceptionpublic int getRegionCountOfTable(TableName tName) throws IOException
IOExceptionpublic void onRegionMerged(HRegionInfo hri) throws IOException
RegionStateListeneronRegionMerged 在接口中 RegionStateListenerhri - An instance of HRegionInfoIOExceptionpublic void onRegionSplit(HRegionInfo hri) throws IOException
RegionStateListeneronRegionSplit 在接口中 RegionStateListenerhri - An instance of HRegionInfoIOExceptionpublic void removeTableFromNamespaceQuota(TableName tName) throws IOException
tName - - The table name to update quota usage.IOException - Signals that an I/O exception has occurred.public NamespaceAuditor getNamespaceQuotaManager()
public void onRegionSplitReverted(HRegionInfo hri) throws IOException
RegionStateListeneronRegionSplitReverted 在接口中 RegionStateListenerhri - An instance of HRegionInfoIOException - Signals that an I/O exception has occurred.Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.