/** * Creates a new {@link AbstractPollingReporter} instance. * * @param registry the {@link MetricsRegistry} containing the metrics this reporter will * report * @param name the reporter's name * @see AbstractReporter#AbstractReporter(MetricsRegistry) */ protected AbstractPollingReporter(MetricsRegistry registry, String name) { super(registry); this.executor = registry.newScheduledThreadPool(1, name); }
@Nullable Long connectionTimeToLiveMillis) throws IOException { super(metricsRegistry); this.executor = metricsRegistry.newScheduledThreadPool(1, name); this.metricTranslator = metricTranslator; this.socketMetricProcessor = new SocketMetricsProcessor(hostname, port, wavefrontHistogramPort, timeSupplier,