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
|
||||
public String toString() {
|
||||
return
|
||||
//"ID:"+System.identityHashCode(this)+" "+
|
||||
this.getRateSpec().toString() + "(" + this.state + ") pool:" + filler;
|
||||
StringBuilder sb = new StringBuilder(HybridRateLimiter.class.getSimpleName());
|
||||
if (this.getRateSpec()!=null) {
|
||||
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() {
|
||||
|
@ -3,6 +3,7 @@ package io.nosqlbench.engine.extensions.optimizers;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
public class MVParams implements Iterable<MVParams.MVParam> {
|
||||
private final List<MVParam> paramList = new ArrayList<>();
|
||||
@ -35,5 +36,16 @@ public class MVParams implements Iterable<MVParams.MVParam> {
|
||||
this.min = min;
|
||||
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