Package io.aeron.cluster
Interface ClusterBackupEventsListener
public interface ClusterBackupEventsListener
Listener which can be registered via
ClusterBackup.Context for tracking backup progress.-
Method Summary
Modifier and TypeMethodDescriptionvoidBackup has moved into backup query state.voidonBackupResponse(ClusterMember[] clusterMembers, ClusterMember logSourceMember, List<RecordingLog.Snapshot> snapshotsToRetrieve) Backup response was received for a backup query.voidonLiveLogProgress(long recordingId, long recordingPosCounterId, long logPosition) Update to the live log position as recorded to the local archive.voidPossible failure of cluster leader detected.voidonUpdatedRecordingLog(RecordingLog recordingLog, List<RecordingLog.Snapshot> snapshotsRetrieved) Updated recording log.
-
Method Details
-
onBackupQuery
void onBackupQuery()Backup has moved into backup query state. Backup process has been started. -
onPossibleFailure
Possible failure of cluster leader detected.- Parameters:
ex- the underlying exception.
-
onBackupResponse
void onBackupResponse(ClusterMember[] clusterMembers, ClusterMember logSourceMember, List<RecordingLog.Snapshot> snapshotsToRetrieve) Backup response was received for a backup query.- Parameters:
clusterMembers- in the backup response.logSourceMember- to be used to replicate data from.snapshotsToRetrieve- snapshots to be retrieved.
-
onUpdatedRecordingLog
void onUpdatedRecordingLog(RecordingLog recordingLog, List<RecordingLog.Snapshot> snapshotsRetrieved) Updated recording log.- Parameters:
recordingLog- that was updated.snapshotsRetrieved- the snapshots that were retrieved.
-
onLiveLogProgress
void onLiveLogProgress(long recordingId, long recordingPosCounterId, long logPosition) Update to the live log position as recorded to the local archive.- Parameters:
recordingId- of the live log.recordingPosCounterId-RecordingPoscounter id for the live log.logPosition- of the live log.
-