public class TestQuotaThrottle extends Object
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.apache.hadoop.hbase.util.ManualEnvironmentEdge |
envEdge |
private static byte[] |
FAMILY |
private static org.slf4j.Logger |
LOG |
private static byte[] |
QUALIFIER |
private static int |
REFRESH_TIME |
private static org.apache.hadoop.hbase.TableName[] |
TABLE_NAMES |
private static org.apache.hadoop.hbase.client.Table[] |
tables |
private static HBaseTestingUtility |
TEST_UTIL |
| Constructor and Description |
|---|
TestQuotaThrottle() |
| Modifier and Type | Method and Description |
|---|---|
private long |
doGets(int maxOps,
org.apache.hadoop.hbase.client.Table... tables) |
private int |
doPuts(int maxOps,
org.apache.hadoop.hbase.client.Table... tables) |
static void |
setUpBeforeClass() |
void |
tearDown() |
static void |
tearDownAfterClass() |
void |
testNamespaceGlobalReadAndWriteThrottle() |
void |
testNamespaceGlobalThrottle() |
void |
testTableExistsGetThrottle() |
void |
testTableGlobalReadAndWriteThrottle() |
void |
testTableGlobalThrottle() |
void |
testUserAndTableThrottle() |
void |
testUserGlobalBypassThrottle() |
void |
testUserGlobalReadAndWriteThrottle() |
void |
testUserGlobalThrottle() |
void |
testUserNamespaceReadAndWriteThrottle() |
void |
testUserNamespaceThrottle() |
void |
testUserTableReadAndWriteThrottle() |
void |
testUserTableThrottle() |
private void |
triggerCacheRefresh(boolean bypass,
boolean userLimiter,
boolean tableLimiter,
boolean nsLimiter,
org.apache.hadoop.hbase.TableName... tables) |
private void |
triggerNamespaceCacheRefresh(boolean bypass,
org.apache.hadoop.hbase.TableName... tables) |
private void |
triggerTableCacheRefresh(boolean bypass,
org.apache.hadoop.hbase.TableName... tables) |
private void |
triggerUserCacheRefresh(boolean bypass,
org.apache.hadoop.hbase.TableName... tables) |
private void |
waitMinuteQuota() |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final int REFRESH_TIME
private static final HBaseTestingUtility TEST_UTIL
private static final byte[] FAMILY
private static final byte[] QUALIFIER
private static final org.apache.hadoop.hbase.TableName[] TABLE_NAMES
private static org.apache.hadoop.hbase.util.ManualEnvironmentEdge envEdge
private static org.apache.hadoop.hbase.client.Table[] tables
public TestQuotaThrottle()
public static void setUpBeforeClass() throws Exception
Exceptionpublic static void tearDownAfterClass() throws Exception
Exceptionpublic void testUserGlobalThrottle() throws Exception
Exceptionpublic void testUserGlobalReadAndWriteThrottle() throws Exception
Exceptionpublic void testUserTableThrottle() throws Exception
Exceptionpublic void testUserTableReadAndWriteThrottle() throws Exception
Exceptionpublic void testUserNamespaceThrottle() throws Exception
Exceptionpublic void testUserNamespaceReadAndWriteThrottle() throws Exception
Exceptionpublic void testTableGlobalThrottle() throws Exception
Exceptionpublic void testTableGlobalReadAndWriteThrottle() throws Exception
Exceptionpublic void testNamespaceGlobalThrottle() throws Exception
Exceptionpublic void testNamespaceGlobalReadAndWriteThrottle() throws Exception
Exceptionpublic void testUserAndTableThrottle() throws Exception
Exceptionpublic void testUserGlobalBypassThrottle() throws Exception
Exceptionpublic void testTableExistsGetThrottle() throws Exception
Exceptionprivate int doPuts(int maxOps, org.apache.hadoop.hbase.client.Table... tables) throws Exception
Exceptionprivate long doGets(int maxOps, org.apache.hadoop.hbase.client.Table... tables) throws Exception
Exceptionprivate void triggerUserCacheRefresh(boolean bypass, org.apache.hadoop.hbase.TableName... tables) throws Exception
Exceptionprivate void triggerTableCacheRefresh(boolean bypass, org.apache.hadoop.hbase.TableName... tables) throws Exception
Exceptionprivate void triggerNamespaceCacheRefresh(boolean bypass, org.apache.hadoop.hbase.TableName... tables) throws Exception
Exceptionprivate void triggerCacheRefresh(boolean bypass, boolean userLimiter, boolean tableLimiter, boolean nsLimiter, org.apache.hadoop.hbase.TableName... tables) throws Exception
Exceptionprivate void waitMinuteQuota()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.