Package org.apache.hadoop.hbase.quotas
Class TestRateLimiter
java.lang.Object
org.apache.hadoop.hbase.quotas.TestRateLimiter
Verify the behaviour of the Rate Limiter.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidinttestCanExecuteByRate(org.apache.hadoop.hbase.quotas.RateLimiter limiter, int rate) voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidprivate voidtestWaitInterval(TimeUnit timeUnit, long limit, long expectedWaitInterval) voidvoidvoidvoid
-
Field Details
-
CLASS_RULE
-
-
Constructor Details
-
TestRateLimiter
public TestRateLimiter()
-
-
Method Details
-
testWaitIntervalTimeUnitSeconds
-
testWaitIntervalTimeUnitMinutes
-
testWaitIntervalTimeUnitHours
-
testWaitIntervalTimeUnitDays
-
testWaitInterval
-
testOverconsumptionAverageIntervalRefillStrategy
-
testOverconsumptionFixedIntervalRefillStrategy
- Throws:
InterruptedException
-
testFixedIntervalResourceAvailability
- Throws:
Exception
-
testLimiterBySmallerRate
- Throws:
InterruptedException
-
testCanExecuteOfAverageIntervalRateLimiter
- Throws:
InterruptedException
-
testCanExecuteOfFixedIntervalRateLimiter
- Throws:
InterruptedException
-
testCanExecuteByRate
-
testRefillOfAverageIntervalRateLimiter
- Throws:
InterruptedException
-
testRefillOfFixedIntervalRateLimiter
- Throws:
InterruptedException
-
testUnconfiguredLimiters
- Throws:
InterruptedException
-
testExtremeLimiters
- Throws:
InterruptedException
-
testLimiterCompensationOverflow
- Throws:
InterruptedException
-
itRunsFullWithPartialRefillInterval
-
itRunsPartialRefillIntervals
-
itRunsRepeatedPartialRefillIntervals
-