Class Event.MigrationOp.ConsistencyMeasurement

  • Enclosing class:
    Event.MigrationOp

    public static final class Event.MigrationOp.ConsistencyMeasurement
    extends java.lang.Object
    Measurement used to indicate if the values in a read operation were consistent.
    • Constructor Summary

      Constructors 
      Constructor Description
      ConsistencyMeasurement​(boolean consistent, long samplingRatio)
      Construct a new consistency measurement.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getSamplingRatio()
      Get the sampling ratio for the consistency check.
      boolean isConsistent()
      Check if the operation was consistent.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ConsistencyMeasurement

        public ConsistencyMeasurement​(boolean consistent,
                                      long samplingRatio)
        Construct a new consistency measurement.
        Parameters:
        consistent - true if the result was consistent
        samplingRatio - the sampling ratio for the consistency check
    • Method Detail

      • isConsistent

        public boolean isConsistent()
        Check if the operation was consistent.
        Returns:
        true if the operation was consistent
      • getSamplingRatio

        public long getSamplingRatio()
        Get the sampling ratio for the consistency check.
        Returns:
        the sampling ratio