mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
missed onEvent change
This commit is contained in:
parent
86f0a0298c
commit
79d6f65798
@ -17,6 +17,7 @@
|
||||
package io.nosqlbench.nb.api.components;
|
||||
|
||||
import io.nosqlbench.nb.api.components.decorators.NBTokenWords;
|
||||
import io.nosqlbench.nb.api.components.events.ComponentOutOfScope;
|
||||
import io.nosqlbench.nb.api.components.events.DownEvent;
|
||||
import io.nosqlbench.nb.api.components.events.NBEvent;
|
||||
import io.nosqlbench.nb.api.components.events.UpEvent;
|
||||
@ -171,6 +172,14 @@ public class NBBaseComponent extends NBBaseComponentMetrics implements NBCompone
|
||||
child.onEvent(de);
|
||||
}
|
||||
}
|
||||
case ComponentOutOfScope coos -> {
|
||||
for (NBMetric m : this.getComponentMetrics()) {
|
||||
reportExecutionMetric(m);
|
||||
}
|
||||
if (bufferOrphanedMetrics) {
|
||||
metricsBuffer.printMetricSummary(this);
|
||||
}
|
||||
}
|
||||
default -> logger.warn("dropping event " + event);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user