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 activity
R - 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
    void onActivityDefUpdate​(io.nosqlbench.engine.api.activityimpl.ActivityDef activityDef)  
    int runCycle​(long cycle)
    Apply a work function to an input value, producing an int status code.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.nosqlbench.engine.api.activityapi.core.Action

    init
  • Constructor Details

  • Method Details

    • runCycle

      public int runCycle​(long cycle)
      Description copied from interface: SyncAction

      Apply 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:
      runCycle in interface SyncAction
      Parameters:
      cycle - a long input
      Returns:
      an int status
    • onActivityDefUpdate

      public void onActivityDefUpdate​(io.nosqlbench.engine.api.activityimpl.ActivityDef activityDef)
      Specified by:
      onActivityDefUpdate in interface ActivityDefObserver