Class Annotators
java.lang.Object
io.nosqlbench.engine.core.annotation.Annotators
Singleton-scoped annotator interface for the local process.
This uses SPI to find the annotators and some config scaffolding
to make configuring them easier.
Any number of annotators is allowed of any supporting interface.
Each instance of a config is used to initialize a single annotator,
and annotations are distributed to each of them in turn.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidInitialize the active annotators.static voidrecordAnnotation(Annotation annotation)
-
Constructor Details
-
Annotators
public Annotators()
-
-
Method Details
-
init
Initialize the active annotators. This method must be called before any others.- Parameters:
annotatorsConfig- A (possibly empty) set of annotator configurations, in any form supported byConfigLoader
-
recordAnnotation
-