Skip to content

Commit

Permalink
Remove SolrInfoBean interface
Browse files Browse the repository at this point in the history
  • Loading branch information
tboeghk committed Feb 29, 2024
1 parent ab0d77e commit e74a555
Showing 1 changed file with 4 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@
*
* <p>This code uses reflection to break up closed internal APIs.
*/
public class InstrumentedHtttpShardHandlerFactory extends HttpShardHandlerFactory
implements SolrInfoBean {
public class InstrumentedHtttpShardHandlerFactory extends HttpShardHandlerFactory {

private static final Logger log = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());

Expand Down Expand Up @@ -100,15 +99,15 @@ void registerDeadServerMetricGauges() {
() -> zombies.size(),
true,
"count",
Category.QUERY.name(),
SolrInfoBean.Category.QUERY.name(),
"httpShardHandler",
"zombieServers");
getSolrMetricsContext()
.gauge(
() -> alives.size(),
true,
"count",
Category.QUERY.name(),
SolrInfoBean.Category.QUERY.name(),
"httpShardHandler",
"aliveServers");

Expand Down Expand Up @@ -182,7 +181,7 @@ void checkAvailableHttpDestinations(HttpClient httpClient) {
destinationGauge,
true,
"count",
Category.QUERY.name(),
SolrInfoBean.Category.QUERY.name(),
"httpShardHandler",
"shardRequestQueue",
destinationName);
Expand Down Expand Up @@ -230,21 +229,4 @@ public Integer getValue() {
}
}
}

// SolrInfoMBean methods

@Override
public String getName() {
return InstrumentedHtttpShardHandlerFactory.class.getName();
}

@Override
public String getDescription() {
return "A shard handler factory that captures Jetty http client metrics";
}

@Override
public Category getCategory() {
return Category.QUERY;
}
}

0 comments on commit e74a555

Please sign in to comment.