@Test public void testMakeNameString() { String a = metrics.makeName(MetricsFactoryTest.class.getCanonicalName(), "a"); String b = metrics.makeName(MetricsFactoryTest.class.getCanonicalName(), "b"); String anotherA = metrics.makeName(MetricsFactory.class.getCanonicalName(), "a"); assertNotNull(a); assertNotEquals(a, b); assertNotEquals(a, anotherA); }
public String makeName(String base, String name) { return base + Metrics.SEP + name; }
MetricsFactory implements BaleenComponent { public String makeName(String base, String name) { return base + Metrics.SEP + name; } }
MetricsFactory implements BaleenComponent { public String makeName(String base, String name) { return base + Metrics.SEP + name; } MetricsFactory();   MetricsFactory(MetricRegistry registry); }
MetricsFactory implements BaleenComponent { public String makeName(String base, String name) { return base + Metrics.SEP + name; } MetricsFactory();   MetricsFactory(MetricRegistry registry); static MetricsFactory getInstance(); static Metrics getMetrics(String prefix, Class<?> clazz); static Metrics getMetrics(Class<?> clazz); PipelineMetrics getPipelineMetrics(String pipelineName); @Override void configure(Configuration configuration); MetricRegistry getRegistry(); Counter getCounter(Class<?> clazz, String name); Meter getMeter(Class<?> clazz, String name); Histogram getHistogram(Class<?> clazz, String name); Timer getTimer(Class<?> clazz, String name); Counter getCounter(String base, String name); Meter getMeter(String base, String name); Histogram getHistogram(String base, String name); Timer getTimer(String base, String name); String makeName(String base, String name); String makeName(Class<?> clazz, String name); @Override void start(); @Override void stop(); void removeAll(); void report(); }
MetricsFactory implements BaleenComponent { public String makeName(String base, String name) { return base + Metrics.SEP + name; } MetricsFactory();   MetricsFactory(MetricRegistry registry); static MetricsFactory getInstance(); static Metrics getMetrics(String prefix, Class<?> clazz); static Metrics getMetrics(Class<?> clazz); PipelineMetrics getPipelineMetrics(String pipelineName); @Override void configure(Configuration configuration); MetricRegistry getRegistry(); Counter getCounter(Class<?> clazz, String name); Meter getMeter(Class<?> clazz, String name); Histogram getHistogram(Class<?> clazz, String name); Timer getTimer(Class<?> clazz, String name); Counter getCounter(String base, String name); Meter getMeter(String base, String name); Histogram getHistogram(String base, String name); Timer getTimer(String base, String name); String makeName(String base, String name); String makeName(Class<?> clazz, String name); @Override void start(); @Override void stop(); void removeAll(); void report();  }