Class TestUtils

java.lang.Object
org.apache.hadoop.hbase.hbtop.TestUtils

public final class TestUtils extends Object
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private 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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • createDummyClusterMetrics

      public static org.apache.hadoop.hbase.ClusterMetrics 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

      public static void assertRecordsInRegionMode(List<org.apache.hadoop.hbase.hbtop.Record> records)
    • 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

      public static void assertRecordsInNamespaceMode(List<org.apache.hadoop.hbase.hbtop.Record> records)
    • 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

      public static void assertRecordsInTableMode(List<org.apache.hadoop.hbase.hbtop.Record> records)
    • assertRecordsInUserMode

      public static void assertRecordsInUserMode(List<org.apache.hadoop.hbase.hbtop.Record> records)
    • assertRecordsInClientMode

      public static void assertRecordsInClientMode(List<org.apache.hadoop.hbase.hbtop.Record> records)
    • 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

      public static void assertSummary(org.apache.hadoop.hbase.hbtop.screen.top.Summary summary)