zwOvO commented on issue #4154:
URL: https://github.com/apache/bookkeeper/issues/4154#issuecomment-1854042530
```java
public Class<? extends StatsProvider> getStatsProviderClass()
throws ConfigurationException {
return ReflectionUtils.getClass(this, STATS_PROVIDER_CLASS,
NullStatsProvider.class,
StatsProvider.class,
DEFAULT_LOADER);
}
```
```java
public static <T> Class<? extends T> getClass(Configuration conf,
String name, Class<?
extends T> defaultValue,
Class<T> xface,
ClassLoader classLoader)
throws ConfigurationException
```
```java
@SuppressFBWarnings("EI_EXPOSE_REP2")
public class NullStatsProvider implements StatsProvider {
final StatsLogger nullStatsLogger = new NullStatsLogger();
@Override
public void start(Configuration conf) {
// nop
}
@Override
public void stop() {
// nop
}
@Override
public StatsLogger getStatsLogger(String scope) {
return nullStatsLogger;
}
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]