See: Description
| Interface | Description |
|---|---|
| BackupService |
Defines the backup service.
|
| DriveInformation |
Defines the drive information.
|
| RestoreDetail |
Defines the restore detail.
|
| RestoreService |
Defines the restore service.
|
| Class | Description |
|---|---|
| BackupRestoreFactory |
Defines the backup restore factory.
|
| BackupSpec |
Defines the backup specifications.
|
| RestoreSpec |
Defines the restore service specifications.
|
Backup the TIBCO EBX® Digital Asset Manager Add-on dataset:
//Use BackupRestoreFactory to get an instance of BackupService.
BackupService backupService = BackupRestoreFactory.getBackupService();
//Create a new instance of BackupSpec with the name of the backup file, folder for the backup file and EBX® session.
BackupSpec backupSpec = new BackupSpec(aSession, "aFileName", aFolder);
//Backup the TIBCO EBX® Digital Asset Manager Add-on dataset and return aFile as the backup File.
File backupFile = backupService.backup(backupSpec);
Restore digital assets to a specified location:
//Use BackupRestoreFactory to get an instance of RestoreService.
RestoreService restoreService = BackupRestoreFactory.getRestoreService();
//Create a new instance of RestoreSpec with the location of the backup file and EBX® session.
RestoreSpec restoreSpec = new RestoreSpec(backupFile, aSession);
//Get an instance of RestoreDetail.
RestoreDetail restoreDetail = restoreService.getRestoreDetails(restoreSpec);
//Get the drive's information and input new drive location.
List<DriveInformation> driveInformations = restoreDetail.getDriveInformations();
driveInformations.get(0).setNewLocation("aString");
//Restore the TIBCO EBX® Digital Asset Manager Add-on dataset with 'restoreDetail'
//OperationExecutionStatus will be returned as the result of the execution.
OperationExecutionStatus status = restoreService.restore(restoreDetail);