diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2021-01-07 17:25:40 +0100 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2021-01-07 23:33:57 +0100 |
| commit | 9cf24c9a8d3e96a29d9b111081bc3369aadd490d (patch) | |
| tree | 4f378ee9f77d8623a67a403135a4010afd5f9000 /simulator/opendc-compute/opendc-compute-core/src/main | |
| parent | 74a4bff83bfb6366cc193d1fc9c4a07e49649649 (diff) | |
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.
Diffstat (limited to 'simulator/opendc-compute/opendc-compute-core/src/main')
| -rw-r--r-- | simulator/opendc-compute/opendc-compute-core/src/main/kotlin/org/opendc/compute/core/virt/service/VirtProvisioningService.kt | 5 |
1 files changed, 5 insertions, 0 deletions
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 @@ -42,6 +42,11 @@ public interface VirtProvisioningService { public suspend fun drivers(): Set<VirtDriver> /** + * The number of hosts available in the system. + */ + public val hostCount: Int + + /** * Submit the specified [Image] to the provisioning service. * * @param name The name of the server to deploy. |
