Class SbkCallbackReader
java.lang.Object
io.sbk.api.Worker
io.sbk.api.impl.SbkCallbackReader
@Deprecated
public final class SbkCallbackReader
extends Worker
implements Callback<Object>, Benchmark
Deprecated.
This interface is replaced by Abstract class AbstractCallbackReader and SbkReader.
SBK Callback reader implementation.
This deprecated helper adapts callback-style drivers into the older SBK
Benchmark interface. It is retained for backwards compatibility but has been
superseded by the SbkReader / AbstractCallbackReader
classes which provide richer orchestration and explicit lifecycle management.
If you are maintaining drivers, prefer implementing a DataReader
(synchronous or asynchronous) and integrate with SbkReader
instead of using this deprecated callback path.
-
Field Summary
Fields inherited from class Worker
id, params, perlChannel -
Constructor Summary
ConstructorsConstructorDescriptionSbkCallbackReader(int readerId, ParameterOptions params, io.perl.api.PerlChannel perlChannel, int idMax, DataType<Object> dataType, io.time.Time time) Deprecated.Creates the deprecated callback-based benchmark reader. -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.Consume the data.voidrecord(long startTime, long endTime, int dataSize, int events) Deprecated.Records a completed callback batch and completes the benchmark when its configured duration or record target is reached.start()Deprecated.Start the Benchmark.voidstop()Deprecated.stop/shutdown the Benchmark.
-
Constructor Details
-
SbkCallbackReader
public SbkCallbackReader(int readerId, ParameterOptions params, io.perl.api.PerlChannel perlChannel, int idMax, DataType<Object> dataType, io.time.Time time) Deprecated.Creates the deprecated callback-based benchmark reader.- Parameters:
readerId- reader identifierparams- benchmark parametersperlChannel- performance channelidMax- maximum reader identifierdataType- storage data typetime- benchmark time source
-
-
Method Details
-
start
-
stop
-
record
public void record(long startTime, long endTime, int dataSize, int events) Deprecated.Records a completed callback batch and completes the benchmark when its configured duration or record target is reached.- Specified by:
recordin interfaceCallback<Object>- Parameters:
startTime- operation start time in the configured time unitendTime- operation completion time in the configured time unitdataSize- total bytes represented by the callback batchevents- number of records represented by the callback batch
-
consume
-