Class MutableCycleResult
java.lang.Object
io.nosqlbench.engine.api.activityapi.cyclelog.buffers.results.MutableCycleResult
- All Implemented Interfaces:
CycleReadable,CycleResult,ResultReadable,Comparable<CycleResult>
-
Constructor Summary
ConstructorsConstructorDescriptionMutableCycleResult(long cycle, int result) MutableCycleResult(long cycle, int result, long startTimeNanos) MutableCycleResult(long cycle, int result, long startTimeNanos, long schedulingDelay) -
Method Summary
Modifier and TypeMethodDescriptionlonggetCycle()get the cycle number associated with this element.longlongintGet a result associated with some operation, according to the activity-specific result maplongvoidsetEndTimeNanos(long endTimeNanos) voidsetResult(int result) voidsetStartTimeNanos(long startTimeNanos) toString()Methods 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
-
MutableCycleResult
public MutableCycleResult(long cycle, int result, long startTimeNanos, long schedulingDelay) -
MutableCycleResult
public MutableCycleResult(long cycle, int result, long startTimeNanos) -
MutableCycleResult
public MutableCycleResult(long cycle, int result)
-
-
Method Details
-
getCycle
public long getCycle()Description copied from interface:CycleReadableget the cycle number associated with this element.- Specified by:
getCyclein interfaceCycleReadable- Returns:
- a cycle number
-
getResult
public int getResult()Description copied from interface:ResultReadableGet a result associated with some operation, according to the activity-specific result map- Specified by:
getResultin interfaceResultReadable- Returns:
- an activity-specific result code
-
toString
-
setResult
public void setResult(int result) -
getStartTimeNanos
public long getStartTimeNanos() -
setStartTimeNanos
public void setStartTimeNanos(long startTimeNanos) -
getEndTimeNanos
public long getEndTimeNanos() -
setEndTimeNanos
public void setEndTimeNanos(long endTimeNanos) -
getOpNanos
public long getOpNanos()
-