Package io.sbk.api.impl
Class SbkBenchmark
java.lang.Object
io.sbk.api.impl.SbkBenchmark
- All Implemented Interfaces:
Benchmark
Class for performing the benchmark.
-
Constructor Summary
ConstructorDescriptionSbkBenchmark
(ParameterOptions params, Storage<Object> storage, DataType<Object> dType, @NotNull RWLogger rwLogger, io.time.Time time) Create SBK Benchmark. -
Method Summary
-
Constructor Details
-
SbkBenchmark
public SbkBenchmark(ParameterOptions params, Storage<Object> storage, DataType<Object> dType, @NotNull @NotNull RWLogger rwLogger, io.time.Time time) throws IOException Create SBK Benchmark.- Parameters:
params
- Benchmarking input Parametersstorage
- Storage device/client/driver for benchmarkingdType
- Data Type.rwLogger
- output loggertime
- time interface- Throws:
IOException
- If Exception occurs.
-
-
Method Details
-
start
public CompletableFuture<Void> start() throws IOException, InterruptedException, ExecutionException, IllegalStateExceptionStart SBK Benchmark. opens the storage device/client , creates the writers/readers. conducts the performance benchmarking for given time in seconds or exits if the input the number of records are written/read. NOTE: This method does NOT invoke parsing of parameters, storage device/client.- Specified by:
start
in interfaceBenchmark
- Returns:
- CompletableFuture.
- Throws:
IOException
- If an exception occurred.IllegalStateException
- If an exception occurred.InterruptedException
- If an exception occurredExecutionException
- If an exception occurred
-
stop
public void stop()Stop/shutdown SBK Benchmark. closes all writers/readers. closes the storage device/client.
-