Class BackupManagerImpl
- java.lang.Object
-
- org.exoplatform.services.jcr.ext.backup.impl.BackupManagerImpl
-
- All Implemented Interfaces:
BackupManager,ExtendedBackupManager,org.picocontainer.Startable
public class BackupManagerImpl extends Object implements ExtendedBackupManager, org.picocontainer.Startable
Created by The eXo Platform SAS .- Version:
- $Id: $
- Author:
- Gennady Azarenkov
-
-
Field Summary
Fields Modifier and Type Field Description static StringBACKUP_DIRName of backup dir parameter in configuration.static StringBACKUP_PROPERTIESName of backup properties parameter in configuration.static StringDEFAULT_INCREMENTAL_JOB_PERIODName of default incremental job period parameter in configuration.static StringDEFAULT_VALUE_FULL_BACKUP_TYPEDefault value of incremental backup type parameter in configuration.static StringDEFAULT_VALUE_INCREMENTAL_BACKUP_TYPEDefault value of incremental backup type parameter in configuration.static StringDEFAULT_VALUE_INCREMENTAL_JOB_PERIODDefault value of incremental job period parameter in configuration.static StringFULL_BACKUP_TYPEName of full backup type parameter in configuration.static StringINCREMENTAL_BACKUP_TYPEName of incremental backup type parameter in configuration.protected static org.exoplatform.services.log.LogLOGprotected CopyOnWriteArrayList<JobRepositoryRestore>restoreRepositoryJobsThe list of repository restore job.-
Fields inherited from interface org.exoplatform.services.jcr.ext.backup.BackupManager
FULL_AND_INCREMENTAL, FULL_BACKUP_ONLY
-
-
Constructor Summary
Constructors Constructor Description BackupManagerImpl(org.exoplatform.container.ExoContainerContext ctx, org.exoplatform.container.xml.InitParams initParams, org.exoplatform.services.jcr.RepositoryService repoService)BackupManagerImpl constructor.BackupManagerImpl(org.exoplatform.container.ExoContainerContext ctx, org.exoplatform.container.xml.InitParams initParams, org.exoplatform.services.jcr.RepositoryService repoService, RegistryService registryService)BackupManagerImpl constructor.BackupManagerImpl(org.exoplatform.container.xml.InitParams initParams, org.exoplatform.services.jcr.RepositoryService repoService)BackupManagerImpl constructor.BackupManagerImpl(org.exoplatform.container.xml.InitParams initParams, org.exoplatform.services.jcr.RepositoryService repoService, RegistryService registryService)BackupManagerImpl constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BackupChainfindBackup(String backupId)Finding current backup by identifier.BackupChainfindBackup(String repository, String workspace)Finding current backup by repository and workspace.RepositoryBackupChainfindRepositoryBackup(String repository)Finding current backup by repository.RepositoryBackupChainfindRepositoryBackupId(String backupId)Finding current backup by id.FilegetBackupDirectory()Getting backup directory.BackupChainLog[]getBackupsLogs()Getting all backup logs .Set<BackupChain>getCurrentBackups()Getting current backups.Set<RepositoryBackupChain>getCurrentRepositoryBackups()Getting current repository backups.longgetDefaultIncrementalJobPeriod()Getting default incremental job period.StringgetFullBackupType()Getting full backup type.StringgetIncrementalBackupType()Getting incremental backup type.JobRepositoryRestoregetLastRepositoryRestore(String repositoryName)Getting last repository restore by repository name.JobWorkspaceRestoregetLastRestore(String repositoryName, String workspaceName)Getting last restore by repository and workspace name.BackupMessage[]getMessages()Getting the backup messages.RepositoryBackupChainLog[]getRepositoryBackupsLogs()Getting all repository backup logs.List<JobRepositoryRestore>getRepositoryRestores()Getting list of repository restores.List<JobWorkspaceRestore>getRestores()Getting list of restores.voidrestore(BackupChainLog log, String repositoryName, org.exoplatform.services.jcr.config.WorkspaceEntry workspaceEntry, boolean asynchronous)Restore from backup.voidrestore(RepositoryBackupChainLog log, org.exoplatform.services.jcr.config.RepositoryEntry repositoryEntry, boolean asynchronous)Repository restore from backup.voidrestore(RepositoryBackupChainLog log, org.exoplatform.services.jcr.config.RepositoryEntry repositoryEntry, boolean asynchronous, boolean removeJobOnceOver)Repository restore from backup.voidrestore(RepositoryBackupChainLog rblog, org.exoplatform.services.jcr.config.RepositoryEntry repositoryEntry, Map<String,String> workspaceNamesCorrespondMap, boolean asynchronous)Repository restore from backup.voidrestoreExistingRepository(File repositoryBackupSetDir, boolean asynchronous)Restore existing repository.voidrestoreExistingRepository(String repositoryBackupIdentifier, boolean asynchronous)Restore existing repository.voidrestoreExistingRepository(String repositoryBackupIdentifier, org.exoplatform.services.jcr.config.RepositoryEntry repositoryEntry, boolean asynchronous)Restore existing repository.voidrestoreExistingRepository(RepositoryBackupChainLog rblog, org.exoplatform.services.jcr.config.RepositoryEntry repositoryEntry, boolean asynchronous)Restore existing repository.voidrestoreExistingWorkspace(File workspaceBackupSetDir, boolean asynchronous)Restore existing workspace.voidrestoreExistingWorkspace(String workspaceBackupIdentifier, boolean asynchronous)Restore existing workspace.voidrestoreExistingWorkspace(String workspaceBackupIdentifier, String repositoryName, org.exoplatform.services.jcr.config.WorkspaceEntry workspaceEntry, boolean asynchronous)Restore existing workspace.voidrestoreExistingWorkspace(BackupChainLog log, String repositoryName, org.exoplatform.services.jcr.config.WorkspaceEntry workspaceEntry, boolean asynchronous)Restore existing workspace.protected voidrestoreOverInitializer(BackupChainLog log, String repositoryName, org.exoplatform.services.jcr.config.WorkspaceEntry workspaceEntry)voidrestoreRepository(File repositoryBackupSetDir, boolean asynchronous)ReprositoryEntry for restore should be contains in BackupChainLog.voidrestoreRepository(String repositoryBackupIdentifier, boolean asynchronous)ReprositoryEntry for restore should be contains in BackupChainLog.voidrestoreWorkspace(File workspaceBackupSetDir, boolean asynchronous)WorkspaceEntry for restore should be contains in BackupChainLog.voidrestoreWorkspace(String workspaceBackupIdentifier, boolean asynchronous)WorkspaceEntry for restore should be contains in BackupChainLog.voidstart()BackupChainstartBackup(BackupConfig config)Starting backup.RepositoryBackupChainstartBackup(RepositoryBackupConfig config)Starting repository backup.voidstop()voidstopBackup(BackupChain backup)Stop backup.voidstopBackup(RepositoryBackupChain backup)Stop backup.
-
-
-
Field Detail
-
LOG
protected static final org.exoplatform.services.log.Log LOG
-
DEFAULT_INCREMENTAL_JOB_PERIOD
public static final String DEFAULT_INCREMENTAL_JOB_PERIOD
Name of default incremental job period parameter in configuration.- See Also:
- Constant Field Values
-
BACKUP_PROPERTIES
public static final String BACKUP_PROPERTIES
Name of backup properties parameter in configuration.- See Also:
- Constant Field Values
-
FULL_BACKUP_TYPE
public static final String FULL_BACKUP_TYPE
Name of full backup type parameter in configuration.- See Also:
- Constant Field Values
-
INCREMENTAL_BACKUP_TYPE
public static final String INCREMENTAL_BACKUP_TYPE
Name of incremental backup type parameter in configuration.- See Also:
- Constant Field Values
-
DEFAULT_VALUE_INCREMENTAL_JOB_PERIOD
public static final String DEFAULT_VALUE_INCREMENTAL_JOB_PERIOD
Default value of incremental job period parameter in configuration.- See Also:
- Constant Field Values
-
DEFAULT_VALUE_INCREMENTAL_BACKUP_TYPE
public static final String DEFAULT_VALUE_INCREMENTAL_BACKUP_TYPE
Default value of incremental backup type parameter in configuration.
-
DEFAULT_VALUE_FULL_BACKUP_TYPE
public static final String DEFAULT_VALUE_FULL_BACKUP_TYPE
Default value of incremental backup type parameter in configuration.
-
BACKUP_DIR
public static final String BACKUP_DIR
Name of backup dir parameter in configuration.- See Also:
- Constant Field Values
-
restoreRepositoryJobs
protected CopyOnWriteArrayList<JobRepositoryRestore> restoreRepositoryJobs
The list of repository restore job.
-
-
Constructor Detail
-
BackupManagerImpl
public BackupManagerImpl(org.exoplatform.container.xml.InitParams initParams, org.exoplatform.services.jcr.RepositoryService repoService)BackupManagerImpl constructor.- Parameters:
initParams- InitParams, the init parametersrepoService- RepositoryService, the repository service
-
BackupManagerImpl
public BackupManagerImpl(org.exoplatform.container.ExoContainerContext ctx, org.exoplatform.container.xml.InitParams initParams, org.exoplatform.services.jcr.RepositoryService repoService)BackupManagerImpl constructor.- Parameters:
initParams- InitParams, the init parametersrepoService- RepositoryService, the repository service
-
BackupManagerImpl
public BackupManagerImpl(org.exoplatform.container.xml.InitParams initParams, org.exoplatform.services.jcr.RepositoryService repoService, RegistryService registryService)BackupManagerImpl constructor. InitParams, the init parameters- Parameters:
repoService- RepositoryService, the repository serviceregistryService- RegistryService, the registry service
-
BackupManagerImpl
public BackupManagerImpl(org.exoplatform.container.ExoContainerContext ctx, org.exoplatform.container.xml.InitParams initParams, org.exoplatform.services.jcr.RepositoryService repoService, RegistryService registryService)BackupManagerImpl constructor. InitParams, the init parameters- Parameters:
repoService- RepositoryService, the repository serviceregistryService- RegistryService, the registry service
-
-
Method Detail
-
getCurrentBackups
public Set<BackupChain> getCurrentBackups()
Getting current backups.- Specified by:
getCurrentBackupsin interfaceBackupManager- Returns:
- Set return the set of current backups
-
getMessages
public BackupMessage[] getMessages()
Getting the backup messages.- Specified by:
getMessagesin interfaceBackupManager- Returns:
- BackupMessage[] return the backup messages
-
getBackupsLogs
public BackupChainLog[] getBackupsLogs()
Getting all backup logs .- Specified by:
getBackupsLogsin interfaceBackupManager- Returns:
- BackupChainLog[] return the all backup logs
-
getRepositoryBackupsLogs
public RepositoryBackupChainLog[] getRepositoryBackupsLogs()
Getting all repository backup logs.- Specified by:
getRepositoryBackupsLogsin interfaceBackupManager- Returns:
- RepositoryBackupChainLog[] return the all repository backup logs
-
restoreOverInitializer
protected void restoreOverInitializer(BackupChainLog log, String repositoryName, org.exoplatform.services.jcr.config.WorkspaceEntry workspaceEntry) throws BackupOperationException, javax.jcr.RepositoryException, org.exoplatform.services.jcr.config.RepositoryConfigurationException, BackupConfigurationException
- Throws:
BackupOperationExceptionjavax.jcr.RepositoryExceptionorg.exoplatform.services.jcr.config.RepositoryConfigurationExceptionBackupConfigurationException
-
startBackup
public BackupChain startBackup(BackupConfig config) throws BackupOperationException, BackupConfigurationException, javax.jcr.RepositoryException, org.exoplatform.services.jcr.config.RepositoryConfigurationException
Starting backup.- Specified by:
startBackupin interfaceBackupManager- Parameters:
config- BackupConfig, the backup configuration- Returns:
- BackupChain return the backup chain
- Throws:
BackupOperationException- BackupOperationException will be generate the exception BackupOperationExceptionBackupConfigurationException- will be generate the exception BackupConfigurationExceptionjavax.jcr.RepositoryException- will be generate the exception RepositoryExceptionorg.exoplatform.services.jcr.config.RepositoryConfigurationException- will be generate the exception RepositoryConfigurationException
-
stopBackup
public void stopBackup(BackupChain backup)
Stop backup.- Specified by:
stopBackupin interfaceBackupManager- Parameters:
backup- BackupChain, the backup chain
-
start
public void start()
- Specified by:
startin interfaceorg.picocontainer.Startable
-
stop
public void stop()
- Specified by:
stopin interfaceorg.picocontainer.Startable
-
findBackup
public BackupChain findBackup(String repository, String workspace)
Finding current backup by repository and workspace.- Specified by:
findBackupin interfaceBackupManager- Parameters:
repository- String, the repository nameworkspace- String, the workspace name- Returns:
- BackupChain return the current backup
-
findBackup
public BackupChain findBackup(String backupId)
Finding current backup by identifier.- Specified by:
findBackupin interfaceBackupManager- Parameters:
backupId- String the backup identifier- Returns:
- BackupChain return the current backup
-
getBackupDirectory
public File getBackupDirectory()
Getting backup directory.- Specified by:
getBackupDirectoryin interfaceBackupManager- Returns:
- File return the backup directory
-
getFullBackupType
public String getFullBackupType()
Getting full backup type.- Specified by:
getFullBackupTypein interfaceBackupManager- Returns:
- Sting return FQN to full backup type
-
getIncrementalBackupType
public String getIncrementalBackupType()
Getting incremental backup type.- Specified by:
getIncrementalBackupTypein interfaceBackupManager- Returns:
- String return FQN to full backup type
-
getDefaultIncrementalJobPeriod
public long getDefaultIncrementalJobPeriod()
Getting default incremental job period.- Specified by:
getDefaultIncrementalJobPeriodin interfaceBackupManager- Returns:
- long return the default incremental job period
-
getRestores
public List<JobWorkspaceRestore> getRestores()
Getting list of restores.- Specified by:
getRestoresin interfaceBackupManager- Returns:
- List return the list of backups
-
getLastRestore
public JobWorkspaceRestore getLastRestore(String repositoryName, String workspaceName)
Getting last restore by repository and workspace name.- Specified by:
getLastRestorein interfaceBackupManager- Parameters:
repositoryName- String, the repository nameworkspaceName- String, the workspace name- Returns:
- JobWorkspaceRestore return the job to restore
-
getLastRepositoryRestore
public JobRepositoryRestore getLastRepositoryRestore(String repositoryName)
Getting last repository restore by repository name.- Specified by:
getLastRepositoryRestorein interfaceBackupManager- Parameters:
repositoryName- String, the repository name- Returns:
- JobWorkspaceRestore return the job to restore
-
getRepositoryRestores
public List<JobRepositoryRestore> getRepositoryRestores()
Description copied from interface:BackupManagerGetting list of repository restores.- Specified by:
getRepositoryRestoresin interfaceBackupManager- Returns:
- List return the list of backups
-
restore
public void restore(BackupChainLog log, String repositoryName, org.exoplatform.services.jcr.config.WorkspaceEntry workspaceEntry, boolean asynchronous) throws BackupOperationException, BackupConfigurationException, javax.jcr.RepositoryException, org.exoplatform.services.jcr.config.RepositoryConfigurationException
Restore from backup.- Specified by:
restorein interfaceBackupManager- Parameters:
log- BackupChainLog, the backup logrepositoryName- String, repository nameworkspaceEntry- WorkspaceEntry, the workspace entryasynchronous- boolean, in 'true' then asynchronous restore.- Throws:
BackupOperationException- will be generate the exception BackupOperationExceptionBackupConfigurationException- will be generate the exception BackupConfigurationExceptionjavax.jcr.RepositoryException- will be generate the exception RepositoryExceptionorg.exoplatform.services.jcr.config.RepositoryConfigurationException- will be generate the exception RepositoryConfigurationException
-
restore
public void restore(RepositoryBackupChainLog log, org.exoplatform.services.jcr.config.RepositoryEntry repositoryEntry, boolean asynchronous) throws BackupOperationException, BackupConfigurationException, javax.jcr.RepositoryException, org.exoplatform.services.jcr.config.RepositoryConfigurationException
Repository restore from backup.- Specified by:
restorein interfaceBackupManager- Parameters:
log- RepositoryBackupChainLog, the repository backup logrepositoryEntry- RepositoryEntry, the repository entryasynchronous- boolean, in 'true' then asynchronous restore.- Throws:
BackupOperationException- will be generate the exception BackupOperationExceptionBackupConfigurationException- will be generate the exception BackupConfigurationExceptionjavax.jcr.RepositoryException- will be generate the exception RepositoryExceptionorg.exoplatform.services.jcr.config.RepositoryConfigurationException- will be generate the exception RepositoryConfigurationException
-
restore
public void restore(RepositoryBackupChainLog log, org.exoplatform.services.jcr.config.RepositoryEntry repositoryEntry, boolean asynchronous, boolean removeJobOnceOver) throws BackupOperationException, BackupConfigurationException, javax.jcr.RepositoryException, org.exoplatform.services.jcr.config.RepositoryConfigurationException
Repository restore from backup.- Specified by:
restorein interfaceBackupManager- Parameters:
log- RepositoryBackupChainLog, the repository backup logrepositoryEntry- RepositoryEntry, the repository entryasynchronous- boolean, in 'true' then asynchronous restore.removeJobOnceOver- boolean, in 'true' then restore job well remove after restore.- Throws:
BackupOperationException- will be generate the exception BackupOperationExceptionBackupConfigurationException- will be generate the exception BackupConfigurationExceptionjavax.jcr.RepositoryException- will be generate the exception RepositoryExceptionorg.exoplatform.services.jcr.config.RepositoryConfigurationException- will be generate the exception RepositoryConfigurationException
-
restore
public void restore(RepositoryBackupChainLog rblog, org.exoplatform.services.jcr.config.RepositoryEntry repositoryEntry, Map<String,String> workspaceNamesCorrespondMap, boolean asynchronous) throws BackupOperationException, BackupConfigurationException, javax.jcr.RepositoryException, org.exoplatform.services.jcr.config.RepositoryConfigurationException
Repository restore from backup.- Specified by:
restorein interfaceBackupManager- Parameters:
rblog- RepositoryBackupChainLog, the repository backup logrepositoryEntry- RepositoryEntry, the repository entryworkspaceNamesCorrespondMap- the map with correspondence workspace name in RepositoryEntry and RepositoryBackupChainLog.asynchronous- boolean, in 'true' then asynchronous restore.- Throws:
BackupOperationException- will be generate the exception BackupOperationExceptionBackupConfigurationException- will be generate the exception BackupConfigurationExceptionjavax.jcr.RepositoryException- will be generate the exception RepositoryExceptionorg.exoplatform.services.jcr.config.RepositoryConfigurationException- will be generate the exception RepositoryConfigurationException
-
startBackup
public RepositoryBackupChain startBackup(RepositoryBackupConfig config) throws BackupOperationException, BackupConfigurationException, javax.jcr.RepositoryException, org.exoplatform.services.jcr.config.RepositoryConfigurationException
Starting repository backup.- Specified by:
startBackupin interfaceBackupManager- Parameters:
config- RepositoryBackupConfig, the backup configuration to repository- Returns:
- RepositoryBackupChain return the repository backup chain
- Throws:
BackupOperationException- BackupOperationException will be generate the exception BackupOperationExceptionBackupConfigurationException- will be generate the exception BackupConfigurationExceptionjavax.jcr.RepositoryException- will be generate the exception RepositoryExceptionorg.exoplatform.services.jcr.config.RepositoryConfigurationException- will be generate the exception RepositoryConfigurationException
-
stopBackup
public void stopBackup(RepositoryBackupChain backup)
Stop backup.- Specified by:
stopBackupin interfaceBackupManager- Parameters:
backup- RepositoryBackupChain, the repositroy backup chain
-
findRepositoryBackup
public RepositoryBackupChain findRepositoryBackup(String repository)
Finding current backup by repository.- Specified by:
findRepositoryBackupin interfaceBackupManager- Parameters:
repository- String, the repository name- Returns:
- RepositoryBackupChain return the current backup to repository
-
getCurrentRepositoryBackups
public Set<RepositoryBackupChain> getCurrentRepositoryBackups()
Getting current repository backups.- Specified by:
getCurrentRepositoryBackupsin interfaceBackupManager- Returns:
- Set return the set of current backups
-
findRepositoryBackupId
public RepositoryBackupChain findRepositoryBackupId(String backupId)
Finding current backup by id.- Specified by:
findRepositoryBackupIdin interfaceBackupManager- Parameters:
backupId- String, the repository name- Returns:
- RepositoryBackupChain return the current backup to repository
-
restoreExistingRepository
public void restoreExistingRepository(RepositoryBackupChainLog rblog, org.exoplatform.services.jcr.config.RepositoryEntry repositoryEntry, boolean asynchronous) throws BackupOperationException, BackupConfigurationException
Restore existing repository. Previous data will be deleted. For getting status of repository restore can use BackupManager.getLastRestore(String repositoryName) method- Specified by:
restoreExistingRepositoryin interfaceExtendedBackupManager- Parameters:
rblog- repository backup logrepositoryEntry- new repository configurationasynchronous- if 'true' restore will be in asynchronous mode (i.e. in separated thread)- Throws:
BackupOperationException- if backup operation exception occurredBackupConfigurationException- if configuration exception occurred
-
restoreExistingRepository
public void restoreExistingRepository(String repositoryBackupIdentifier, org.exoplatform.services.jcr.config.RepositoryEntry repositoryEntry, boolean asynchronous) throws BackupOperationException, BackupConfigurationException
Restore existing repository. Previous data will be deleted. For getting status of repository restore can use BackupManager.getLastRestore(String repositoryName) method- Specified by:
restoreExistingRepositoryin interfaceExtendedBackupManager- Parameters:
repositoryBackupIdentifier- backup identifierrepositoryEntry- new repository configurationasynchronous- if 'true' restore will be in asynchronous mode (i.e. in separated thread)- Throws:
BackupOperationException- if backup operation exception occurredBackupConfigurationException- if configuration exception occurred
-
restoreExistingWorkspace
public void restoreExistingWorkspace(BackupChainLog log, String repositoryName, org.exoplatform.services.jcr.config.WorkspaceEntry workspaceEntry, boolean asynchronous) throws BackupOperationException, BackupConfigurationException
Restore existing workspace. Previous data will be deleted. For getting status of workspace restore can use BackupManager.getLastRestore(String repositoryName, String workspaceName) method- Specified by:
restoreExistingWorkspacein interfaceExtendedBackupManager- Parameters:
log- workspace backup logworkspaceEntry- new workspace configurationasynchronous- if 'true' restore will be in asynchronous mode (i.e. in separated thread)- Throws:
BackupOperationException- if backup operation exception occurredBackupConfigurationException- if configuration exception occurred
-
restoreExistingWorkspace
public void restoreExistingWorkspace(String workspaceBackupIdentifier, String repositoryName, org.exoplatform.services.jcr.config.WorkspaceEntry workspaceEntry, boolean asynchronous) throws BackupOperationException, BackupConfigurationException
Restore existing workspace. Previous data will be deleted. For getting status of workspace restore can use BackupManager.getLastRestore(String repositoryName, String workspaceName) method- Specified by:
restoreExistingWorkspacein interfaceExtendedBackupManager- Parameters:
workspaceBackupIdentifier- backup identifierworkspaceEntry- new workspace configurationasynchronous- if 'true' restore will be in asynchronous mode (i.e. in separated thread)- Throws:
BackupOperationException- if backup operation exception occurredBackupConfigurationException- if configuration exception occurred
-
restoreExistingRepository
public void restoreExistingRepository(String repositoryBackupIdentifier, boolean asynchronous) throws BackupOperationException, BackupConfigurationException
Restore existing repository. Previous data will be deleted. For getting status of repository restore can use BackupManager.getLastRestore(String repositoryName) method. ReprositoryEntry for restore should be contains in BackupChainLog.- Specified by:
restoreExistingRepositoryin interfaceExtendedBackupManager- Parameters:
repositoryBackupIdentifier- identifier to repository backup.asynchronous- if 'true' restore will be in asynchronous mode (i.e. in separated thread)- Throws:
BackupOperationException- if backup operation exception occurredBackupConfigurationException- if configuration exception occurred
-
restoreExistingWorkspace
public void restoreExistingWorkspace(String workspaceBackupIdentifier, boolean asynchronous) throws BackupOperationException, BackupConfigurationException
Restore existing workspace. Previous data will be deleted. For getting status of workspace restore can use BackupManager.getLastRestore(String repositoryName, String workspaceName) method WorkspaceEntry for restore should be contains in BackupChainLog.- Specified by:
restoreExistingWorkspacein interfaceExtendedBackupManager- Parameters:
workspaceBackupIdentifier- identifier to workspace backup.asynchronous- if 'true' restore will be in asynchronous mode (i.e. in separated thread)- Throws:
BackupOperationException- if backup operation exception occurredBackupConfigurationException- if configuration exception occurred
-
restoreRepository
public void restoreRepository(String repositoryBackupIdentifier, boolean asynchronous) throws BackupOperationException, BackupConfigurationException
ReprositoryEntry for restore should be contains in BackupChainLog.- Specified by:
restoreRepositoryin interfaceExtendedBackupManager- Parameters:
repositoryBackupIdentifier- identifier to repository backup.asynchronous- if 'true' restore will be in asynchronous mode (i.e. in separated thread)- Throws:
BackupOperationException- if backup operation exception occurredBackupConfigurationException- if configuration exception occurred
-
restoreWorkspace
public void restoreWorkspace(String workspaceBackupIdentifier, boolean asynchronous) throws BackupOperationException, BackupConfigurationException
WorkspaceEntry for restore should be contains in BackupChainLog.- Specified by:
restoreWorkspacein interfaceExtendedBackupManager- Parameters:
workspaceBackupIdentifier- identifier to workspace backup.asynchronous- if 'true' restore will be in asynchronous mode (i.e. in separated thread)- Throws:
BackupOperationException- if backup operation exception occurredBackupConfigurationException- if configuration exception occurred
-
restoreExistingRepository
public void restoreExistingRepository(File repositoryBackupSetDir, boolean asynchronous) throws BackupOperationException, BackupConfigurationException
Restore existing repository. Previous data will be deleted. For getting status of repository restore can use BackupManager.getLastRestore(String repositoryName) method. ReprositoryEntry for restore should be contains in BackupChainLog.- Specified by:
restoreExistingRepositoryin interfaceExtendedBackupManager- Parameters:
repositoryBackupSetDir- the directory with backup setasynchronous- if 'true' restore will be in asynchronous mode (i.e. in separated thread)- Throws:
BackupOperationException- if backup operation exception occurredBackupConfigurationException- if configuration exception occurred
-
restoreExistingWorkspace
public void restoreExistingWorkspace(File workspaceBackupSetDir, boolean asynchronous) throws BackupOperationException, BackupConfigurationException
Restore existing workspace. Previous data will be deleted. For getting status of workspace restore can use BackupManager.getLastRestore(String repositoryName, String workspaceName) method WorkspaceEntry for restore should be contains in BackupChainLog.- Specified by:
restoreExistingWorkspacein interfaceExtendedBackupManager- Parameters:
workspaceBackupSetDir- the directory with backup setasynchronous- if 'true' restore will be in asynchronous mode (i.e. in separated thread)- Throws:
BackupOperationException- if backup operation exception occurredBackupConfigurationException- if configuration exception occurred
-
restoreRepository
public void restoreRepository(File repositoryBackupSetDir, boolean asynchronous) throws BackupOperationException, BackupConfigurationException
ReprositoryEntry for restore should be contains in BackupChainLog.- Specified by:
restoreRepositoryin interfaceExtendedBackupManager- Parameters:
repositoryBackupSetDir- the directory with backup setasynchronous- if 'true' restore will be in asynchronous mode (i.e. in separated thread)- Throws:
BackupOperationException- if backup operation exception occurredBackupConfigurationException- if configuration exception occurred
-
restoreWorkspace
public void restoreWorkspace(File workspaceBackupSetDir, boolean asynchronous) throws BackupOperationException, BackupConfigurationException
WorkspaceEntry for restore should be contains in BackupChainLog.- Specified by:
restoreWorkspacein interfaceExtendedBackupManager- Parameters:
workspaceBackupSetDir- the directory with backup setasynchronous- if 'true' restore will be in asynchronous mode (i.e. in separated thread)- Throws:
BackupOperationException- if backup operation exception occurredBackupConfigurationException- if configuration exception occurred
-
-