From ad20465a5df47b49561bb0afbdda5cd65c5da4b8 Mon Sep 17 00:00:00 2001 From: Dante Niewenhuis Date: Tue, 7 May 2024 12:33:39 +0200 Subject: Revamped failure models (#228) --- .../src/main/kotlin/org/opendc/compute/api/ComputeClient.kt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'opendc-compute/opendc-compute-api/src') diff --git a/opendc-compute/opendc-compute-api/src/main/kotlin/org/opendc/compute/api/ComputeClient.kt b/opendc-compute/opendc-compute-api/src/main/kotlin/org/opendc/compute/api/ComputeClient.kt index 09cfe6f5..7863f20b 100644 --- a/opendc-compute/opendc-compute-api/src/main/kotlin/org/opendc/compute/api/ComputeClient.kt +++ b/opendc-compute/opendc-compute-api/src/main/kotlin/org/opendc/compute/api/ComputeClient.kt @@ -22,6 +22,7 @@ package org.opendc.compute.api +import org.opendc.simulator.compute.workload.SimWorkload import java.util.UUID /** @@ -113,6 +114,11 @@ public interface ComputeClient : AutoCloseable { start: Boolean = true, ): Server + public fun rescheduleServer( + server: Server, + workload: SimWorkload, + ) + /** * Release the resources associated with this client, preventing any further API calls. */ -- cgit v1.2.3