java.lang.Object
io.nosqlbench.engine.api.activityapi.cyclelog.buffers.results.MutableCycleResult
All Implemented Interfaces:
CycleReadable, CycleResult, ResultReadable, java.lang.Comparable<CycleResult>

public class MutableCycleResult
extends java.lang.Object
implements CycleResult
  • Constructor Summary

    Constructors 
    Constructor Description
    MutableCycleResult​(long cycle, int result)  
    MutableCycleResult​(long cycle, int result, long startTimeNanos)  
    MutableCycleResult​(long cycle, int result, long startTimeNanos, long schedulingDelay)  
  • Method Summary

    Modifier and Type Method Description
    long getCycle()
    get the cycle number associated with this element.
    long getEndTimeNanos()  
    long getOpNanos()  
    int getResult()
    Get a result associated with some operation, according to the activity-specific result map
    long getStartTimeNanos()  
    void setEndTimeNanos​(long endTimeNanos)  
    void setResult​(int result)  
    void setStartTimeNanos​(long startTimeNanos)  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

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

    Methods 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: CycleReadable
      get the cycle number associated with this element.
      Specified by:
      getCycle in interface CycleReadable
      Returns:
      a cycle number
    • getResult

      public int getResult()
      Description copied from interface: ResultReadable
      Get a result associated with some operation, according to the activity-specific result map
      Specified by:
      getResult in interface ResultReadable
      Returns:
      an activity-specific result code
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • 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()