Package org.apache.hadoop.hbase.regionserver

Examples of org.apache.hadoop.hbase.regionserver.MetricsRegionServerSource


  public MetricsAssertHelper HELPER = CompatibilityFactory.getInstance(MetricsAssertHelper.class);

  @Test
  public void testWrapperSource() {
    MetricsRegionServer rsm = new MetricsRegionServer(new MetricsRegionServerWrapperStub());
    MetricsRegionServerSource serverSource = rsm.getMetricsSource();
    HELPER.assertTag("serverName", "test", serverSource);
    HELPER.assertTag("clusterId", "tClusterId", serverSource);
    HELPER.assertTag("zookeeperQuorum", "zk", serverSource);
    HELPER.assertGauge("regionServerStartTime", 100, serverSource);
    HELPER.assertGauge("regionCount", 101, serverSource);
View Full Code Here


  }

  @Test
  public void testSlowCount() {
    MetricsRegionServer rsm = new MetricsRegionServer(new MetricsRegionServerWrapperStub());
    MetricsRegionServerSource serverSource = rsm.getMetricsSource();
    for (int i=0; i < 12; i ++) {
      rsm.updateAppend(12);
      rsm.updateAppend(1002);
    }
    for (int i=0; i < 13; i ++) {
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hbase.regionserver.MetricsRegionServerSource

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.