Class OpensearchBackupRepository
java.lang.Object
io.camunda.webapps.backup.repository.opensearch.OpensearchBackupRepository
- All Implemented Interfaces:
BackupRepository
-
Field Summary
FieldsFields inherited from interface io.camunda.webapps.backup.BackupRepository
BACKUPID_PATTERN, LONG_MAX_LENGTH_AS_STRING -
Constructor Summary
ConstructorsConstructorDescriptionOpensearchBackupRepository(org.opensearch.client.opensearch.OpenSearchClient openSearchClient, org.opensearch.client.opensearch.OpenSearchAsyncClient openSearchAsyncClient, BackupRepositoryProps operateProperties, SnapshotNameProvider snapshotNameProvider) -
Method Summary
Modifier and TypeMethodDescriptioncheckAllIndicesExist(List<String> indices) voiddeleteSnapshot(String repositoryName, String snapshotName) voidexecuteSnapshotting(BackupService.SnapshotRequest snapshotRequest, Runnable onSuccess, Runnable onFailure) getBackups(String repositoryName, boolean verbose, String pattern) getBackupState(String repositoryName, Long backupId) getMetadata(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
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
-
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
-