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

Restructure: Create main methods inside the TheodliteYamlExecutor

parent 75b85f5e
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
This commit is part of merge request !85. Comments created here will be created in the context of that merge request.
package theodolite
import io.quarkus.runtime.annotations.QuarkusMain
import mu.KotlinLogging
import theodolite.execution.TheodoliteYamlExecutor
import kotlin.system.exitProcess
private val logger = KotlinLogging.logger {}
@QuarkusMain
object Main {
@JvmStatic
fun main(args: Array<String>) {
logger.info { "Theodolite started" }
TheodoliteYamlExecutor().run()
logger.info { "Theodolite finished" }
exitProcess(0)
}
}
package theodolite.execution
import io.quarkus.runtime.annotations.QuarkusMain
import mu.KotlinLogging
import theodolite.benchmark.BenchmarkExecution
import theodolite.benchmark.KubernetesBenchmark
import theodolite.util.YamlParser
private val logger = KotlinLogging.logger {}
@QuarkusMain(name = "TheodoliteYamlExecutor")
object TheodoliteYamlExecutor {
@JvmStatic
fun main(args: Array<String>) {
logger.info { "Theodolite started" }
class TheodoliteYamlExecutor {
fun run() {
// load the BenchmarkExecution and the BenchmarkType
val parser = YamlParser()
val benchmarkExecution =
......@@ -15,5 +22,6 @@ class TheodoliteYamlExecutor {
val executor = TheodoliteExecutor(benchmarkExecution, benchmark)
executor.run()
logger.info { "Theodolite finished" }
}
}
quarkus.package.main-class=TheodoliteYamlExecutor
\ No newline at end of file
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