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>
-
Constructor Summary
ConstructorsConstructorDescriptionEventedOpImpl(OpEvents<D> opTracker) EventedOpImpl(OpEvents<D> opTracker, OpEvents<D> strideTracker) -
Method Summary
Modifier and TypeMethodDescriptionfail(int status) Mark this op as failed as of the time it is called, and record the resulting status code.start()Signify to NB that the associated operation is known to have started processing in some specific way according to the implementing activity type.succeed(int status) Mark this op as successful as of the time it is called, and record the resulting status code.Methods inherited from class io.nosqlbench.engine.api.activityapi.core.ops.fluent.opfacets.OpImpl
getCurrentResponseTimeNanos, getCurrentServiceTimeNanos, getCycle, getOpData, getResponseTimeNanos, getResult, getServiceTimeNanos, getSkippedReason, getStartedAtNanos, getTries, retry, setCycle, setData, setWaitTime, skip, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.nosqlbench.engine.api.activityapi.cyclelog.buffers.results.CycleResult
compareTo
-
Constructor Details
-
EventedOpImpl
-
EventedOpImpl
-
-
Method Details
-
start
Description copied from interface:TrackedOpSignify 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. -
succeed
Description copied from interface:StartedOpMark this op as successful as of the time it is called, and record the resulting status code. -
fail
Description copied from interface:StartedOpMark this op as failed as of the time it is called, and record the resulting status code.
-