Interface DatabaseHistoryMXBean

    • Method Detail

      • getStatus

        String getStatus()
        The database history starts in STOPPED state. Upon start it transitions to RECOVERING state. When all changes from stored history were applied then it switches to RUNNING state.

        Maps to DatabaseHistoryMetrics.DatabaseHistoryStatus enum.

        Returns:
        database history component state
      • getRecoveryStartTime

        long getRecoveryStartTime()
        Returns:
        time in epoch seconds when recovery has started
      • getChangesRecovered

        long getChangesRecovered()
        Returns:
        number of changes that were read during recovery phase
      • getChangesApplied

        long getChangesApplied()
        Returns:
        number of changes that were applied during recovery phase increased by number of changes applied during runtime
      • getMilliSecondsSinceLastAppliedChange

        long getMilliSecondsSinceLastAppliedChange()
        Returns:
        elapsed time in milliseconds since the last change was applied
      • getMilliSecondsSinceLastRecoveredChange

        long getMilliSecondsSinceLastRecoveredChange()
        Returns:
        elapsed time in milliseconds since the last record was recovered from history
      • getLastAppliedChange

        String getLastAppliedChange()
        Returns:
        String representation of the last applied change
      • getLastRecoveredChange

        String getLastRecoveredChange()
        Returns:
        String representation of the last recovered change