private FastForwardHttpReporter( SemanticMetricRegistry registry, MetricId prefix, TimeUnit unit, long duration, HttpClient client, Set<Percentile> histogramPercentiles, Clock clock ) { this(registry, prefix, unit, duration, client, histogramPercentiles, clock, new NoopTagExtractor()); }
private FastForwardReporter( SemanticMetricRegistry registry, MetricId prefix, TimeUnit unit, long duration, FastForward client, Set<Percentile> histogramPercentiles ) { this(registry, prefix, unit, duration, client, new HashSet<>(histogramPercentiles), new NoopTagExtractor()); }
public FastForwardReporter build() throws IOException { final FastForward client = this.client != null ? this.client : FastForward.setup(host, port); final TagExtractor tagExtractor = this.tagExtractor != null ? this.tagExtractor : new NoopTagExtractor(); return new FastForwardReporter(registry, prefix, unit, time, client, histogramPercentiles, tagExtractor); } }
public FastForwardHttpReporter build() throws IOException { Clock clock = this.clock; if (clock == null) { clock = new Clock.SystemTime(); } final TagExtractor tagExtractor = this.tagExtractor != null ? this.tagExtractor : new NoopTagExtractor(); return new FastForwardHttpReporter(registry, prefix, unit, time, client, histogramPercentiles, clock, tagExtractor); } }