Package com.dianping.cat.consumer.metric.MetricAnalyzer

Examples of com.dianping.cat.consumer.metric.MetricAnalyzer.ConfigItem


    ((MockMetricConfigManager) manager).setConfigDao(new MockConfigDao1());
    manager.initialize();

    String domain1 = "domain1";
    String domain2 = "domain2";
    manager.insertIfNotExist(domain1, "type", "metricKey", new ConfigItem());

    Assert.assertEquals(1, s_storeCount);
    manager.insertIfNotExist(domain1, "type", "metricKey", new ConfigItem());
    Assert.assertEquals(1, s_storeCount);
    manager.insertIfNotExist(domain2, "type", "metricKey", new ConfigItem());
    Assert.assertEquals(2, s_storeCount);
    manager.insertMetricItemConfig(new MetricItemConfig());
    Assert.assertEquals(3, s_storeCount);

    MetricItemConfig item = manager.queryMetricItemConfig(manager.buildMetricKey(domain1, "type", "metricKey"));
View Full Code Here


      manager.initialize();
    } catch (Exception e) {
    }
   
    s_storeCount=0;
    manager.insertIfNotExist("test", "test", "test", new ConfigItem());
    manager.insertIfNotExist("test", "test", "test", new ConfigItem());
    manager.insertIfNotExist("test1", "test", "test", new ConfigItem());
    manager.insertIfNotExist("test1", "test", "test", new ConfigItem());
    Assert.assertEquals(s_storeCount, 2);
  }
View Full Code Here

TOP

Related Classes of com.dianping.cat.consumer.metric.MetricAnalyzer.ConfigItem

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.