io.nosqlbench.engine.api.activityimpl.uniform.StandardActivity Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of engine-api Show documentation
Show all versions of engine-api Show documentation
The engine API for nosqlbench;
Provides the interfaces needed to build internal modules for the
nosqlbench core engine
package io.nosqlbench.engine.api.activityimpl.uniform;
import io.nosqlbench.engine.api.activityapi.errorhandling.modular.NBErrorHandler;
import io.nosqlbench.engine.api.activityapi.planning.OpSequence;
import io.nosqlbench.engine.api.activityapi.planning.OpSource;
import io.nosqlbench.engine.api.activityimpl.ActivityDef;
import io.nosqlbench.engine.api.activityimpl.OpDispenser;
import io.nosqlbench.engine.api.activityimpl.SimpleActivity;
import io.nosqlbench.engine.api.activityimpl.uniform.flowtypes.Op;
import io.nosqlbench.engine.api.templating.ParsedOp;
import io.nosqlbench.nb.api.errors.OpConfigError;
import java.util.List;
import java.util.Map;
import java.util.function.Function;
/**
* This is a typed activity which is expected to be come the standard
* core of all new activity types. Extant NB drivers should also migrate
* to this when possible.
*
* @param A type of runnable which wraps the operations for this type of driver.
*/
public class StandardActivity extends SimpleActivity {
private final DriverAdapter adapter;
private final OpSource opsource;
private NBErrorHandler errorHandler;
OpSequence> sequence;
public StandardActivity(DriverAdapter adapter, ActivityDef activityDef) {
super(activityDef);
this.adapter = adapter;
try {
Function> opmapper = adapter.getOpMapper();
Function
© 2015 - 2024 Weber Informatics LLC | Privacy Policy