Interface Benchmark
- All Known Implementing Classes:
SbkBenchmark, SbkCallbackReader
public interface Benchmark
Interface for Benchmark.
Represents a runnable benchmark which can be started and stopped.
Implementations should return a CompletableFuture
from start() that completes when the benchmark has finished or
was shutdown. The stop() method should trigger a graceful
termination of the running workload and ensure the returned future
completes.
-
Method Details
-
start
CompletableFuture<Void> start() throws IOException, InterruptedException, ExecutionException, IllegalStateExceptionStart the Benchmark.- Returns:
- CompletableFuture that completes when the benchmark finishes
- Throws:
IOException- If an exception occurred.InterruptedException- If an exception occurredExecutionException- If an exception occurredIllegalStateException- If an exception occurred.
-
stop
void stop()stop/shutdown the Benchmark.
-