Commit ac8029e5 authored by Daniel Seybold's avatar Daniel Seybold

added mising files and implemented fetchTSBS

parent b138578c
Pipeline #64988 passed with stage
in 14 minutes and 52 seconds
/*
* Mowgli Evaluation Orchestrator
* Evaluate the Performance/Scalability/Elasticity/Availability of distributed DBMS in the Cloud
*
* OpenAPI spec version: 0.1.0
*
*
* 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.DatabaseSingle;
import de.uulm.omi.cloudiator.dbms.evaluator.model.EvaluationNetwork;
import de.uulm.omi.cloudiator.dbms.evaluator.model.TSBSLoadWorkload;
import de.uulm.omi.cloudiator.dbms.evaluator.model.WorkloadInstances;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.*;
/**
* PerformanceTSBS
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaJerseyServerCodegen", date = "2019-11-26T12:37:55.291+01:00")
public class PerformanceTSBS {
@JsonProperty("workloadNetwork")
private EvaluationNetwork workloadNetwork = null;
@JsonProperty("dbmsNetwork")
private EvaluationNetwork dbmsNetwork = null;
@JsonProperty("dbmsSingle")
private DatabaseSingle dbmsSingle = null;
@JsonProperty("workloadLoad")
private TSBSLoadWorkload workloadLoad = null;
@JsonProperty("workloadInstances")
private WorkloadInstances workloadInstances = null;
public PerformanceTSBS workloadNetwork(EvaluationNetwork workloadNetwork) {
this.workloadNetwork = workloadNetwork;
return this;
}
/**
* Get workloadNetwork
* @return workloadNetwork
**/
@JsonProperty("workloadNetwork")
@ApiModelProperty(value = "")
public EvaluationNetwork getWorkloadNetwork() {
return workloadNetwork;
}
public void setWorkloadNetwork(EvaluationNetwork workloadNetwork) {
this.workloadNetwork = workloadNetwork;
}
public PerformanceTSBS dbmsNetwork(EvaluationNetwork dbmsNetwork) {
this.dbmsNetwork = dbmsNetwork;
return this;
}
/**
* Get dbmsNetwork
* @return dbmsNetwork
**/
@JsonProperty("dbmsNetwork")
@ApiModelProperty(value = "")
public EvaluationNetwork getDbmsNetwork() {
return dbmsNetwork;
}
public void setDbmsNetwork(EvaluationNetwork dbmsNetwork) {
this.dbmsNetwork = dbmsNetwork;
}
public PerformanceTSBS dbmsSingle(DatabaseSingle dbmsSingle) {
this.dbmsSingle = dbmsSingle;
return this;
}
/**
* Get dbmsSingle
* @return dbmsSingle
**/
@JsonProperty("dbmsSingle")
@ApiModelProperty(value = "")
public DatabaseSingle getDbmsSingle() {
return dbmsSingle;
}
public void setDbmsSingle(DatabaseSingle dbmsSingle) {
this.dbmsSingle = dbmsSingle;
}
public PerformanceTSBS workloadLoad(TSBSLoadWorkload workloadLoad) {
this.workloadLoad = workloadLoad;
return this;
}
/**
* Get workloadLoad
* @return workloadLoad
**/
@JsonProperty("workloadLoad")
@ApiModelProperty(value = "")
public TSBSLoadWorkload getWorkloadLoad() {
return workloadLoad;
}
public void setWorkloadLoad(TSBSLoadWorkload workloadLoad) {
this.workloadLoad = workloadLoad;
}
public PerformanceTSBS workloadInstances(WorkloadInstances workloadInstances) {
this.workloadInstances = workloadInstances;
return this;
}
/**
* Get workloadInstances
* @return workloadInstances
**/
@JsonProperty("workloadInstances")
@ApiModelProperty(value = "")
public WorkloadInstances getWorkloadInstances() {
return workloadInstances;
}
public void setWorkloadInstances(WorkloadInstances workloadInstances) {
this.workloadInstances = workloadInstances;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
PerformanceTSBS performanceTSBS = (PerformanceTSBS) o;
return Objects.equals(this.workloadNetwork, performanceTSBS.workloadNetwork) &&
Objects.equals(this.dbmsNetwork, performanceTSBS.dbmsNetwork) &&
Objects.equals(this.dbmsSingle, performanceTSBS.dbmsSingle) &&
Objects.equals(this.workloadLoad, performanceTSBS.workloadLoad) &&
Objects.equals(this.workloadInstances, performanceTSBS.workloadInstances);
}
@Override
public int hashCode() {
return Objects.hash(workloadNetwork, dbmsNetwork, dbmsSingle, workloadLoad, workloadInstances);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class PerformanceTSBS {\n");
sb.append(" workloadNetwork: ").append(toIndentedString(workloadNetwork)).append("\n");
sb.append(" dbmsNetwork: ").append(toIndentedString(dbmsNetwork)).append("\n");
sb.append(" dbmsSingle: ").append(toIndentedString(dbmsSingle)).append("\n");
sb.append(" workloadLoad: ").append(toIndentedString(workloadLoad)).append("\n");
sb.append(" workloadInstances: ").append(toIndentedString(workloadInstances)).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 ");
}
}
/*
* Mowgli Evaluation Orchestrator
* Evaluate the Performance/Scalability/Elasticity/Availability of distributed DBMS in the Cloud
*
* OpenAPI spec version: 0.1.0
*
*
* 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-26T12:37:55.291+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 ");
}
}
/*
* Mowgli Evaluation Orchestrator
* Evaluate the Performance/Scalability/Elasticity/Availability of distributed DBMS in the Cloud
*
* OpenAPI spec version: 0.1.0
*
*
* 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-26T12:37:55.291+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).
*/