Class CoreInputDispenser

java.lang.Object
io.nosqlbench.engine.api.activityimpl.input.CoreInputDispenser
All Implemented Interfaces:
ActivitiesAware, InputDispenser

public class CoreInputDispenser
extends java.lang.Object
implements InputDispenser, ActivitiesAware
  • Constructor Summary

    Constructors 
    Constructor Description
    CoreInputDispenser​(Activity activity)  
  • Method Summary

    Modifier and Type Method Description
    Input getInput​(long slot)
    Resolve (find or create) an Input instance for the slot specified.
    void setActivitiesMap​(java.util.Map<java.lang.String,​Activity> activities)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • getInput

      public Input getInput​(long slot)
      Description copied from interface: InputDispenser
      Resolve (find or create) an Input instance for the slot specified. The input is not required to be per-slot (per-thread), but any shared inputs must be thread safe.
      Specified by:
      getInput in interface InputDispenser
      Parameters:
      slot - The numbered slot within the activity instance for this action.
      Returns:
      A new or cached Input for the specified slot.
    • setActivitiesMap

      public void setActivitiesMap​(java.util.Map<java.lang.String,​Activity> activities)
      Specified by:
      setActivitiesMap in interface ActivitiesAware