use of org.pentaho.di.core.logging.MetricsRegistry in project pdi-dataservice-server-plugin by pentaho.
the class DataServiceTestController method resetMetrics.
private void resetMetrics(LogChannelInterface logChannel) {
LoggingRegistry loggingRegistry = LoggingRegistry.getInstance();
MetricsRegistry metricsRegistry = MetricsRegistry.getInstance();
if (logChannel != null) {
for (String channelId : loggingRegistry.getLogChannelChildren(logChannel.getLogChannelId())) {
metricsRegistry.getSnapshotLists().remove(channelId);
}
}
}
Aggregations