minor docs update and fix for #127

This commit is contained in:
Jonathan Shook 2020-04-30 17:09:36 -05:00
parent 3ec8548913
commit ebc53ca3a9
2 changed files with 14 additions and 2 deletions

View File

@ -92,10 +92,13 @@ public class PolyglotScenarioController {
}
public synchronized void waitMillis(Value spec) {
if (spec.fitsInLong()) {
if (spec.isString()) {
controller.waitMillis(Long.parseLong(spec.asString()));
} else if (spec.isNumber()){
controller.waitMillis(spec.asLong());
} else {
throw new InvalidParameterException("long type can't contain " + spec.toString());
throw new InvalidParameterException(
"unable to convert polyglot type " + spec.toString() + " to a long for waitMillis");
}
}

View File

@ -77,3 +77,12 @@ running real workloads without having to learn much about the machinery that mak
The rest of this section has a more elaborate example that exposes some of the basic options you may want to adjust for
your first serious test.
:::info
If you want to see system-level metrics from your cluster, it is possible to get these as well as Apache Cassandra level
metrics by using the DSE Metrics Collector (if using DSE), or by setting up a metrics feed to the Prometheus instance in
your local docker stack. You can find the DSE Metrics Collector docs
[here](https://docs.datastax.com/en/monitoring/doc/monitoring/metricsCollector/mcExportMetricsDocker.html).
:::