From 8ba43027ebc0ca76e611dd18a2cae66ff24a75cf Mon Sep 17 00:00:00 2001 From: Jonathan Shook Date: Fri, 14 Aug 2020 10:06:04 -0500 Subject: [PATCH] make scenarios run in workspace --- .../transfertypes/RunScenarioRequest.java | 27 +++++++++++++------ 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/engine-rest/src/main/java/io/nosqlbench/engine/rest/transfertypes/RunScenarioRequest.java b/engine-rest/src/main/java/io/nosqlbench/engine/rest/transfertypes/RunScenarioRequest.java index 3ed6d8669..07cd42640 100644 --- a/engine-rest/src/main/java/io/nosqlbench/engine/rest/transfertypes/RunScenarioRequest.java +++ b/engine-rest/src/main/java/io/nosqlbench/engine/rest/transfertypes/RunScenarioRequest.java @@ -1,5 +1,7 @@ package io.nosqlbench.engine.rest.transfertypes; +import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; import java.util.Map; @@ -23,11 +25,27 @@ import java.util.Map; */ public class RunScenarioRequest { + @JsonProperty("commands") private List commands; + + @JsonProperty("filemap") private Map filemap; + private String stdout; + + @JsonProperty("name") private String scenarioName = "auto"; - private String basedir = "/tmp/nosqlbench"; + + @JsonProperty("workspace") + private String workspace = "default"; + + public String getWorkspace() { + return workspace; + } + + public void setWorkspace(String workspace) { + this.workspace = workspace; + } public void setScenarioName(String scenarioName) { this.scenarioName = scenarioName; @@ -61,11 +79,4 @@ public class RunScenarioRequest { return stdout; } - public void setBasedir(String basedir) { - this.basedir = basedir; - } - - public String getBasedir() { - return basedir; - } }