@Test public void sendsHistogram() throws InterruptedException { registry.histogram("histogram").update(1234); service.report(); assertThat(sender.data, hasItem(matchesRegex("test.histogram.count=1"))); assertThat(sender.data, hasItem(matchesRegex("test.histogram.max=1234"))); assertThat(sender.data, hasItem(matchesRegex("test.histogram.mean=1234.00"))); assertThat(sender.data, hasItem(matchesRegex("test.histogram.min=1234"))); assertThat(sender.data, hasItem(matchesRegex("test.histogram.stddev=0.00"))); assertThat(sender.data, hasItem(matchesRegex("test.histogram.p50=1234.00"))); assertThat(sender.data, hasItem(matchesRegex("test.histogram.p75=1234.00"))); assertThat(sender.data, hasItem(matchesRegex("test.histogram.p95=1234.00"))); assertThat(sender.data, hasItem(matchesRegex("test.histogram.p98=1234.00"))); assertThat(sender.data, hasItem(matchesRegex("test.histogram.p99=1234.00"))); assertThat(sender.data, hasItem(matchesRegex("test.histogram.p999=1234.00"))); }
@VisibleForTesting void report() { this.reporter.report(); }
GraphiteReporterService extends AbstractStyxService { @VisibleForTesting void report() { this.reporter.report(); } }
GraphiteReporterService extends AbstractStyxService { @VisibleForTesting void report() { this.reporter.report(); } private  GraphiteReporterService(Builder builder); }
GraphiteReporterService extends AbstractStyxService { @VisibleForTesting void report() { this.reporter.report(); } private  GraphiteReporterService(Builder builder);  }
GraphiteReporterService extends AbstractStyxService { @VisibleForTesting void report() { this.reporter.report(); } private  GraphiteReporterService(Builder builder);   }