From 9cf24c9a8d3e96a29d9b111081bc3369aadd490d Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Thu, 7 Jan 2021 17:25:40 +0100 Subject: Refactor workflow service to schedule tasks onto VMs This change updates the workflow service to delegate the resource scheduling logic to the virtualized resource provisioner. --- .../org/opendc/compute/core/virt/service/VirtProvisioningService.kt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'simulator/opendc-compute/opendc-compute-core/src') diff --git a/simulator/opendc-compute/opendc-compute-core/src/main/kotlin/org/opendc/compute/core/virt/service/VirtProvisioningService.kt b/simulator/opendc-compute/opendc-compute-core/src/main/kotlin/org/opendc/compute/core/virt/service/VirtProvisioningService.kt index ab96e0a3..3d722110 100644 --- a/simulator/opendc-compute/opendc-compute-core/src/main/kotlin/org/opendc/compute/core/virt/service/VirtProvisioningService.kt +++ b/simulator/opendc-compute/opendc-compute-core/src/main/kotlin/org/opendc/compute/core/virt/service/VirtProvisioningService.kt @@ -41,6 +41,11 @@ public interface VirtProvisioningService { */ public suspend fun drivers(): Set + /** + * The number of hosts available in the system. + */ + public val hostCount: Int + /** * Submit the specified [Image] to the provisioning service. * -- cgit v1.2.3