Class TestRegionServerReadRequestMetrics
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestRegionServerReadRequestMetrics
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static enumstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static org.apache.hadoop.hbase.client.Adminprivate static final byte[]private static final byte[]static final HBaseClassTestRuleprivate static final byte[]private static final byte[]private static final byte[]private static final org.slf4j.Loggerprivate static final intprivate static org.apache.hadoop.hbase.client.RegionInfoprivate static Map<TestRegionServerReadRequestMetrics.Metric,Long> private static Map<TestRegionServerReadRequestMetrics.Metric,Long> private static final byte[]private static final byte[]private static final byte[]private static Collection<org.apache.hadoop.hbase.ServerName>private static final intprivate static org.apache.hadoop.hbase.client.Tableprivate static final org.apache.hadoop.hbase.TableNameprivate static final HBaseTestingUtilityprivate static final intprivate static final byte[]private static final byte[]private static final byte[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static org.apache.hadoop.hbase.client.Tableprivate static longgetReadRequest(org.apache.hadoop.hbase.ServerLoad serverLoad, org.apache.hadoop.hbase.RegionLoad regionLoad, TestRegionServerReadRequestMetrics.Metric metric) private static voidputData()private static voidstatic voidstatic voidprivate voidtestReadRequests(byte[] regionName, int expectedReadRequests) private static voidtestReadRequests(long resultCount, long expectedReadRequests, long expectedFilteredReadRequests) voidvoidvoidvoidvoidprivate static void
-
Field Details
-
CLASS_RULE
-
LOG
-
TEST_UTIL
-
TABLE_NAME
-
CF1
-
CF2
-
ROW1
-
ROW2
-
ROW3
-
COL1
-
COL2
-
COL3
-
VAL1
-
VAL2
-
VAL3
-
MAX_TRY
- See Also:
-
SLEEP_MS
- See Also:
-
TTL
- See Also:
-
admin
-
serverNames
-
table
-
regionInfo
-
requestsMap
-
requestsMapPrev
-
-
Constructor Details
-
TestRegionServerReadRequestMetrics
public TestRegionServerReadRequestMetrics()
-
-
Method Details
-
setUpOnce
- Throws:
Exception
-
createTable
- Throws:
IOException
-
testReadRequests
private static void testReadRequests(long resultCount, long expectedReadRequests, long expectedFilteredReadRequests) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
updateMetricsMap
- Throws:
IOExceptionInterruptedException
-
getReadRequest
private static long getReadRequest(org.apache.hadoop.hbase.ServerLoad serverLoad, org.apache.hadoop.hbase.RegionLoad regionLoad, TestRegionServerReadRequestMetrics.Metric metric) -
putData
- Throws:
IOException
-
putTTLExpiredData
- Throws:
IOExceptionInterruptedException
-
tearDownOnce
- Throws:
Exception
-
testReadRequestsCountNotFiltered
- Throws:
Exception
-
testReadRequestsCountWithFilter
- Throws:
Exception
-
testReadRequestsCountWithDeletedRow
- Throws:
Exception
-
testReadRequestsCountWithTTLExpiration
- Throws:
Exception
-
testReadRequestsWithCoprocessor
- Throws:
Exception
-
testReadRequests
- Throws:
Exception
-