Class StandardAction<A extends StandardActivity<R,?>,R extends io.nosqlbench.engine.api.activityimpl.uniform.flowtypes.Op>
java.lang.Object
io.nosqlbench.engine.api.activityimpl.uniform.StandardAction<A,R>
- Type Parameters:
A- The type of activityR- The type of operation
- All Implemented Interfaces:
Action,ActivityDefObserver,SyncAction
public class StandardAction<A extends StandardActivity<R,?>,R extends io.nosqlbench.engine.api.activityimpl.uniform.flowtypes.Op> extends java.lang.Object implements SyncAction, ActivityDefObserver
This is the generified version of an Action. All activity types should endeavor to use
this, as the API surface is being consolidated so that the internal machinery of NB
works in a very consistent and uniform way.
There will be changes to multiple drivers to support this consolidation, but the bulk
of this work will be undertaken by the project maintainers.
-
Constructor Summary
Constructors Constructor Description StandardAction(A activity, int slot) -
Method Summary
Modifier and Type Method Description voidonActivityDefUpdate(io.nosqlbench.engine.api.activityimpl.ActivityDef activityDef)intrunCycle(long cycle)Apply a work function to an input value, producing an int status code.
-
Constructor Details
-
Method Details
-
runCycle
public int runCycle(long cycle)Description copied from interface:SyncActionApply a work function to an input value, producing an int status code.
The meaning of status codes is activity specific, however the values Integer.MIN_VALUE, and Integer.MAX_VALUE are reserved.- Specified by:
runCyclein interfaceSyncAction- Parameters:
cycle- a long input- Returns:
- an int status
-
onActivityDefUpdate
public void onActivityDefUpdate(io.nosqlbench.engine.api.activityimpl.ActivityDef activityDef)- Specified by:
onActivityDefUpdatein interfaceActivityDefObserver
-