@InterfaceAudience.Private @InterfaceStability.Evolving public class MasterQuotaManager extends Object implements RegionStateListener
Constructor and Description |
---|
MasterQuotaManager(MasterServices masterServices) |
public MasterQuotaManager(MasterServices masterServices)
public void start() throws IOException
IOException
public void stop()
public boolean isQuotaInitialized()
public MasterProtos.SetQuotaResponse setQuota(MasterProtos.SetQuotaRequest req) throws IOException, InterruptedException
IOException
InterruptedException
public void setUserQuota(String userName, MasterProtos.SetQuotaRequest req) throws IOException, InterruptedException
IOException
InterruptedException
public void setUserQuota(String userName, TableName table, MasterProtos.SetQuotaRequest req) throws IOException, InterruptedException
IOException
InterruptedException
public void setUserQuota(String userName, String namespace, MasterProtos.SetQuotaRequest req) throws IOException, InterruptedException
IOException
InterruptedException
public void setTableQuota(TableName table, MasterProtos.SetQuotaRequest req) throws IOException, InterruptedException
IOException
InterruptedException
public void setNamespaceQuota(String namespace, MasterProtos.SetQuotaRequest req) throws IOException, InterruptedException
IOException
InterruptedException
public void setNamespaceQuota(NamespaceDescriptor desc) throws IOException
IOException
public void removeNamespaceQuota(String namespace) throws IOException
IOException
public void checkNamespaceTableAndRegionQuota(TableName tName, int regions) throws IOException
IOException
public void checkAndUpdateNamespaceRegionQuota(TableName tName, int regions) throws IOException
IOException
public int getRegionCountOfTable(TableName tName) throws IOException
IOException
public void onRegionMerged(RegionInfo mergedRegion) throws IOException
RegionStateListener
onRegionMerged
in interface RegionStateListener
IOException
public void onRegionSplit(RegionInfo hri) throws IOException
RegionStateListener
onRegionSplit
in interface RegionStateListener
hri
- An instance of RegionInfoIOException
public 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(RegionInfo hri) throws IOException
RegionStateListener
onRegionSplitReverted
in interface RegionStateListener
hri
- An instance of RegionInfoIOException
- Signals that an I/O exception has occurred.public void addRegionSize(RegionInfo hri, long size, long time)
public Map<RegionInfo,Long> snapshotRegionSizes()
Copyright © 2007–2019 Cloudera. All rights reserved.