Commit e74a555 1 parent ab0d77e commit e74a555 Copy full SHA for e74a555
File tree 1 file changed +4
-22
lines changed
solr/core/src/java/org/apache/solr/handler/component
1 file changed +4
-22
lines changed Original file line number Diff line number Diff line change 48
48
*
49
49
* <p>This code uses reflection to break up closed internal APIs.
50
50
*/
51
- public class InstrumentedHtttpShardHandlerFactory extends HttpShardHandlerFactory
52
- implements SolrInfoBean {
51
+ public class InstrumentedHtttpShardHandlerFactory extends HttpShardHandlerFactory {
53
52
54
53
private static final Logger log = LoggerFactory .getLogger (MethodHandles .lookup ().lookupClass ());
55
54
@@ -100,15 +99,15 @@ void registerDeadServerMetricGauges() {
100
99
() -> zombies .size (),
101
100
true ,
102
101
"count" ,
103
- Category .QUERY .name (),
102
+ SolrInfoBean . Category .QUERY .name (),
104
103
"httpShardHandler" ,
105
104
"zombieServers" );
106
105
getSolrMetricsContext ()
107
106
.gauge (
108
107
() -> alives .size (),
109
108
true ,
110
109
"count" ,
111
- Category .QUERY .name (),
110
+ SolrInfoBean . Category .QUERY .name (),
112
111
"httpShardHandler" ,
113
112
"aliveServers" );
114
113
@@ -182,7 +181,7 @@ void checkAvailableHttpDestinations(HttpClient httpClient) {
182
181
destinationGauge ,
183
182
true ,
184
183
"count" ,
185
- Category .QUERY .name (),
184
+ SolrInfoBean . Category .QUERY .name (),
186
185
"httpShardHandler" ,
187
186
"shardRequestQueue" ,
188
187
destinationName );
@@ -230,21 +229,4 @@ public Integer getValue() {
230
229
}
231
230
}
232
231
}
233
-
234
- // SolrInfoMBean methods
235
-
236
- @ Override
237
- public String getName () {
238
- return InstrumentedHtttpShardHandlerFactory .class .getName ();
239
- }
240
-
241
- @ Override
242
- public String getDescription () {
243
- return "A shard handler factory that captures Jetty http client metrics" ;
244
- }
245
-
246
- @ Override
247
- public Category getCategory () {
248
- return Category .QUERY ;
249
- }
250
232
}
You can’t perform that action at this time.
0 commit comments