private class QuotaCache.QuotaRefresherChore extends ScheduledChore
Modifier and Type | Field and Description |
---|---|
private long |
lastUpdate |
Constructor and Description |
---|
QuotaRefresherChore(int period,
Stoppable stoppable) |
Modifier and Type | Method and Description |
---|---|
protected void |
chore()
The task to execute on each scheduled execution of the Chore
|
private <K,V extends QuotaState> |
fetch(String type,
ConcurrentHashMap<K,V> quotasMap,
QuotaCache.Fetcher<K,V> fetcher) |
private void |
fetchExceedThrottleQuota() |
private void |
fetchNamespaceQuotaState() |
private void |
fetchRegionServerQuotaState() |
private void |
fetchTableQuotaState() |
private void |
fetchUserQuotaState() |
private void |
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.
|
cancel, cancel, choreForTesting, cleanup, getInitialDelay, getName, getPeriod, getStopper, getTimeUnit, initialChore, isInitialChoreComplete, isScheduled, run, toString, triggerNow
private long lastUpdate
public QuotaRefresherChore(int period, Stoppable stoppable)
protected void chore()
ScheduledChore
chore
in class ScheduledChore
private void fetchNamespaceQuotaState()
private void fetchTableQuotaState()
private void fetchUserQuotaState()
private void fetchRegionServerQuotaState()
private void fetchExceedThrottleQuota()
private <K,V extends QuotaState> void fetch(String type, ConcurrentHashMap<K,V> quotasMap, QuotaCache.Fetcher<K,V> fetcher)
private void updateQuotaFactors()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.