Skip to content
Snippets Groups Projects
Commit c9ccd41f authored by Sören Henning's avatar Sören Henning
Browse files

Minor fixes

parent 29f0ea17
No related branches found
No related tags found
3 merge requests!159Re-implementation of Theodolite with Kotlin/Quarkus,!157Update Graal Image in CI pipeline,!83WIP: Re-implementation of Theodolite with Kotlin/Quarkus
......@@ -13,13 +13,17 @@ object Main {
@JvmStatic
fun main(args: Array<String>) {
val mode = System.getenv("MODE") ?: "yaml-executor"
val mode = System.getenv("MODE") ?: "standalone"
logger.info { "Start Theodolite with mode $mode" }
when(mode) {
"yaml-executor" -> TheodoliteYamlExecutor().start()
"standalone" -> TheodoliteYamlExecutor().start()
"yaml-executor" -> TheodoliteYamlExecutor().start() // TODO remove (#209)
"operator" -> TheodoliteOperator().start()
else -> {logger.error { "MODE $mode not found" }; exitProcess(1)}
else -> {
logger.error { "MODE $mode not found" }
exitProcess(1)
}
}
}
}
\ No newline at end of file
......@@ -12,7 +12,7 @@ import io.fabric8.kubernetes.api.model.KubernetesResource
* @param variableName *(optional)* The variable name to be patched
*
*
* **For example** to patch the load dimension of a workload generator, the Patcher should be created as follow:
* **For example** to patch the load dimension of a load generator, the patcher should be created as follow:
*
* k8sResource: `uc-1-workload-generator.yaml`
* container: `workload`
......
......@@ -4,12 +4,13 @@ import theodolite.execution.BenchmarkExecutor
import theodolite.strategies.restriction.LowerBoundRestriction
import theodolite.strategies.restriction.RestrictionStrategy
import theodolite.strategies.searchstrategy.BinarySearch
import theodolite.strategies.searchstrategy.FullSearch
import theodolite.strategies.searchstrategy.LinearSearch
import theodolite.strategies.searchstrategy.SearchStrategy
import theodolite.util.Results
/**
* Factory for creating [SearchStrategy] and [RestrictionStrategy] Strategies.
* Factory for creating [SearchStrategy] and [RestrictionStrategy] strategies.
*/
class StrategyFactory {
......@@ -24,6 +25,7 @@ class StrategyFactory {
*/
fun createSearchStrategy(executor: BenchmarkExecutor, searchStrategyString: String): SearchStrategy {
return when (searchStrategyString) {
"FullSearch" -> FullSearch(executor)
"LinearSearch" -> LinearSearch(executor)
"BinarySearch" -> BinarySearch(executor)
else -> throw IllegalArgumentException("Search Strategy $searchStrategyString not found")
......
......@@ -5,7 +5,7 @@ import theodolite.util.Resource
import theodolite.util.Results
/**
* The Lower Bound Restriction sets the lower bound of the resources to be examined to the value
* The [LowerBoundRestriction] sets the lower bound of the resources to be examined to the value
* needed to successfully execute the next smaller load.
*
* @param results [Result] object used as a basis to restrict the resources.
......
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