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
Exception
public static void tearDownAfterClass() throws Exception
Exception
public void testUserGlobalThrottle() throws Exception
Exception
public void testUserGlobalReadAndWriteThrottle() throws Exception
Exception
public void testUserTableThrottle() throws Exception
Exception
public void testUserTableReadAndWriteThrottle() throws Exception
Exception
public void testUserNamespaceThrottle() throws Exception
Exception
public void testUserNamespaceReadAndWriteThrottle() throws Exception
Exception
public void testTableGlobalThrottle() throws Exception
Exception
public void testTableGlobalReadAndWriteThrottle() throws Exception
Exception
public void testNamespaceGlobalThrottle() throws Exception
Exception
public void testNamespaceGlobalReadAndWriteThrottle() throws Exception
Exception
public void testUserAndTableThrottle() throws Exception
Exception
public void testUserGlobalBypassThrottle() throws Exception
Exception
public void testTableExistsGetThrottle() throws Exception
Exception
private int doPuts(int maxOps, org.apache.hadoop.hbase.client.Table... tables) throws Exception
Exception
private long doGets(int maxOps, org.apache.hadoop.hbase.client.Table... tables) throws Exception
Exception
private void triggerUserCacheRefresh(boolean bypass, org.apache.hadoop.hbase.TableName... tables) throws Exception
Exception
private void triggerTableCacheRefresh(boolean bypass, org.apache.hadoop.hbase.TableName... tables) throws Exception
Exception
private void triggerNamespaceCacheRefresh(boolean bypass, org.apache.hadoop.hbase.TableName... tables) throws Exception
Exception
private void triggerCacheRefresh(boolean bypass, boolean userLimiter, boolean tableLimiter, boolean nsLimiter, org.apache.hadoop.hbase.TableName... tables) throws Exception
Exception
private void waitMinuteQuota()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.