mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2024-12-24 16:00:09 -06:00
scenarioName instead of name for clarity
This commit is contained in:
parent
b0d587814b
commit
94159a21ff
@ -26,7 +26,6 @@ import org.slf4j.LoggerFactory;
|
||||
|
||||
import java.io.*;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.nio.file.FileSystems;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
import java.util.*;
|
||||
@ -301,7 +300,7 @@ public class NBCLI {
|
||||
executor.execute(scenario, sl);
|
||||
|
||||
while (true) {
|
||||
Optional<ScenarioResult> pendingResult = executor.getPendingResult(scenario.getName());
|
||||
Optional<ScenarioResult> pendingResult = executor.getPendingResult(scenario.getScenarioName());
|
||||
if (pendingResult.isEmpty()) {
|
||||
LockSupport.parkNanos(100000000L);
|
||||
} else {
|
||||
|
@ -53,7 +53,7 @@ public class Scenario implements Callable<ScenarioResult> {
|
||||
private String progressInterval = "console:1m";
|
||||
private boolean wantsGraaljsCompatMode;
|
||||
private ScenarioContext scriptEnv;
|
||||
private String name;
|
||||
private String scenarioName;
|
||||
private ScenarioLogger scenarioLogger;
|
||||
private ScriptParams scenarioScriptParams;
|
||||
private Engine engine = Engine.Graalvm;
|
||||
@ -73,7 +73,7 @@ public class Scenario implements Callable<ScenarioResult> {
|
||||
}
|
||||
|
||||
public Scenario(String name, Engine engine) {
|
||||
this.name = name;
|
||||
this.scenarioName = name;
|
||||
this.engine = engine;
|
||||
}
|
||||
|
||||
@ -194,7 +194,7 @@ public class Scenario implements Callable<ScenarioResult> {
|
||||
public void run() {
|
||||
init();
|
||||
|
||||
logger.debug("Running control script for " + getName() + ".");
|
||||
logger.debug("Running control script for " + getScenarioName() + ".");
|
||||
for (String script : scripts) {
|
||||
try {
|
||||
Object result = null;
|
||||
@ -241,16 +241,16 @@ public class Scenario implements Callable<ScenarioResult> {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
Scenario scenario = (Scenario) o;
|
||||
return getName() != null ? getName().equals(scenario.getName()) : scenario.getName() == null;
|
||||
return getScenarioName() != null ? getScenarioName().equals(scenario.getScenarioName()) : scenario.getScenarioName() == null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return getName() != null ? getName().hashCode() : 0;
|
||||
return getScenarioName() != null ? getScenarioName().hashCode() : 0;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
public String getScenarioName() {
|
||||
return scenarioName;
|
||||
}
|
||||
|
||||
public ScenarioController getScenarioController() {
|
||||
@ -266,7 +266,7 @@ public class Scenario implements Callable<ScenarioResult> {
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "name:'" + this.getName() + "'";
|
||||
return "name:'" + this.getScenarioName() + "'";
|
||||
}
|
||||
|
||||
public void setScenarioLogger(ScenarioLogger scenarioLogger) {
|
||||
|
Loading…
Reference in New Issue
Block a user