@Test(dependsOnMethods = "testAddTags") public void testMetricNamePrefix() { Assert.assertEquals( this.tagged.metricNamePrefix(false), MetricRegistry.name(JOB_ID, Integer.toString(PROJECT_VERSION))); Assert.assertEquals( this.tagged.metricNamePrefix(true), MetricRegistry.name(this.tagged.getTags().get(0).toString(), this.tagged.getTags().get(1).toString())); }
@Override public String metricNamePrefix(boolean includeTagKeys) { return Joiner.on('.').join(includeTagKeys ? getTags() : this.tags.values()); }
Tagged implements Taggable { @Override public String metricNamePrefix(boolean includeTagKeys) { return Joiner.on('.').join(includeTagKeys ? getTags() : this.tags.values()); } }
Tagged implements Taggable { @Override public String metricNamePrefix(boolean includeTagKeys) { return Joiner.on('.').join(includeTagKeys ? getTags() : this.tags.values()); } Tagged();  Tagged(Collection<Tag<?>> tags); }
Tagged implements Taggable { @Override public String metricNamePrefix(boolean includeTagKeys) { return Joiner.on('.').join(includeTagKeys ? getTags() : this.tags.values()); } Tagged();  Tagged(Collection<Tag<?>> tags); @Override void addTag(Tag<?> tag); @Override void addTags(Collection<Tag<?>> tags); @Override List<Tag<?>> getTags(); Map<String, Object> getTagMap(); @Override String metricNamePrefix(boolean includeTagKeys); }
Tagged implements Taggable { @Override public String metricNamePrefix(boolean includeTagKeys) { return Joiner.on('.').join(includeTagKeys ? getTags() : this.tags.values()); } Tagged();  Tagged(Collection<Tag<?>> tags); @Override void addTag(Tag<?> tag); @Override void addTags(Collection<Tag<?>> tags); @Override List<Tag<?>> getTags(); Map<String, Object> getTagMap(); @Override String metricNamePrefix(boolean includeTagKeys);  }