Class OpensearchBackupRepository
java.lang.Object
io.camunda.webapps.backup.repository.opensearch.OpensearchBackupRepository
- All Implemented Interfaces:
BackupRepository
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOpensearchBackupRepository(org.opensearch.client.opensearch.OpenSearchClient openSearchClient, org.opensearch.client.opensearch.OpenSearchAsyncClient openSearchAsyncClient, BackupRepositoryProps operateProperties, SnapshotNameProvider snapshotNameProvider) -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteSnapshot(String repositoryName, String snapshotName) voidexecuteSnapshotting(BackupService.SnapshotRequest snapshotRequest, boolean onlyRequired, Runnable onSuccess, Runnable onFailure) getBackups(String repositoryName) getBackupState(String repositoryName, Long backupId) 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:
-
REPOSITORY_MISSING_EXCEPTION_TYPE
- See Also:
-
-
Constructor Details
-
OpensearchBackupRepository
public OpensearchBackupRepository(org.opensearch.client.opensearch.OpenSearchClient openSearchClient, org.opensearch.client.opensearch.OpenSearchAsyncClient openSearchAsyncClient, BackupRepositoryProps operateProperties, SnapshotNameProvider snapshotNameProvider)
-
-
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
-