Package io.nosqlbench.engine.cli
Interface ScriptBuffer
- All Known Implementing Classes:
BasicScriptBuffer
public interface ScriptBuffer
Add cmd
-
Method Summary
Modifier and Type Method Description ScriptBufferadd(Cmd... cmd)Add parsed commands to the script bufferjava.util.Map<java.lang.String,java.lang.String>getCombinedParams()Get a map which contains all of the params which came from commands of global scope, likescriptandfragmentcommands.java.util.List<Cmd>getCommands()java.lang.StringgetParsedScript()Get the text image of the combined script with all previously added commands included
-
Method Details
-
getCommands
java.util.List<Cmd> getCommands() -
add
Add parsed commands to the script buffer- Parameters:
cmd- A parsed command- Returns:
- This ScriptBuffer
-
getParsedScript
java.lang.String getParsedScript()Get the text image of the combined script with all previously added commands included- Returns:
- The script text
-
getCombinedParams
java.util.Map<java.lang.String,java.lang.String> getCombinedParams()Get a map which contains all of the params which came from commands of global scope, likescriptandfragmentcommands. If one of these commands overwrites a named parameter from another, an error should be logged at warning or higher level.- Returns:
- A globa params map.
-