diff --git a/theodolite-quarkus/src/main/kotlin/theodolite/execution/Main.kt b/theodolite-quarkus/src/main/kotlin/theodolite/execution/Main.kt index 4518ef7957104819b26eae95cf4e6e9b35c4e995..64a40c0b11854d61900ab1fde3797e17427cac15 100644 --- a/theodolite-quarkus/src/main/kotlin/theodolite/execution/Main.kt +++ b/theodolite-quarkus/src/main/kotlin/theodolite/execution/Main.kt @@ -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 diff --git a/theodolite-quarkus/src/main/kotlin/theodolite/patcher/AbstractPatcher.kt b/theodolite-quarkus/src/main/kotlin/theodolite/patcher/AbstractPatcher.kt index a1a4501c919748389089b9d81e3cf927b0ea2e2a..c0d17244b6a7a3f37b8d8a57713659b85b9b65b1 100644 --- a/theodolite-quarkus/src/main/kotlin/theodolite/patcher/AbstractPatcher.kt +++ b/theodolite-quarkus/src/main/kotlin/theodolite/patcher/AbstractPatcher.kt @@ -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` diff --git a/theodolite-quarkus/src/main/kotlin/theodolite/strategies/StrategyFactory.kt b/theodolite-quarkus/src/main/kotlin/theodolite/strategies/StrategyFactory.kt index 9bef5587ac9c26d2323af41c5119ac36b95cf807..829370e8ce1c181c1a4cb9fdd8ccf0ecefd48d3d 100644 --- a/theodolite-quarkus/src/main/kotlin/theodolite/strategies/StrategyFactory.kt +++ b/theodolite-quarkus/src/main/kotlin/theodolite/strategies/StrategyFactory.kt @@ -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") diff --git a/theodolite-quarkus/src/main/kotlin/theodolite/strategies/restriction/LowerBoundRestriction.kt b/theodolite-quarkus/src/main/kotlin/theodolite/strategies/restriction/LowerBoundRestriction.kt index 2911b6ac949a9d523e464c0ea2942063e996d767..ee806a128b79b935e05b81e742e082f216bdb670 100644 --- a/theodolite-quarkus/src/main/kotlin/theodolite/strategies/restriction/LowerBoundRestriction.kt +++ b/theodolite-quarkus/src/main/kotlin/theodolite/strategies/restriction/LowerBoundRestriction.kt @@ -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.