Class EventedOpImpl<D>

java.lang.Object
io.nosqlbench.engine.api.activityapi.core.ops.fluent.opfacets.OpImpl<D>
io.nosqlbench.engine.api.activityapi.core.ops.fluent.opfacets.EventedOpImpl<D>
All Implemented Interfaces:
CompletedOp<D>, FailedOp<D>, OpFacets<D>, Payload<D>, SkippedOp<D>, StartedOp<D>, SucceededOp<D>, TrackedOp<D>, CycleMutable, CycleReadable, CycleResult, ResultReadable, Comparable<CycleResult>

public class EventedOpImpl<D> extends OpImpl<D>
  • Constructor Details

    • EventedOpImpl

      public EventedOpImpl(OpEvents<D> opTracker, OpEvents<D> strideTracker)
    • EventedOpImpl

      public EventedOpImpl(OpEvents<D> opTracker)
  • Method Details

    • start

      public StartedOp<D> start()
      Description copied from interface: TrackedOp
      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.
      Specified by:
      start in interface TrackedOp<D>
      Overrides:
      start in class OpImpl<D>
      Returns:
      a StartedOp of the appropriate generic delegate type
    • succeed

      public SucceededOp<D> succeed(int status)
      Description copied from interface: StartedOp
      Mark this op as successful as of the time it is called, and record the resulting status code.
      Specified by:
      succeed in interface StartedOp<D>
      Overrides:
      succeed in class OpImpl<D>
      Parameters:
      status - The status for this op, determined by individual activity types
      Returns:
      a SucceededOp
    • fail

      public FailedOp<D> fail(int status)
      Description copied from interface: StartedOp
      Mark this op as failed as of the time it is called, and record the resulting status code.
      Specified by:
      fail in interface StartedOp<D>
      Overrides:
      fail in class OpImpl<D>
      Parameters:
      status - The status for this op, determined by individual activity types
      Returns:
      A FailedOp