Package com.morpheusdata.core.backup
Class DefaultBackupJobProvider
java.lang.Object
com.morpheusdata.core.backup.DefaultBackupJobProvider
- All Implemented Interfaces:
BackupJobProvider
The Default backup job provider which delegates the backup operations back to morpheus. Use this as the backup
job provider in a backup provider when the provider does not have the concept of scheduled batch backup operations,
or it is desired for morpheus to handle the scheduling and running of batch backup operations.
- Since:
- 0.13.4
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddToBackupJob(BackupJob backupJobModel, Map opts) There is no additional work to be done, allow morpheus to complete the internal process.cloneBackupJob(BackupJob sourceBackupJobModel, BackupJob backupJobModel, Map opts) There is no additional work to be done, allow morpheus to complete the internal process.configureBackupJob(BackupJob backupJobModel, Map config, Map opts) There is no additional work to be done, allow morpheus to complete the internal process.createBackupJob(BackupJob backupJobModel, Map opts) There is no additional work to be done, allow morpheus to complete the internal process.deleteBackupJob(BackupJob backupJobModel, Map opts) There is no additional work to be done, allow morpheus to complete the internal process.executeBackupJob(BackupJob backupJob, Map opts) Trigger the execution of all backups with the job through morpheus backup services.validateBackupJob(BackupJob backupJobModel, Map config, Map opts) There is no additional work to be done, allow morpheus to complete the internal process.
-
Constructor Details
-
DefaultBackupJobProvider
-
-
Method Details
-
configureBackupJob
There is no additional work to be done, allow morpheus to complete the internal process.- Specified by:
configureBackupJobin interfaceBackupJobProvider- Parameters:
backupJobModel- the backup job to apply the configuration changes toconfig- the configuration supplied by external inputs.opts- optional parameters used for configuration.- Returns:
- a
ServiceResponseobject. A ServiceResponse with a false success will indicate a failed configuration and will halt the backup creation process.
-
validateBackupJob
There is no additional work to be done, allow morpheus to complete the internal process.- Specified by:
validateBackupJobin interfaceBackupJobProvider- Parameters:
backupJobModel- the backup job to validateconfig- the original configuration supplied by external inputs.opts- optional parameters used for- Returns:
- a
ServiceResponseobject. The errors field of the ServiceResponse is used to send validation results back to the interface in the format oferrors['fieldName'] = 'validation message'. The msg property can be used to send generic validation text that is not related to a specific field on the model. A ServiceResponse with any items in the errors list or a success value of 'false' will halt the backup job creation process.
-
createBackupJob
There is no additional work to be done, allow morpheus to complete the internal process.- Specified by:
createBackupJobin interfaceBackupJobProvider- Parameters:
backupJobModel- the fully configured and validated backup jobopts- additional options used during backup job creation- Returns:
- a
ServiceResponseobject. A ServiceResponse with a success value of 'false' will indicate the creation on the external system failed and will halt any further processing in Morpheus.
-
cloneBackupJob
public ServiceResponse cloneBackupJob(BackupJob sourceBackupJobModel, BackupJob backupJobModel, Map opts) There is no additional work to be done, allow morpheus to complete the internal process.- Specified by:
cloneBackupJobin interfaceBackupJobProvider- Parameters:
sourceBackupJobModel- the source backup job for cloningbackupJobModel- the backup job that will be associated to the cloned backup job. The externalId of the backup job should be set with the ID of the cloned job result.opts- additional options used during backup job clone- Returns:
- a
ServiceResponseobject. A ServiceResponse with a success value of 'false' will indicate the clone on the external system failed and will halt any further processing in Morpheus.
-
addToBackupJob
There is no additional work to be done, allow morpheus to complete the internal process.- Specified by:
addToBackupJobin interfaceBackupJobProvider- Parameters:
backupJobModel- the backup job receiving the additional backupopts- additional options- Returns:
- a
ServiceResponseobject. A ServiceResponse with a success value of 'false' will indicate the operation on the external system failed and will halt any further processing in Morpheus.
-
deleteBackupJob
There is no additional work to be done, allow morpheus to complete the internal process.- Specified by:
deleteBackupJobin interfaceBackupJobProvider- Parameters:
backupJobModel- the backup job to be removedopts- additional options- Returns:
- a
ServiceResponseobject. A ServiceResponse with a success value of 'false' will indicate the operation on the external system failed and will halt any further processing in Morpheus.
-
executeBackupJob
Trigger the execution of all backups with the job through morpheus backup services.- Specified by:
executeBackupJobin interfaceBackupJobProvider- Parameters:
backupJob- backup job to be executedopts- optional parameters for the job execution process- Returns:
ServiceResponsecontaining the success or failure of the job execution process
-