Package org.apache.hadoop.hbase.quotas
Class TestQuotaStatusRPCs
java.lang.Object
org.apache.hadoop.hbase.quotas.TestQuotaStatusRPCs
Test class for the quota status RPCs in the master and regionserver.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final AtomicLong
private SpaceQuotaHelperForTests
private static final org.slf4j.Logger
private static final HBaseTestingUtil
org.junit.rules.TestName
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate int
countRegionsForTable
(org.apache.hadoop.hbase.TableName tn, Map<org.apache.hadoop.hbase.client.RegionInfo, Long> regionSizes) private int
getTableSize
(org.apache.hadoop.hbase.TableName tn, Map<org.apache.hadoop.hbase.client.RegionInfo, Long> regionSizes) static void
setUp()
void
static void
tearDown()
void
void
void
void
-
Field Details
-
CLASS_RULE
-
LOG
-
TEST_UTIL
-
COUNTER
-
testName
-
helper
-
-
Constructor Details
-
TestQuotaStatusRPCs
public TestQuotaStatusRPCs()
-
-
Method Details
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
setupForTest
- Throws:
Exception
-
testRegionSizesFromMaster
- Throws:
Exception
-
testQuotaSnapshotsFromRS
- Throws:
Exception
-
testQuotaEnforcementsFromRS
- Throws:
Exception
-
testQuotaStatusFromMaster
- Throws:
Exception
-
countRegionsForTable
private int countRegionsForTable(org.apache.hadoop.hbase.TableName tn, Map<org.apache.hadoop.hbase.client.RegionInfo, Long> regionSizes) -
getTableSize
private int getTableSize(org.apache.hadoop.hbase.TableName tn, Map<org.apache.hadoop.hbase.client.RegionInfo, Long> regionSizes)
-