mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-01-11 00:12:04 -06:00
formatting
This commit is contained in:
parent
16e3e587aa
commit
aad06bed09
@ -56,13 +56,6 @@ public class NBSession extends NBBaseComponent implements Function<List<Cmd>, Ex
|
|||||||
ERROR
|
ERROR
|
||||||
}
|
}
|
||||||
|
|
||||||
private NBBufferedContainer getContext(String name) {
|
|
||||||
return containers.computeIfAbsent(
|
|
||||||
name,
|
|
||||||
n -> NBContainer.builder().name(n).build(this)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
public NBSession(
|
public NBSession(
|
||||||
NBLabeledElement labelContext,
|
NBLabeledElement labelContext,
|
||||||
String sessionName
|
String sessionName
|
||||||
@ -206,5 +199,12 @@ public class NBSession extends NBBaseComponent implements Function<List<Cmd>, Ex
|
|||||||
clientMetricChecker.addRatioMetricToCheck(cpuUserGauge, cpuTotalGauge, 50.0, true);
|
clientMetricChecker.addRatioMetricToCheck(cpuUserGauge, cpuTotalGauge, 50.0, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private NBBufferedContainer getContext(String name) {
|
||||||
|
return containers.computeIfAbsent(
|
||||||
|
name,
|
||||||
|
n -> NBContainer.builder().name(n).build(this)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -233,13 +233,17 @@ public class ConsoleReporter extends PeriodicTaskComponent {
|
|||||||
for (NBMetric metric : summaryMetrics) {
|
for (NBMetric metric : summaryMetrics) {
|
||||||
if (metric instanceof NBMetricGauge) {
|
if (metric instanceof NBMetricGauge) {
|
||||||
gauges.add((NBMetricGauge) metric);
|
gauges.add((NBMetricGauge) metric);
|
||||||
} if (metric instanceof NBMetricCounter) {
|
}
|
||||||
|
if (metric instanceof NBMetricCounter) {
|
||||||
counters.add((NBMetricCounter) metric);
|
counters.add((NBMetricCounter) metric);
|
||||||
} if (metric instanceof NBMetricHistogram) {
|
}
|
||||||
|
if (metric instanceof NBMetricHistogram) {
|
||||||
histograms.add((NBMetricHistogram) metric);
|
histograms.add((NBMetricHistogram) metric);
|
||||||
} if (metric instanceof NBMetricMeter) {
|
}
|
||||||
|
if (metric instanceof NBMetricMeter) {
|
||||||
meters.add((NBMetricMeter) metric);
|
meters.add((NBMetricMeter) metric);
|
||||||
} if (metric instanceof NBMetricTimer) {
|
}
|
||||||
|
if (metric instanceof NBMetricTimer) {
|
||||||
timers.add((NBMetricTimer) metric);
|
timers.add((NBMetricTimer) metric);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user