Skip to content
Snippets Groups Projects
Commit e88755dd authored by Benedikt Wetzel's avatar Benedikt Wetzel
Browse files

clean up and restructure

move old and unused classes to the new a package called depcrecated and update all types to the new ones.
parent 0cdba1d1
No related branches found
No related tags found
4 merge requests!159Re-implementation of Theodolite with Kotlin/Quarkus,!157Update Graal Image in CI pipeline,!85Introduce new Benchmark class and Patcher,!83WIP: Re-implementation of Theodolite with Kotlin/Quarkus
package theodolite.util
import theodolite.benchmark.Benchmark
import theodolite.benchmark.BenchmarkDeployment
class TestBenchmark : AbstractBenchmark(
AbstractBenchmark.Config(
clusterZookeeperConnectionString = "",
clusterKafkaConnectionString = "",
externalZookeeperConnectionString = "",
externalKafkaConnectionString = "",
schemaRegistryConnectionString = "",
kafkaTopics = emptyList(),
kafkaReplication = 0,
kafkaPartition = 0,
ucServicePath = "",
ucDeploymentPath = "",
wgDeploymentPath = "",
configMapPath = "",
ucImageURL = "",
wgImageURL = ""
)
), Benchmark {
override fun initializeClusterEnvironment() {
TODO("Not yet implemented")
}
override fun clearClusterEnvironment() {
TODO("Not yet implemented")
}
override fun startSUT(resources: Resource) {
TODO("Not yet implemented")
}
override fun startWorkloadGenerator(load: LoadDimension) {
TODO("Not yet implemented")
}
override fun buildDeployment(
load: LoadDimension,
res: Resource,
override: List<OverridePatcherDefinition>
): BenchmarkDeployment {
TODO("Not yet implemented")
}
}
package theodolite.benchmark
package theodolite.util
import org.yaml.snakeyaml.Yaml
import org.yaml.snakeyaml.constructor.Constructor
import theodolite.util.Parser
import java.io.File
import java.io.FileInputStream
import java.io.InputStream
class BenchmarkYamlParser: Parser {
class YamlParser: Parser {
override fun <T> parse(path: String, E: Class<T>): T? {
val input: InputStream = FileInputStream(File(path))
val parser = Yaml(Constructor(E))
......
......@@ -2,6 +2,7 @@ name: "theodolite ist cool"
appResource:
- "aggregation-deployment.yaml"
- "aggregation-service.yaml"
- "jmx-configmap.yaml"
loadGenResource:
- "workloadGenerator.yaml"
resourceTypes:
......
......@@ -3,12 +3,14 @@ package theodolite
import io.quarkus.test.junit.QuarkusTest
import org.junit.jupiter.api.Assertions.*
import org.junit.jupiter.api.Test
import theodolite.benchmark.TestBenchmark
import theodolite.strategies.searchstrategy.LinearSearch
import theodolite.strategies.searchstrategy.BinarySearch
import theodolite.strategies.restriction.LowerBoundRestriction
import theodolite.strategies.searchstrategy.CompositeStrategy
import theodolite.execution.TestBenchmarkExecutorImpl
import theodolite.util.*
import java.util.*
@QuarkusTest
class CompositeStrategyTest {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment