import org.apache.hadoop.metrics2.sink.timeline.TimelineMetric;
import org.apache.hadoop.metrics2.sink.timeline.TimelineMetrics;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class SolrMetricsLoader extends TimerTask {
<BUG>private static final Logger LOG = LoggerFactory.getLogger(SolrMetricsLoader.class);
private final String solrHost;</BUG>
private final SolrJmxAdapter solrJmxAdapter;
<BUG>private final SolrAmsClient solrAmsClient;
public SolrMetricsLoader(String solrHost, int solrJmxPort, String collectorHost) throws IOException {</BUG>
this.solrHost = solrHost;

import org.apache.hadoop.metrics2.sink.timeline.TimelineMetric;
import org.apache.hadoop.metrics2.sink.timeline.TimelineMetrics;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class SolrMetricsLoader extends TimerTask {
private static final Logger LOG = LoggerFactory.getLogger(SolrMetricsLoader.class);
private static final int RETRY = 3;
private static final int MAX_METRIC_SIZE= 1000;
private final String solrHost;
private final SolrJmxAdapter solrJmxAdapter;
private final SolrAmsClient solrAmsClient;
private final TimelineMetrics metrics = new TimelineMetrics();
public SolrMetricsLoader(String solrHost, int solrJmxPort, String collectorHost) throws IOException {
this.solrHost = solrHost;
