java.lang.Object
io.nosqlbench.engine.api.activityapi.core.ops.fluent.OpTrackerImpl<D>
Type Parameters:
D - The payload data type of the associated Op, based on OpImpl
All Implemented Interfaces:
ActivityDefObserver, OpEvents<D>, OpTracker<D>

public class OpTrackerImpl<D>
extends java.lang.Object
implements OpTracker<D>, ActivityDefObserver
This tracker keeps track of the state of operations associated with it.
  • Constructor Summary

    Constructors 
    Constructor Description
    OpTrackerImpl​(Activity activity, long slot)  
    OpTrackerImpl​(java.lang.String name, int slot, com.codahale.metrics.Timer cycleServiceTimer, com.codahale.metrics.Timer cycleResponseTimer, com.codahale.metrics.Counter pendingOpsCounter)  
  • Method Summary

    Modifier and Type Method Description
    boolean awaitCompletion​(long timeout)  
    int getMaxPendingOps()
    The maximum pending ops determines how many ops an activity is allowed to have in flight at any one time.
    int getPendingOps()  
    boolean isFull()  
    TrackedOp<D> newOp​(long cycle, OpEvents<D> strideTracker)  
    void onActivityDefUpdate​(io.nosqlbench.engine.api.activityimpl.ActivityDef activityDef)  
    void onOpFailure​(FailedOp<D> op)  
    void onOpSkipped​(SkippedOp<D> op)  
    void onOpStarted​(StartedOp<D> op)  
    void onOpSuccess​(SucceededOp<D> op)  
    void setCycleOpFunction​(java.util.function.LongFunction<D> newOpFunction)
    The cycle op function is the function which can map a cycle number into an operation of some sort.
    void setMaxPendingOps​(int maxPendingOps)  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

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