Interface TrackedOp<D>

Type Parameters:
D - The payload type of this op.
All Superinterfaces:
CycleMutable, CycleReadable, Payload<D>
All Known Subinterfaces:
OpFacets<D>
All Known Implementing Classes:
EventedOpImpl, OpImpl

public interface TrackedOp<D> extends Payload<D>, CycleMutable
A tracked op is one that has been added to a tracker, and can then be started.
  • Method Summary

    Modifier and Type
    Method
    Description
    setWaitTime(long cycleDelay)
    Indicate to this op, how much wait time elapsed between the time it was expected to start and the time it actually started.
    skip(int reason)
    Mark that this operation is being skipped by the activity type for some reason.
    Signify to NB that the associated operation is known to have started processing in some specific way according to the implementing activity type.

    Methods inherited from interface io.nosqlbench.engine.api.activityapi.cyclelog.buffers.results.CycleMutable

    setCycle

    Methods inherited from interface io.nosqlbench.engine.api.activityapi.cyclelog.buffers.results.CycleReadable

    getCycle

    Methods inherited from interface io.nosqlbench.engine.api.activityapi.core.ops.fluent.opfacets.Payload

    getOpData, setData
  • Method Details

    • start

      StartedOp<D> start()
      Signify to NB that the associated operation is known to have started processing in some specific way according to the implementing activity type. This should be called after any operational setup work that would not occur in a typical application client scenario. The moment this is called, the start time for the operation is marked.
      Returns:
      a StartedOp of the appropriate generic delegate type
    • skip

      SkippedOp<D> skip(int reason)
      Mark that this operation is being skipped by the activity type for some reason.
      Parameters:
      reason - An integer code, activity type specific, to track why the operation was skipped
      Returns:
      a SkippedOp of the appropriate generic delegate type
    • setWaitTime

      TrackedOp<D> setWaitTime(long cycleDelay)
      Indicate to this op, how much wait time elapsed between the time it was expected to start and the time it actually started. This is used to calculate the response time once service time is known.
      Parameters:
      cycleDelay - nanosecond delay
      Returns:
      a TrackedOp for method chaining