diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2021-01-07 23:59:15 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-07 23:59:15 +0100 |
| commit | 42e9a5b5b610f41a03e68f6fc781c54b9402925b (patch) | |
| tree | 650e886239e8983812d14f3108fdc895756a17d0 /simulator/opendc-compute/opendc-compute-core/src | |
| parent | 3441586e4a10fcc6b2f458d16301ae2770d4886a (diff) | |
| parent | 9cf24c9a8d3e96a29d9b111081bc3369aadd490d (diff) | |
Merge pull request #69 from atlarge-research/refactor/workflows-v1
Refactor workflow service to schedule tasks onto VMs
Diffstat (limited to 'simulator/opendc-compute/opendc-compute-core/src')
| -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. |
