Package io.debezium.relational.history
Interface DatabaseHistoryMXBean
- All Known Implementing Classes:
DatabaseHistoryMetrics
public interface DatabaseHistoryMXBean
Metrics describing
DatabaseHistory use.- Author:
- Jiri Pechanec
-
Method Summary
Modifier and TypeMethodDescriptionlonglonglonglonglongThe database history starts inSTOPPEDstate.
-
Method Details
-
getStatus
String getStatus()The database history starts inSTOPPEDstate. Upon start it transitions toRECOVERINGstate. When all changes from stored history were applied then it switches toRUNNINGstate.Maps to
DatabaseHistoryMetrics.DatabaseHistoryStatusenum.- 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
-