summaryrefslogtreecommitdiff
path: root/simulator/opendc-runner-web
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2021-03-05 14:44:30 +0100
committerFabian Mastenbroek <mail.fabianm@gmail.com>2021-03-07 16:13:15 +0100
commita0c0657dc867db61951edff24ddc944bed132ac0 (patch)
treef28f0aa5ef644b99365984de92ac1b2bccb1ff94 /simulator/opendc-runner-web
parent2ba5fc1247472d026f10ad5cf738dcb7e078a9ee (diff)
compute: Make VirtProvisoningService responsible for Server lifecycle
This change refactors the OpenDC Compute module so that the VirtProvisioningService is now responsible for managing the lifecycle of Server objects as opposed to the VirtDriver and BareMetalDriver previously.
Diffstat (limited to 'simulator/opendc-runner-web')
-rw-r--r--simulator/opendc-runner-web/src/main/kotlin/org/opendc/runner/web/WebExperimentMonitor.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/simulator/opendc-runner-web/src/main/kotlin/org/opendc/runner/web/WebExperimentMonitor.kt b/simulator/opendc-runner-web/src/main/kotlin/org/opendc/runner/web/WebExperimentMonitor.kt
index b7a26d34..2a41be65 100644
--- a/simulator/opendc-runner-web/src/main/kotlin/org/opendc/runner/web/WebExperimentMonitor.kt
+++ b/simulator/opendc-runner-web/src/main/kotlin/org/opendc/runner/web/WebExperimentMonitor.kt
@@ -26,7 +26,7 @@ import mu.KotlinLogging
import org.opendc.compute.core.Server
import org.opendc.compute.core.metal.Node
import org.opendc.compute.core.metal.NodeState
-import org.opendc.compute.core.virt.driver.VirtDriver
+import org.opendc.compute.core.virt.Host
import org.opendc.compute.core.virt.service.VirtProvisioningEvent
import org.opendc.experiments.capelin.monitor.ExperimentMonitor
import org.opendc.experiments.capelin.telemetry.HostEvent
@@ -51,7 +51,7 @@ public class WebExperimentMonitor : ExperimentMonitor {
override fun reportHostStateChange(
time: Long,
- driver: VirtDriver,
+ driver: Host,
host: Node
) {
logger.debug { "Host ${host.uid} changed state ${host.state} [$time]" }