@InterfaceAudience.Private public final class ThrottleQuotaTestUtil extends Object
Modifier and Type | Field and Description |
---|---|
private static org.apache.hadoop.hbase.util.ManualEnvironmentEdge |
envEdge |
private static org.slf4j.Logger |
LOG |
private static int |
REFRESH_TIME |
Modifier | Constructor and Description |
---|---|
private |
ThrottleQuotaTestUtil() |
Modifier and Type | Method and Description |
---|---|
(package private) static void |
clearQuotaCache(HBaseTestingUtility testUtil) |
(package private) static long |
doGets(int maxOps,
org.apache.hadoop.hbase.client.Table... tables) |
(package private) static int |
doPuts(int maxOps,
byte[] family,
byte[] qualifier,
org.apache.hadoop.hbase.client.Table... tables) |
(package private) static int |
doPuts(int maxOps,
int valueSize,
byte[] family,
byte[] qualifier,
org.apache.hadoop.hbase.client.Table... tables) |
private static byte[] |
generateValue(int valueSize) |
private static void |
triggerCacheRefresh(HBaseTestingUtility testUtil,
boolean bypass,
boolean userLimiter,
boolean tableLimiter,
boolean nsLimiter,
boolean rsLimiter,
boolean exceedThrottleQuota,
org.apache.hadoop.hbase.TableName... tables) |
(package private) static void |
triggerExceedThrottleQuotaCacheRefresh(HBaseTestingUtility testUtil,
boolean exceedEnabled) |
(package private) static void |
triggerNamespaceCacheRefresh(HBaseTestingUtility testUtil,
boolean bypass,
org.apache.hadoop.hbase.TableName... tables) |
(package private) static void |
triggerRegionServerCacheRefresh(HBaseTestingUtility testUtil,
boolean bypass) |
(package private) static void |
triggerTableCacheRefresh(HBaseTestingUtility testUtil,
boolean bypass,
org.apache.hadoop.hbase.TableName... tables) |
(package private) static void |
triggerUserCacheRefresh(HBaseTestingUtility testUtil,
boolean bypass,
org.apache.hadoop.hbase.TableName... tables) |
(package private) static void |
waitMinuteQuota() |
private static final org.slf4j.Logger LOG
private static org.apache.hadoop.hbase.util.ManualEnvironmentEdge envEdge
private static final int REFRESH_TIME
private ThrottleQuotaTestUtil()
static int doPuts(int maxOps, byte[] family, byte[] qualifier, org.apache.hadoop.hbase.client.Table... tables)
static int doPuts(int maxOps, int valueSize, byte[] family, byte[] qualifier, org.apache.hadoop.hbase.client.Table... tables)
private static byte[] generateValue(int valueSize)
static long doGets(int maxOps, org.apache.hadoop.hbase.client.Table... tables)
static void triggerUserCacheRefresh(HBaseTestingUtility testUtil, boolean bypass, org.apache.hadoop.hbase.TableName... tables) throws Exception
Exception
static void triggerTableCacheRefresh(HBaseTestingUtility testUtil, boolean bypass, org.apache.hadoop.hbase.TableName... tables) throws Exception
Exception
static void triggerNamespaceCacheRefresh(HBaseTestingUtility testUtil, boolean bypass, org.apache.hadoop.hbase.TableName... tables) throws Exception
Exception
static void triggerRegionServerCacheRefresh(HBaseTestingUtility testUtil, boolean bypass) throws Exception
Exception
static void triggerExceedThrottleQuotaCacheRefresh(HBaseTestingUtility testUtil, boolean exceedEnabled) throws Exception
Exception
private static void triggerCacheRefresh(HBaseTestingUtility testUtil, boolean bypass, boolean userLimiter, boolean tableLimiter, boolean nsLimiter, boolean rsLimiter, boolean exceedThrottleQuota, org.apache.hadoop.hbase.TableName... tables) throws Exception
Exception
static void waitMinuteQuota()
static void clearQuotaCache(HBaseTestingUtility testUtil)
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.