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
FieldsFields inherited from interface io.camunda.webapps.backup.BackupRepository
BACKUPID_PATTERN, LONG_MAX_LENGTH_AS_STRING -
Constructor Summary
ConstructorsConstructorDescriptionElasticsearchBackupRepository(co.elastic.clients.elasticsearch.ElasticsearchClient esClient, BackupRepositoryProps backupProps, SnapshotNameProvider snapshotNameProvider, Executor executor) -
Method Summary
Modifier and TypeMethodDescriptioncheckAllIndicesExist(List<String> indices) voiddeleteSnapshot(String repositoryName, String snapshotName) voidexecuteSnapshotting(BackupService.SnapshotRequest snapshotRequest, Runnable onSuccess, Runnable onFailure) List<co.elastic.clients.elasticsearch.snapshot.SnapshotInfo> findSnapshots(String repositoryName, Long backupId) getBackups(String repositoryName, boolean verbose, String pattern) getBackupState(String repositoryName, Long backupId) getMetadata(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
isIncompleteCheckTimedOut
-
Field Details
-
SNAPSHOT_MISSING_EXCEPTION_TYPE
- See Also:
-
-
Constructor Details
-
ElasticsearchBackupRepository
public ElasticsearchBackupRepository(co.elastic.clients.elasticsearch.ElasticsearchClient esClient, BackupRepositoryProps backupProps, 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
-
getMetadata
- Specified by:
getMetadatain interfaceBackupRepository
-
checkAllIndicesExist
- Specified by:
checkAllIndicesExistin interfaceBackupRepository
-
getBackups
public List<GetBackupStateResponseDto> getBackups(String repositoryName, boolean verbose, String pattern) - Specified by:
getBackupsin interfaceBackupRepository
-
executeSnapshotting
public void executeSnapshotting(BackupService.SnapshotRequest snapshotRequest, Runnable onSuccess, Runnable onFailure) - Specified by:
executeSnapshottingin interfaceBackupRepository
-
findSnapshots
-
isSnapshotFinishedWithinTimeout
-