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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
int
testCanExecuteByRate
(org.apache.hadoop.hbase.quotas.RateLimiter limiter, int rate) void
void
void
void
void
void
void
void
void
void
void
private void
testWaitInterval
(TimeUnit timeUnit, long limit, long expectedWaitInterval) void
void
void
void
-
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
-