Class RecoveryState.Translog

    • Constructor Detail

      • Translog

        public Translog()
      • Translog

        public Translog​(StreamInput in)
                 throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • incrementRecoveredOperations

        public void incrementRecoveredOperations()
      • incrementRecoveredOperations

        public void incrementRecoveredOperations​(int ops)
      • decrementRecoveredOperations

        public void decrementRecoveredOperations​(int ops)
      • recoveredOperations

        public int recoveredOperations()
        returns the total number of translog operations recovered so far
      • totalOperations

        public int totalOperations()
        returns the total number of translog operations needed to be recovered at this moment. Note that this can change as the number of operations grows during recovery.

        A value of -1 (UNKNOWN is return if this is unknown (typically a gateway recovery)

      • totalOperations

        public void totalOperations​(int total)
      • totalOperationsOnStart

        public int totalOperationsOnStart()
        returns the total number of translog operations to recovered, on the start of the recovery. Unlike totalOperations() this does change during recovery.

        A value of -1 (UNKNOWN is return if this is unknown (typically a gateway recovery)

      • totalOperationsOnStart

        public void totalOperationsOnStart​(int total)
      • recoveredPercent

        public float recoveredPercent()