Package org.apache.hadoop.hbase.hbtop
Class TestUtils
java.lang.Object
org.apache.hadoop.hbase.hbtop.TestUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static void
assertRecordInClientMode
(org.apache.hadoop.hbase.hbtop.Record record, long readRequestCountPerSecond, long writeCountRequestPerSecond, long filteredReadRequestsCount) private static void
assertRecordInNamespaceMode
(org.apache.hadoop.hbase.hbtop.Record record, long requestCountPerSecond, long readRequestCountPerSecond, long filteredReadRequestCountPerSecond, long writeCountRequestPerSecond, org.apache.hadoop.hbase.Size storeFileSize, org.apache.hadoop.hbase.Size uncompressedStoreFileSize, int numStoreFiles, org.apache.hadoop.hbase.Size memStoreSize, int regionCount) private static void
assertRecordInRegionMode
(org.apache.hadoop.hbase.hbtop.Record record, String namespace, String startCode, String replicaId, String table, String region, String regionServer, String longRegionServer, long requestCountPerSecond, long readRequestCountPerSecond, long filteredReadRequestCountPerSecond, long writeCountRequestPerSecond, org.apache.hadoop.hbase.Size storeFileSize, org.apache.hadoop.hbase.Size uncompressedStoreFileSize, int numStoreFiles, org.apache.hadoop.hbase.Size memStoreSize, float locality, String startKey, long compactingCellCount, long compactedCellCount, float compactionProgress, String lastMajorCompactionTime) private static void
assertRecordInRegionServerMode
(org.apache.hadoop.hbase.hbtop.Record record, String longRegionServer, long requestCountPerSecond, long readRequestCountPerSecond, long filteredReadRequestCountPerSecond, long writeCountRequestPerSecond, org.apache.hadoop.hbase.Size storeFileSize, org.apache.hadoop.hbase.Size uncompressedStoreFileSize, int numStoreFiles, org.apache.hadoop.hbase.Size memStoreSize, int regionCount, org.apache.hadoop.hbase.Size usedHeapSize, org.apache.hadoop.hbase.Size maxHeapSize) private static void
assertRecordInTableMode
(org.apache.hadoop.hbase.hbtop.Record record, long requestCountPerSecond, long readRequestCountPerSecond, long filteredReadRequestCountPerSecond, long writeCountRequestPerSecond, org.apache.hadoop.hbase.Size storeFileSize, org.apache.hadoop.hbase.Size uncompressedStoreFileSize, int numStoreFiles, org.apache.hadoop.hbase.Size memStoreSize, int regionCount) private static void
assertRecordInUserMode
(org.apache.hadoop.hbase.hbtop.Record record, long readRequestCountPerSecond, long writeCountRequestPerSecond, long filteredReadRequestsCount) static void
assertRecordsInClientMode
(List<org.apache.hadoop.hbase.hbtop.Record> records) static void
assertRecordsInNamespaceMode
(List<org.apache.hadoop.hbase.hbtop.Record> records) static void
assertRecordsInRegionMode
(List<org.apache.hadoop.hbase.hbtop.Record> records) static void
assertRecordsInRegionServerMode
(List<org.apache.hadoop.hbase.hbtop.Record> records) static void
assertRecordsInTableMode
(List<org.apache.hadoop.hbase.hbtop.Record> records) static void
assertRecordsInUserMode
(List<org.apache.hadoop.hbase.hbtop.Record> records) static void
assertSummary
(org.apache.hadoop.hbase.hbtop.screen.top.Summary summary) static org.apache.hadoop.hbase.ClusterMetrics
private static org.apache.hadoop.hbase.RegionMetrics
createRegionMetrics
(String regionName, long readRequestCount, long filteredReadRequestCount, long writeRequestCount, org.apache.hadoop.hbase.Size storeFileSize, org.apache.hadoop.hbase.Size uncompressedStoreFileSize, int storeFileCount, org.apache.hadoop.hbase.Size memStoreSize, float locality, long compactedCellCount, long compactingCellCount, String lastMajorCompactionTime) private static org.apache.hadoop.hbase.ServerMetrics
createServerMetrics
(org.apache.hadoop.hbase.ServerName serverName, long reportTimestamp, org.apache.hadoop.hbase.Size usedHeapSize, org.apache.hadoop.hbase.Size maxHeapSize, long requestCountPerSecond, List<org.apache.hadoop.hbase.RegionMetrics> regionMetricsList, List<org.apache.hadoop.hbase.UserMetrics> userMetricsList) private static org.apache.hadoop.hbase.UserMetrics
createUserMetrics
(String user, long readRequestCount, long writeRequestCount, long filteredReadRequestsCount)
-
Constructor Details
-
TestUtils
private TestUtils()
-
-
Method Details
-
createDummyClusterMetrics
-
createUserMetrics
private static org.apache.hadoop.hbase.UserMetrics createUserMetrics(String user, long readRequestCount, long writeRequestCount, long filteredReadRequestsCount) -
createRegionMetrics
private static org.apache.hadoop.hbase.RegionMetrics createRegionMetrics(String regionName, long readRequestCount, long filteredReadRequestCount, long writeRequestCount, org.apache.hadoop.hbase.Size storeFileSize, org.apache.hadoop.hbase.Size uncompressedStoreFileSize, int storeFileCount, org.apache.hadoop.hbase.Size memStoreSize, float locality, long compactedCellCount, long compactingCellCount, String lastMajorCompactionTime) -
createServerMetrics
private static org.apache.hadoop.hbase.ServerMetrics createServerMetrics(org.apache.hadoop.hbase.ServerName serverName, long reportTimestamp, org.apache.hadoop.hbase.Size usedHeapSize, org.apache.hadoop.hbase.Size maxHeapSize, long requestCountPerSecond, List<org.apache.hadoop.hbase.RegionMetrics> regionMetricsList, List<org.apache.hadoop.hbase.UserMetrics> userMetricsList) -
assertRecordsInRegionMode
-
assertRecordInRegionMode
private static void assertRecordInRegionMode(org.apache.hadoop.hbase.hbtop.Record record, String namespace, String startCode, String replicaId, String table, String region, String regionServer, String longRegionServer, long requestCountPerSecond, long readRequestCountPerSecond, long filteredReadRequestCountPerSecond, long writeCountRequestPerSecond, org.apache.hadoop.hbase.Size storeFileSize, org.apache.hadoop.hbase.Size uncompressedStoreFileSize, int numStoreFiles, org.apache.hadoop.hbase.Size memStoreSize, float locality, String startKey, long compactingCellCount, long compactedCellCount, float compactionProgress, String lastMajorCompactionTime) -
assertRecordsInNamespaceMode
-
assertRecordInNamespaceMode
private static void assertRecordInNamespaceMode(org.apache.hadoop.hbase.hbtop.Record record, long requestCountPerSecond, long readRequestCountPerSecond, long filteredReadRequestCountPerSecond, long writeCountRequestPerSecond, org.apache.hadoop.hbase.Size storeFileSize, org.apache.hadoop.hbase.Size uncompressedStoreFileSize, int numStoreFiles, org.apache.hadoop.hbase.Size memStoreSize, int regionCount) -
assertRecordsInTableMode
-
assertRecordsInUserMode
-
assertRecordsInClientMode
-
assertRecordInUserMode
private static void assertRecordInUserMode(org.apache.hadoop.hbase.hbtop.Record record, long readRequestCountPerSecond, long writeCountRequestPerSecond, long filteredReadRequestsCount) -
assertRecordInClientMode
private static void assertRecordInClientMode(org.apache.hadoop.hbase.hbtop.Record record, long readRequestCountPerSecond, long writeCountRequestPerSecond, long filteredReadRequestsCount) -
assertRecordInTableMode
private static void assertRecordInTableMode(org.apache.hadoop.hbase.hbtop.Record record, long requestCountPerSecond, long readRequestCountPerSecond, long filteredReadRequestCountPerSecond, long writeCountRequestPerSecond, org.apache.hadoop.hbase.Size storeFileSize, org.apache.hadoop.hbase.Size uncompressedStoreFileSize, int numStoreFiles, org.apache.hadoop.hbase.Size memStoreSize, int regionCount) -
assertRecordsInRegionServerMode
public static void assertRecordsInRegionServerMode(List<org.apache.hadoop.hbase.hbtop.Record> records) -
assertRecordInRegionServerMode
private static void assertRecordInRegionServerMode(org.apache.hadoop.hbase.hbtop.Record record, String longRegionServer, long requestCountPerSecond, long readRequestCountPerSecond, long filteredReadRequestCountPerSecond, long writeCountRequestPerSecond, org.apache.hadoop.hbase.Size storeFileSize, org.apache.hadoop.hbase.Size uncompressedStoreFileSize, int numStoreFiles, org.apache.hadoop.hbase.Size memStoreSize, int regionCount, org.apache.hadoop.hbase.Size usedHeapSize, org.apache.hadoop.hbase.Size maxHeapSize) -
assertSummary
-