public class DatabaseService
extends java.lang.Object
Constructor and Description |
---|
DatabaseService(MambuAPIService mambuAPIService)
Create a new Database service
|
Modifier and Type | Method and Description |
---|---|
DatabaseBackupResponse |
createDatabaseBackup(DatabaseBackupRequest databaseBackupRequest)
Triggers the process of creating a DB backup.
|
DatabaseBackup |
downloadLatestDbBackup()
Downloads the last DB backup if there is one.
|
@Inject public DatabaseService(MambuAPIService mambuAPIService)
mambuAPIService
- the service responsible with the connection to the serverpublic DatabaseBackupResponse createDatabaseBackup(DatabaseBackupRequest databaseBackupRequest) throws MambuApiException
databaseBackupRequest
- The request object for the database backup API containing the callback URL that will be used by
webhooks to send the successful backup message after backup creation on S3 server. Callback URL must
be valid if provided.MambuApiException
public DatabaseBackup downloadLatestDbBackup() throws MambuApiException
MambuApiException