Class ElasticsearchBackupRepository
java.lang.Object
io.camunda.webapps.backup.repository.elasticsearch.ElasticsearchBackupRepository
- All Implemented Interfaces:
BackupRepository
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassCreateSnapshotListener -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionElasticsearchBackupRepository(co.elastic.clients.elasticsearch.ElasticsearchClient esClient, BackupRepositoryProps operateProperties, SnapshotNameProvider snapshotNameProvider, Executor executor) -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteSnapshot(String repositoryName, String snapshotName) voidexecuteSnapshotting(BackupService.SnapshotRequest snapshotRequest, boolean onlyRequired, Runnable onSuccess, Runnable onFailure) List<co.elastic.clients.elasticsearch.snapshot.SnapshotInfo> findSnapshots(String repositoryName, Long backupId) getBackups(String repositoryName) getBackupState(String repositoryName, Long backupId) booleanisSnapshotFinishedWithinTimeout(String repositoryName, String snapshotName) voidvalidateNoDuplicateBackupId(String repositoryName, Long backupId) voidvalidateRepositoryExists(String repositoryName) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.camunda.webapps.backup.BackupRepository
executeSnapshotting, isIncompleteCheckTimedOut
-
Field Details
-
SNAPSHOT_MISSING_EXCEPTION_TYPE
- See Also:
-
-
Constructor Details
-
ElasticsearchBackupRepository
public ElasticsearchBackupRepository(co.elastic.clients.elasticsearch.ElasticsearchClient esClient, BackupRepositoryProps operateProperties, SnapshotNameProvider snapshotNameProvider, Executor executor)
-
-
Method Details
-
snapshotNameProvider
- Specified by:
snapshotNameProviderin interfaceBackupRepository
-
deleteSnapshot
- Specified by:
deleteSnapshotin interfaceBackupRepository
-
validateRepositoryExists
- Specified by:
validateRepositoryExistsin interfaceBackupRepository
-
validateNoDuplicateBackupId
- Specified by:
validateNoDuplicateBackupIdin interfaceBackupRepository
-
getBackupState
- Specified by:
getBackupStatein interfaceBackupRepository
-
getBackups
- Specified by:
getBackupsin interfaceBackupRepository
-
executeSnapshotting
public void executeSnapshotting(BackupService.SnapshotRequest snapshotRequest, boolean onlyRequired, Runnable onSuccess, Runnable onFailure) - Specified by:
executeSnapshottingin interfaceBackupRepository
-
findSnapshots
-
isSnapshotFinishedWithinTimeout
-