Package org.apache.hadoop.hbase.quotas
Class QuotaCache.QuotaRefresherChore
java.lang.Object
org.apache.hadoop.hbase.ScheduledChore
org.apache.hadoop.hbase.quotas.QuotaCache.QuotaRefresherChore
- All Implemented Interfaces:
Runnable
- Enclosing class:
- QuotaCache
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
chore()
The task to execute on each scheduled execution of the Choreprivate <K,
V extends QuotaState>
voidfetch
(String type, ConcurrentMap<K, V> quotasMap, QuotaCache.Fetcher<K, V> fetcher) private void
private void
private void
private void
private void
private void
Update quota factors which is used to divide cluster scope quota into machine scope quota For user/namespace/user over namespace quota, use [1 / RSNum] as machine factor.Methods inherited from class org.apache.hadoop.hbase.ScheduledChore
cancel, cancel, choreForTesting, cleanup, getInitialDelay, getName, getPeriod, getStopper, getTimeUnit, initialChore, isInitialChoreComplete, isScheduled, run, shutdown, shutdown, toString, triggerNow
-
Field Details
-
lastUpdate
-
-
Constructor Details
-
QuotaRefresherChore
-
-
Method Details
-
chore
Description copied from class:ScheduledChore
The task to execute on each scheduled execution of the Chore- Specified by:
chore
in classScheduledChore
-
fetchNamespaceQuotaState
-
fetchTableQuotaState
-
fetchUserQuotaState
-
fetchRegionServerQuotaState
-
fetchExceedThrottleQuota
-
fetch
private <K,V extends QuotaState> void fetch(String type, ConcurrentMap<K, V> quotasMap, QuotaCache.Fetcher<K, V> fetcher) -
updateQuotaFactors
Update quota factors which is used to divide cluster scope quota into machine scope quota For user/namespace/user over namespace quota, use [1 / RSNum] as machine factor. For table/user over table quota, use [1 / TotalTableRegionNum * MachineTableRegionNum] as machine factor.
-