Interface SchemaHistoryMXBean

All Known Implementing Classes:
SchemaHistoryMetrics

public interface SchemaHistoryMXBean
Metrics describing SchemaHistory use.
Author:
Jiri Pechanec
  • Method Details

    • getStatus

      String getStatus()
      The schema 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 SchemaHistoryMetrics.SchemaHistoryStatus enum.

      Returns:
      schema 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