Package io.debezium.relational.history
Interface DatabaseHistoryMXBean
-
- All Known Implementing Classes:
DatabaseHistoryMetrics
public interface DatabaseHistoryMXBean
Metrics describingDatabaseHistory
use.- Author:
- Jiri Pechanec
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
getChangesApplied()
long
getChangesRecovered()
String
getLastAppliedChange()
String
getLastRecoveredChange()
long
getMilliSecondsSinceLastAppliedChange()
long
getMilliSecondsSinceLastRecoveredChange()
long
getRecoveryStartTime()
String
getStatus()
The database history starts inSTOPPED
state.
-
-
-
Method Detail
-
getStatus
String getStatus()
The database history starts inSTOPPED
state. Upon start it transitions toRECOVERING
state. When all changes from stored history were applied then it switches toRUNNING
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
-
-