Search in sources :

Example 1 with MetricsRegistry

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);
        }
    }
}
Also used : MetricsRegistry(org.pentaho.di.core.logging.MetricsRegistry) LoggingRegistry(org.pentaho.di.core.logging.LoggingRegistry) ValueMetaString(org.pentaho.di.core.row.value.ValueMetaString)

Aggregations

LoggingRegistry (org.pentaho.di.core.logging.LoggingRegistry)1 MetricsRegistry (org.pentaho.di.core.logging.MetricsRegistry)1 ValueMetaString (org.pentaho.di.core.row.value.ValueMetaString)1