Commit cc8bdb10 authored by Daniel Seybold's avatar Daniel Seybold

implemented tsbs integration for inluxdb, still in progress

parent f4a19e8b
Pipeline #80271 failed with stage
in 13 minutes and 36 seconds
......@@ -23,7 +23,7 @@ import javax.validation.constraints.*;
/**
* DBEndpoint
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaJerseyServerCodegen", date = "2019-11-25T12:06:59.598+01:00")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaJerseyServerCodegen", date = "2020-05-06T14:02:53.472+02:00")
public class DBEndpoint {
@JsonProperty("ipAddress")
private String ipAddress = null;
......
......@@ -22,7 +22,7 @@ import javax.validation.constraints.*;
* a list of the database endpoints to issue the workload
*/
@ApiModel(description = "a list of the database endpoints to issue the workload")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaJerseyServerCodegen", date = "2019-11-25T12:06:59.598+01:00")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaJerseyServerCodegen", date = "2020-05-06T14:02:53.472+02:00")
public class DBEndpoints extends java.util.ArrayList<DBEndpoint> {
@Override
......
......@@ -25,7 +25,7 @@ import javax.validation.constraints.*;
/**
* DatabaseConfig
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaJerseyServerCodegen", date = "2019-11-25T12:06:59.598+01:00")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaJerseyServerCodegen", date = "2020-05-06T14:02:53.472+02:00")
public class DatabaseConfig {
/**
* Gets or Sets databaseBinding
......
......@@ -23,7 +23,7 @@ import javax.validation.constraints.*;
/**
* DatabaseConfigProperty
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaJerseyServerCodegen", date = "2019-11-25T12:06:59.598+01:00")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaJerseyServerCodegen", date = "2020-05-06T14:02:53.472+02:00")
public class DatabaseConfigProperty {
@JsonProperty("name")
private String name = null;
......
......@@ -23,7 +23,7 @@ import javax.validation.constraints.*;
/**
* Error
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaJerseyServerCodegen", date = "2019-11-25T12:06:59.598+01:00")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaJerseyServerCodegen", date = "2020-05-06T14:02:53.472+02:00")
public class Error {
@JsonProperty("code")
private Integer code = null;
......
......@@ -24,7 +24,7 @@ import javax.validation.constraints.*;
/**
* MeasurementConfig
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaJerseyServerCodegen", date = "2019-11-25T12:06:59.598+01:00")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaJerseyServerCodegen", date = "2020-05-06T14:02:53.472+02:00")
public class MeasurementConfig {
@JsonProperty("interval")
private Integer interval = null;
......
......@@ -25,7 +25,7 @@ import javax.validation.constraints.*;
/**
* TPCCWorkload
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaJerseyServerCodegen", date = "2019-11-25T12:06:59.598+01:00")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaJerseyServerCodegen", date = "2020-05-06T14:02:53.472+02:00")
public class TPCCWorkload {
@JsonProperty("dbEndpoints")
private DBEndpoints dbEndpoints = null;
......
......@@ -23,7 +23,7 @@ import javax.validation.constraints.*;
/**
* TPCCWorkloadConfig
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaJerseyServerCodegen", date = "2019-11-25T12:06:59.598+01:00")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaJerseyServerCodegen", date = "2020-05-06T14:02:53.472+02:00")
public class TPCCWorkloadConfig {
@JsonProperty("activeWarehouses")
private Integer activeWarehouses = null;
......
/*
* Workload API
* Benchmark your distributed DBMS with a specific workload
*
* OpenAPI spec version: 0.0.1
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package de.uulm.omi.cloudiator.dbms.evaluator.model;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import javax.validation.constraints.*;
/**
* TSBSDataConfig
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaJerseyServerCodegen", date = "2019-11-25T12:06:59.598+01:00")
public class TSBSDataConfig {
@JsonProperty("usecase")
private String usecase = null;
@JsonProperty("seed")
private BigDecimal seed = null;
@JsonProperty("scale")
private BigDecimal scale = null;
@JsonProperty("startTime")
private String startTime = null;
@JsonProperty("endTime")
private String endTime = null;
@JsonProperty("logInterval")
private String logInterval = null;
/**
* specifies the data format for the selected DBMS
*/
public enum FormatEnum {
INFLUX("influx"),
TIMESCALEDB("timescaledb"),
MONGODB("mongodb");
private String value;
FormatEnum(String value) {
this.value = value;
}
@Override
@JsonValue
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static FormatEnum fromValue(String text) {
for (FormatEnum b : FormatEnum.values()) {
if (String.valueOf(b.value).equals(text)) {
return b;
}
}
return null;
}
}
@JsonProperty("format")
private FormatEnum format = null;
public TSBSDataConfig usecase(String usecase) {
this.usecase = usecase;
return this;
}
/**
* TODO
* @return usecase
**/
@JsonProperty("usecase")
@ApiModelProperty(example = "cpu-only", value = "TODO")
public String getUsecase() {
return usecase;
}
public void setUsecase(String usecase) {
this.usecase = usecase;
}
public TSBSDataConfig seed(BigDecimal seed) {
this.seed = seed;
return this;
}
/**
* By supplying the same seed to the generation programs, each database is loaded with identical data and queried using identical queries.
* @return seed
**/
@JsonProperty("seed")
@ApiModelProperty(example = "123.0", value = "By supplying the same seed to the generation programs, each database is loaded with identical data and queried using identical queries.")
public BigDecimal getSeed() {
return seed;
}
public void setSeed(BigDecimal seed) {
this.seed = seed;
}
public TSBSDataConfig scale(BigDecimal scale) {
this.scale = scale;
return this;
}
/**
* TODO
* @return scale
**/
@JsonProperty("scale")
@ApiModelProperty(example = "1000.0", value = "TODO")
public BigDecimal getScale() {
return scale;
}
public void setScale(BigDecimal scale) {
this.scale = scale;
}
public TSBSDataConfig startTime(String startTime) {
this.startTime = startTime;
return this;
}
/**
* starting timestamp for generating the data
* @return startTime
**/
@JsonProperty("startTime")
@ApiModelProperty(example = "2016-01-01T00:00:00Z", value = "starting timestamp for generating the data")
public String getStartTime() {
return startTime;
}
public void setStartTime(String startTime) {
this.startTime = startTime;
}
public TSBSDataConfig endTime(String endTime) {
this.endTime = endTime;
return this;
}
/**
* ending timestamp for generating the data
* @return endTime
**/
@JsonProperty("endTime")
@ApiModelProperty(example = "2016-01-04T00:00:00Z", value = "ending timestamp for generating the data")
public String getEndTime() {
return endTime;
}
public void setEndTime(String endTime) {
this.endTime = endTime;
}
public TSBSDataConfig logInterval(String logInterval) {
this.logInterval = logInterval;
return this;
}
/**
* TODO
* @return logInterval
**/
@JsonProperty("logInterval")
@ApiModelProperty(example = "10s", value = "TODO")
public String getLogInterval() {
return logInterval;
}
public void setLogInterval(String logInterval) {
this.logInterval = logInterval;
}
public TSBSDataConfig format(FormatEnum format) {
this.format = format;
return this;
}
/**
* specifies the data format for the selected DBMS
* @return format
**/
@JsonProperty("format")
@ApiModelProperty(example = "influx", value = "specifies the data format for the selected DBMS")
public FormatEnum getFormat() {
return format;
}
public void setFormat(FormatEnum format) {
this.format = format;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
TSBSDataConfig tsBSDataConfig = (TSBSDataConfig) o;
return Objects.equals(this.usecase, tsBSDataConfig.usecase) &&
Objects.equals(this.seed, tsBSDataConfig.seed) &&
Objects.equals(this.scale, tsBSDataConfig.scale) &&
Objects.equals(this.startTime, tsBSDataConfig.startTime) &&
Objects.equals(this.endTime, tsBSDataConfig.endTime) &&
Objects.equals(this.logInterval, tsBSDataConfig.logInterval) &&
Objects.equals(this.format, tsBSDataConfig.format);
}
@Override
public int hashCode() {
return Objects.hash(usecase, seed, scale, startTime, endTime, logInterval, format);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class TSBSDataConfig {\n");
sb.append(" usecase: ").append(toIndentedString(usecase)).append("\n");
sb.append(" seed: ").append(toIndentedString(seed)).append("\n");
sb.append(" scale: ").append(toIndentedString(scale)).append("\n");
sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n");
sb.append(" endTime: ").append(toIndentedString(endTime)).append("\n");
sb.append(" logInterval: ").append(toIndentedString(logInterval)).append("\n");
sb.append(" format: ").append(toIndentedString(format)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
/*
* Workload API
* Benchmark your distributed DBMS with a specific workload
*
* OpenAPI spec version: 0.0.1
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package de.uulm.omi.cloudiator.dbms.evaluator.model;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import de.uulm.omi.cloudiator.dbms.evaluator.model.TSDBMSDBMSProperties;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import javax.validation.constraints.*;
/**
* TSBSLoadConfig
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaJerseyServerCodegen", date = "2019-11-25T12:06:59.598+01:00")
public class TSBSLoadConfig {
@JsonProperty("numberOfWorkers")
private BigDecimal numberOfWorkers = null;
@JsonProperty("batchSize")
private BigDecimal batchSize = null;
@JsonProperty("dbmsPorperties")
private java.util.List<TSDBMSDBMSProperties> dbmsPorperties = null;
public TSBSLoadConfig numberOfWorkers(BigDecimal numberOfWorkers) {
this.numberOfWorkers = numberOfWorkers;
return this;
}
/**
* The number of workers to load the ts data into the DBMS
* @return numberOfWorkers
**/
@JsonProperty("numberOfWorkers")
@ApiModelProperty(example = "2.0", value = "The number of workers to load the ts data into the DBMS")
public BigDecimal getNumberOfWorkers() {
return numberOfWorkers;
}
public void setNumberOfWorkers(BigDecimal numberOfWorkers) {
this.numberOfWorkers = numberOfWorkers;
}
public TSBSLoadConfig batchSize(BigDecimal batchSize) {
this.batchSize = batchSize;
return this;
}
/**
* The batch size to use for inserting the data
* @return batchSize
**/
@JsonProperty("batchSize")
@ApiModelProperty(example = "1000.0", value = "The batch size to use for inserting the data")
public BigDecimal getBatchSize() {
return batchSize;
}
public void setBatchSize(BigDecimal batchSize) {
this.batchSize = batchSize;
}
public TSBSLoadConfig dbmsPorperties(java.util.List<TSDBMSDBMSProperties> dbmsPorperties) {
this.dbmsPorperties = dbmsPorperties;
return this;
}
public TSBSLoadConfig addDbmsPorpertiesItem(TSDBMSDBMSProperties dbmsPorpertiesItem) {
if (this.dbmsPorperties == null) {
this.dbmsPorperties = new java.util.ArrayList<>();
}
this.dbmsPorperties.add(dbmsPorpertiesItem);
return this;
}
/**
* Get dbmsPorperties
* @return dbmsPorperties
**/
@JsonProperty("dbmsPorperties")
@ApiModelProperty(value = "")
public java.util.List<TSDBMSDBMSProperties> getDbmsPorperties() {
return dbmsPorperties;
}
public void setDbmsPorperties(java.util.List<TSDBMSDBMSProperties> dbmsPorperties) {
this.dbmsPorperties = dbmsPorperties;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
TSBSLoadConfig tsBSLoadConfig = (TSBSLoadConfig) o;
return Objects.equals(this.numberOfWorkers, tsBSLoadConfig.numberOfWorkers) &&
Objects.equals(this.batchSize, tsBSLoadConfig.batchSize) &&
Objects.equals(this.dbmsPorperties, tsBSLoadConfig.dbmsPorperties);
}
@Override
public int hashCode() {
return Objects.hash(numberOfWorkers, batchSize, dbmsPorperties);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class TSBSLoadConfig {\n");
sb.append(" numberOfWorkers: ").append(toIndentedString(numberOfWorkers)).append("\n");
sb.append(" batchSize: ").append(toIndentedString(batchSize)).append("\n");
sb.append(" dbmsPorperties: ").append(toIndentedString(dbmsPorperties)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
/*
* Workload API
* Benchmark your distributed DBMS with a specific workload
*
* OpenAPI spec version: 0.0.1
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package de.uulm.omi.cloudiator.dbms.evaluator.model;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import de.uulm.omi.cloudiator.dbms.evaluator.model.DBEndpoints;
import de.uulm.omi.cloudiator.dbms.evaluator.model.TSBSDataConfig;
import de.uulm.omi.cloudiator.dbms.evaluator.model.TSBSLoadConfig;
import de.uulm.omi.cloudiator.dbms.evaluator.model.TSBSQueryConfig;
import de.uulm.omi.cloudiator.dbms.evaluator.model.TSBSQueryExecution;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.*;
/**
* TSBSLoadWorkload
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaJerseyServerCodegen", date = "2019-11-25T12:06:59.598+01:00")
public class TSBSLoadWorkload {
@JsonProperty("dbEndpoints")
private DBEndpoints dbEndpoints = null;
@JsonProperty("tsbsDataConfig")
private TSBSDataConfig tsbsDataConfig = null;
@JsonProperty("tsbsLoadConfig")
private TSBSLoadConfig tsbsLoadConfig = null;
@JsonProperty("tsbsQueryConfig")
private TSBSQueryConfig tsbsQueryConfig = null;
@JsonProperty("tsbsQueryExecution")
private TSBSQueryExecution tsbsQueryExecution = null;
public TSBSLoadWorkload dbEndpoints(DBEndpoints dbEndpoints) {
this.dbEndpoints = dbEndpoints;
return this;
}
/**
* Get dbEndpoints
* @return dbEndpoints
**/
@JsonProperty("dbEndpoints")
@ApiModelProperty(value = "")
public DBEndpoints getDbEndpoints() {
return dbEndpoints;
}
public void setDbEndpoints(DBEndpoints dbEndpoints) {
this.dbEndpoints = dbEndpoints;
}
public TSBSLoadWorkload tsbsDataConfig(TSBSDataConfig tsbsDataConfig) {
this.tsbsDataConfig = tsbsDataConfig;
return this;
}
/**
* Get tsbsDataConfig
* @return tsbsDataConfig
**/
@JsonProperty("tsbsDataConfig")
@ApiModelProperty(value = "")
public TSBSDataConfig getTsbsDataConfig() {
return tsbsDataConfig;
}
public void setTsbsDataConfig(TSBSDataConfig tsbsDataConfig) {
this.tsbsDataConfig = tsbsDataConfig;
}
public TSBSLoadWorkload tsbsLoadConfig(TSBSLoadConfig tsbsLoadConfig) {
this.tsbsLoadConfig = tsbsLoadConfig;
return this;
}
/**
* Get tsbsLoadConfig
* @return tsbsLoadConfig
**/