Package com.orchestranetworks.addon.dama.ext.backuprestore
Provides the interfaces and classes to perform backup and restore operations on the TIBCO EBX® Digital Asset Manager Add-on dataset.
-
Backup the TIBCO EBX® Digital Asset Manager Add-on dataset:
//UseBackupRestoreFactoryto get an instance ofBackupService. BackupService backupService = BackupRestoreFactory.getBackupService(); //Create a new instance ofBackupSpecwith 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:
//UseBackupRestoreFactoryto get an instance ofRestoreService. RestoreService restoreService = BackupRestoreFactory.getRestoreService(); //Create a new instance ofRestoreSpecwith the location of the backup file and EBX® session. RestoreSpec restoreSpec = new RestoreSpec(backupFile, aSession); //Get an instance ofRestoreDetail. 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' //OperationExecutionStatuswill be returned as the result of the execution. OperationExecutionStatus status = restoreService.restore(restoreDetail);
-
Interface Summary Interface Description BackupService Defines the backup service.DriveInformation Defines the drive information.RestoreDetail Defines the restore detail.RestoreService Defines the restore service. -
Class Summary Class Description BackupRestoreFactory Defines the backup restore factory.BackupSpec Defines the backup specifications.RestoreSpec Defines the restore service specifications.