@Test public void sendsTimer() throws InterruptedException { registry.timer("timer").update(1234, MILLISECONDS); service.report(); assertThat(sender.data, hasItem(matchesRegex("test.timer.count=1"))); assertThat(sender.data, hasItem(matchesRegex("test.timer.m1_rate=0.00"))); assertThat(sender.data, hasItem(matchesRegex("test.timer.m5_rate=0.00"))); assertThat(sender.data, hasItem(matchesRegex("test.timer.m15_rate=0.00"))); assertThat(sender.data, hasItem(matchesRegex("test.timer.mean_rate=.*"))); assertThat(sender.data, hasItem(matchesRegex("test.timer.max=1234.00"))); assertThat(sender.data, hasItem(matchesRegex("test.timer.mean=1234.00"))); assertThat(sender.data, hasItem(matchesRegex("test.timer.min=1234.00"))); assertThat(sender.data, hasItem(matchesRegex("test.timer.stddev=0.00"))); assertThat(sender.data, hasItem(matchesRegex("test.timer.p50=1234.00"))); assertThat(sender.data, hasItem(matchesRegex("test.timer.p75=1234.00"))); assertThat(sender.data, hasItem(matchesRegex("test.timer.p95=1234.00"))); assertThat(sender.data, hasItem(matchesRegex("test.timer.p98=1234.00"))); assertThat(sender.data, hasItem(matchesRegex("test.timer.p99=1234.00"))); assertThat(sender.data, hasItem(matchesRegex("test.timer.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);   }