Package io.camunda.zeebe.backup.s3
Class S3BackupStore
java.lang.Object
io.camunda.zeebe.backup.s3.S3BackupStore
- All Implemented Interfaces:
BackupStore
BackupStore for S3. Stores all backups in a given bucket.
All created object keys are prefixed by the BackupIdentifier, with the following
scheme: basePath/partitionId/checkpointId/nodeId.
Each backup contains:
- A 'manifest' object, containing
Manifestserialized as JSON, for examplepartitionId/checkpointId/nodeId/manifest.json
- Objects for snapshot files, additionally prefixed with 'snapshot', for example
partitionId/checkpointId/nodeId/snapshots/snapshot-file-1
- Objects for segment files, additionally prefixed with 'segments', for example
partitionId/checkpointId/nodeId/segments/segment-file-1
-
Constructor Summary
ConstructorsConstructorDescriptionS3BackupStore(S3BackupConfig config) S3BackupStore(S3BackupConfig config, software.amazon.awssdk.services.s3.S3AsyncClient client) -
Method Summary
Modifier and TypeMethodDescriptionstatic software.amazon.awssdk.services.s3.S3AsyncClientbuildClient(S3BackupConfig config) list(BackupIdentifierWildcard wildcard) markFailed(BackupIdentifier id, String failureReason) restore(BackupIdentifier id, Path targetFolder) static voidvalidateConfig(S3BackupConfig config)
-
Constructor Details
-
S3BackupStore
-
S3BackupStore
public S3BackupStore(S3BackupConfig config, software.amazon.awssdk.services.s3.S3AsyncClient client)
-
-
Method Details
-
objectPrefix
-
validateConfig
-
save
- Specified by:
savein interfaceBackupStore
-
getStatus
- Specified by:
getStatusin interfaceBackupStore
-
list
- Specified by:
listin interfaceBackupStore
-
delete
- Specified by:
deletein interfaceBackupStore
-
restore
- Specified by:
restorein interfaceBackupStore
-
markFailed
- Specified by:
markFailedin interfaceBackupStore
-
closeAsync
- Specified by:
closeAsyncin interfaceBackupStore
-
buildClient
-