Package org.apache.hadoop.hbase.quotas
Class ThrottleQuotaTestUtil
java.lang.Object
org.apache.hadoop.hbase.quotas.ThrottleQuotaTestUtil
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static org.apache.hadoop.hbase.util.ManualEnvironmentEdgeprivate static final org.slf4j.Loggerprivate static final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static voidclearQuotaCache(HBaseTestingUtility testUtil) (package private) static longdoGets(int maxOps, byte[] family, byte[] qualifier, org.apache.hadoop.hbase.client.Table... tables) (package private) static longdoGets(int maxOps, org.apache.hadoop.hbase.client.Table... tables) (package private) static longdoMultiGets(int maxOps, int batchSize, int rowCount, byte[] family, byte[] qualifier, org.apache.hadoop.hbase.client.Table... tables) (package private) static intdoPuts(int maxOps, byte[] family, byte[] qualifier, org.apache.hadoop.hbase.client.Table... tables) (package private) static intdoPuts(int maxOps, int valueSize, byte[] family, byte[] qualifier, org.apache.hadoop.hbase.client.Table... tables) (package private) static longdoScans(int desiredRows, org.apache.hadoop.hbase.client.Table table, int caching) private static byte[]generateValue(int valueSize) (package private) static Set<org.apache.hadoop.hbase.quotas.QuotaCache>getQuotaCaches(HBaseTestingUtility testUtil) private static voidtriggerCacheRefresh(HBaseTestingUtility testUtil, boolean bypass, boolean userLimiter, boolean tableLimiter, boolean nsLimiter, boolean rsLimiter, boolean exceedThrottleQuota, org.apache.hadoop.hbase.TableName... tables) (package private) static voidtriggerExceedThrottleQuotaCacheRefresh(HBaseTestingUtility testUtil, boolean exceedEnabled) (package private) static voidtriggerNamespaceCacheRefresh(HBaseTestingUtility testUtil, boolean bypass, org.apache.hadoop.hbase.TableName... tables) (package private) static voidtriggerRegionServerCacheRefresh(HBaseTestingUtility testUtil, boolean bypass) (package private) static voidtriggerTableCacheRefresh(HBaseTestingUtility testUtil, boolean bypass, org.apache.hadoop.hbase.TableName... tables) (package private) static voidtriggerUserCacheRefresh(HBaseTestingUtility testUtil, boolean bypass, org.apache.hadoop.hbase.TableName... tables) (package private) static void
-
Field Details
-
LOG
-
envEdge
-
REFRESH_TIME
- See Also:
-
-
Constructor Details
-
ThrottleQuotaTestUtil
private ThrottleQuotaTestUtil()
-
-
Method Details
-
doPuts
static int doPuts(int maxOps, byte[] family, byte[] qualifier, org.apache.hadoop.hbase.client.Table... tables) -
doPuts
static int doPuts(int maxOps, int valueSize, byte[] family, byte[] qualifier, org.apache.hadoop.hbase.client.Table... tables) -
generateValue
-
doGets
-
doGets
static long doGets(int maxOps, byte[] family, byte[] qualifier, org.apache.hadoop.hbase.client.Table... tables) -
doMultiGets
static long doMultiGets(int maxOps, int batchSize, int rowCount, byte[] family, byte[] qualifier, org.apache.hadoop.hbase.client.Table... tables) -
doScans
-
triggerUserCacheRefresh
static void triggerUserCacheRefresh(HBaseTestingUtility testUtil, boolean bypass, org.apache.hadoop.hbase.TableName... tables) throws Exception - Throws:
Exception
-
triggerTableCacheRefresh
static void triggerTableCacheRefresh(HBaseTestingUtility testUtil, boolean bypass, org.apache.hadoop.hbase.TableName... tables) throws Exception - Throws:
Exception
-
triggerNamespaceCacheRefresh
static void triggerNamespaceCacheRefresh(HBaseTestingUtility testUtil, boolean bypass, org.apache.hadoop.hbase.TableName... tables) throws Exception - Throws:
Exception
-
triggerRegionServerCacheRefresh
static void triggerRegionServerCacheRefresh(HBaseTestingUtility testUtil, boolean bypass) throws Exception - Throws:
Exception
-
triggerExceedThrottleQuotaCacheRefresh
static void triggerExceedThrottleQuotaCacheRefresh(HBaseTestingUtility testUtil, boolean exceedEnabled) throws Exception - Throws:
Exception
-
triggerCacheRefresh
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 - Throws:
Exception
-
getQuotaCaches
-
waitMinuteQuota
-
clearQuotaCache
-