From bd37a19f863e589bfed3c3ece0010713f561ee7e Mon Sep 17 00:00:00 2001 From: lorenz <stu203404@mail.uni-kiel.de> Date: Sun, 10 Jan 2021 10:16:22 +0100 Subject: [PATCH] Renaming + implement waitExecution --- .../src/main/kotlin/theodolite/RunUc.kt | 30 +++++++++++++++++++ .../src/main/kotlin/theodolite/Run_uc.kt | 28 ----------------- 2 files changed, 30 insertions(+), 28 deletions(-) create mode 100644 theodolite-quarkus/src/main/kotlin/theodolite/RunUc.kt delete mode 100644 theodolite-quarkus/src/main/kotlin/theodolite/Run_uc.kt diff --git a/theodolite-quarkus/src/main/kotlin/theodolite/RunUc.kt b/theodolite-quarkus/src/main/kotlin/theodolite/RunUc.kt new file mode 100644 index 000000000..dba618b46 --- /dev/null +++ b/theodolite-quarkus/src/main/kotlin/theodolite/RunUc.kt @@ -0,0 +1,30 @@ +package theodolite + +class RunUc { + fun waitExecution(executionMinutes: Int) { + var milliToMinutes = 60000 + System.out.println("Wait while executing") + for (i in 1.rangeTo(executionMinutes)) { + Thread.sleep((milliToMinutes*i).toLong()); + System.out.println("Executed: "+i.toString()+" minutes") + } + + System.out.println("Execution finished") + } + + fun create_topics(topics: List<Pair<String,String>>){ + + } + + fun delete_topics(topics: List<Pair<String,String>>){ + + } + + fun reset_zookeeper(){ + + } + + fun start_workload_generator(wg: String, dim_value:Integer, uc_id: String){ + + } +} diff --git a/theodolite-quarkus/src/main/kotlin/theodolite/Run_uc.kt b/theodolite-quarkus/src/main/kotlin/theodolite/Run_uc.kt deleted file mode 100644 index f82e9b5ee..000000000 --- a/theodolite-quarkus/src/main/kotlin/theodolite/Run_uc.kt +++ /dev/null @@ -1,28 +0,0 @@ -package theodolite - -class Run_uc { - - - fun wait_execution(execution_minutes :Integer){ - - - return - } - - - fun create_topics(topics: List<Pair<String,String>>){ - - } - - fun delete_topics(topics: List<Pair<String,String>>){ - - } - - fun reset_zookeeper(){ - - } - - fun start_workload_generator(wg: String, dim_value:Integer, uc_id: String){ - - } -} \ No newline at end of file -- GitLab