From a4ae44e7f5bbfb293cdce256da3c40f927605ac9 Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Wed, 15 Jul 2020 18:02:43 +0200 Subject: Add skeleton for web runner --- .../kotlin/com/atlarge/opendc/runner/web/Main.kt | 20 +++++++++ .../src/main/resources/log4j2.xml | 49 ++++++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 simulator/opendc/opendc-runner-web/src/main/kotlin/com/atlarge/opendc/runner/web/Main.kt create mode 100644 simulator/opendc/opendc-runner-web/src/main/resources/log4j2.xml (limited to 'simulator/opendc/opendc-runner-web/src') diff --git a/simulator/opendc/opendc-runner-web/src/main/kotlin/com/atlarge/opendc/runner/web/Main.kt b/simulator/opendc/opendc-runner-web/src/main/kotlin/com/atlarge/opendc/runner/web/Main.kt new file mode 100644 index 00000000..3cee259c --- /dev/null +++ b/simulator/opendc/opendc-runner-web/src/main/kotlin/com/atlarge/opendc/runner/web/Main.kt @@ -0,0 +1,20 @@ +package com.atlarge.opendc.runner.web + +import com.github.ajalt.clikt.core.CliktCommand +import mu.KotlinLogging + +private val logger = KotlinLogging.logger {} + +/** + * Represents the CLI command for starting the OpenDC web runner. + */ +class RunnerCli : CliktCommand(name = "runner") { + override fun run() { + logger.info { "Starting OpenDC web runner" } + } +} + +/** + * Main entry point of the runner. + */ +fun main(args: Array) = RunnerCli().main(args) diff --git a/simulator/opendc/opendc-runner-web/src/main/resources/log4j2.xml b/simulator/opendc/opendc-runner-web/src/main/resources/log4j2.xml new file mode 100644 index 00000000..b5a2bbb5 --- /dev/null +++ b/simulator/opendc/opendc-runner-web/src/main/resources/log4j2.xml @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit v1.2.3