Package org.pentaho.di.core.logging
Class MetricsRegistry
java.lang.Object
org.pentaho.di.core.logging.MetricsRegistry
This singleton will capture all the metrics coming from the various log channels based on the log channel ID.
- Author:
- matt
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddSnapshot(LogChannelInterface logChannel, MetricsSnapshotInterface snapshot) static MetricsRegistrygetSnapshotList(String logChannelId) Get the snapshot list for the given log channel ID.getSnapshotMap(String logChannelId) Get the snapshot map for the given log channel ID.voidreset()
-
Method Details
-
getInstance
-
addSnapshot
-
getSnapshotLists
-
getSnapshotMaps
-
getSnapshotList
Get the snapshot list for the given log channel ID. If no list is available, one is created (and stored).- Parameters:
logChannelId- The log channel to use.- Returns:
- an existing or a new metrics snapshot list.
-
getSnapshotMap
Get the snapshot map for the given log channel ID. If no map is available, one is created (and stored).- Parameters:
logChannelId- The log channel to use.- Returns:
- an existing or a new metrics snapshot map.
-
reset
public void reset()
-