minor docs update

This commit is contained in:
Jonathan Shook 2022-05-31 21:01:46 -05:00
parent 58f11ca1cd
commit 755ea768d5
3 changed files with 16 additions and 2 deletions

View File

@ -43,7 +43,6 @@ import java.util.Map;
// TODO: add/document max tries exhausted exception
// TODO: add/document UnexpectedPagingException
// TODO: add/document chnge unapplied exception
// TODO: add instrumented metrics
// TODO: add total rows metrics
// TODO: add rows histogram resultSetSizeHisto

View File

@ -446,6 +446,15 @@ public class ParsedOp implements LongFunction<Map<String, ?>>, StaticFieldReader
public <T> T getStaticConfigOr(String name, T defaultValue) {
return tmap.getStaticConfigOr(name, defaultValue);
}
/**
* Get the parameter value from a static op template field OR any of the provided optional sources
* of op template values, including the activity parameters
* @param name The config field name
* @param defaultValue The default value, if the field is not defined in the op template nor the activity params
* @param <T> The type of the field
* @return The config value.
*/
public <T> T takeStaticConfigOr(String name, T defaultValue) {
return tmap.takeStaticConfigOr(name, defaultValue);
}

View File

@ -12,7 +12,7 @@
<artifactId>nbr</artifactId>
<packaging>jar</packaging>
<name>${project.artifactId}</name>
<description>Runbime-Only CLI for nosqlbench</description>
<description>Runtime-Only CLI for nosqlbench</description>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@ -56,6 +56,12 @@
<artifactId>driver-diag</artifactId>
<version>4.17.15-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>io.nosqlbench</groupId>
<artifactId>adapter-diag</artifactId>
<version>4.17.15-SNAPSHOT</version>
</dependency>
</dependencies>
<build>