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 InputgetInput(long slot)Resolve (find or create) an Input instance for the slot specified.voidsetActivitiesMap(java.util.Map<java.lang.String,Activity> activities)
-
Constructor Details
-
Method Details
-
getInput
Description copied from interface:InputDispenserResolve (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:
getInputin interfaceInputDispenser- Parameters:
slot- The numbered slot within the activity instance for this action.- Returns:
- A new or cached Input for the specified slot.
-
setActivitiesMap
- Specified by:
setActivitiesMapin interfaceActivitiesAware
-