mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
improve debugging views
This commit is contained in:
parent
d0871cfb55
commit
746bdcfdcb
@ -214,9 +214,17 @@ public class HybridRateLimiter implements Startable, RateLimiter {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return
|
StringBuilder sb = new StringBuilder(HybridRateLimiter.class.getSimpleName());
|
||||||
//"ID:"+System.identityHashCode(this)+" "+
|
if (this.getRateSpec()!=null) {
|
||||||
this.getRateSpec().toString() + "(" + this.state + ") pool:" + filler;
|
sb.append(" spec=").append(this.getRateSpec().toString());
|
||||||
|
}
|
||||||
|
if (this.state!=null) {
|
||||||
|
sb.append(" state=").append(this.state);
|
||||||
|
}
|
||||||
|
if (this.filler !=null) {
|
||||||
|
sb.append(" filler=").append(this.filler.toString());
|
||||||
|
}
|
||||||
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
// public String getRefillLog() {
|
// public String getRefillLog() {
|
||||||
|
@ -3,6 +3,7 @@ package io.nosqlbench.engine.extensions.optimizers;
|
|||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
public class MVParams implements Iterable<MVParams.MVParam> {
|
public class MVParams implements Iterable<MVParams.MVParam> {
|
||||||
private final List<MVParam> paramList = new ArrayList<>();
|
private final List<MVParam> paramList = new ArrayList<>();
|
||||||
@ -35,5 +36,16 @@ public class MVParams implements Iterable<MVParams.MVParam> {
|
|||||||
this.min = min;
|
this.min = min;
|
||||||
this.max = max;
|
this.max = max;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return
|
||||||
|
min + "<=" + name + "<="+ max;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return paramList.stream().map(MVParam::toString).collect(Collectors.joining(" "));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user