Interface BackupManager
- All Known Subinterfaces:
ExtendedBackupManager
- All Known Implementing Classes:
BackupManagerImpl
public interface BackupManager
Created by The eXo Platform SARL .
- Version:
- $Id: $
- Author:
- Gennady Azarenkov
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe full and incremental backup the type of backup.static final intThe full backup only the type of backup. -
Method Summary
Modifier and TypeMethodDescriptionfindBackup(String backupId) Finding current backup by identifier.findBackup(String reposytore, String workspace) Finding current backup by repository and workspace.findRepositoryBackup(String repository) Finding current backup by repository.Finding current backup by id.Getting backup directory.Getting all backup logs .Getting current backups.Getting current repository backups.longGetting default incremental job period.Getting full backup type.Getting incremental backup type.getLastRepositoryRestore(String repositoryName) Getting last repository restore by repository name.getLastRestore(String repositoryName, String workspaceName) Getting last restore by repository and workspace name.Getting the backup messages.Getting all repository backup logs.Getting list of repository restores.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 log, org.exoplatform.services.jcr.config.RepositoryEntry repositoryEntry, Map<String, String> workspaceNamesCorrespondMap, boolean asynchronous) Repository restore from backup.startBackup(BackupConfig config) Starting backup.startBackup(RepositoryBackupConfig config) Starting repository backup.voidstopBackup(BackupChain backup) Stop backup.voidstopBackup(RepositoryBackupChain backup) Stop backup.
-
Field Details
-
FULL_BACKUP_ONLY
static final int FULL_BACKUP_ONLYThe full backup only the type of backup.- See Also:
-
FULL_AND_INCREMENTAL
static final int FULL_AND_INCREMENTALThe full and incremental backup the type of backup.- See Also:
-
-
Method Details
-
getCurrentBackups
Set<BackupChain> getCurrentBackups()Getting current backups.- Returns:
- Set return the set of current backups
-
getCurrentRepositoryBackups
Set<RepositoryBackupChain> getCurrentRepositoryBackups()Getting current repository backups.- Returns:
- Set return the set of current backups
-
getRestores
List<JobWorkspaceRestore> getRestores()Getting list of restores.- Returns:
- List return the list of backups
-
getLastRestore
Getting last restore by repository and workspace name.- Parameters:
repositoryName- String, the repository nameworkspaceName- String, the workspace name- Returns:
- JobWorkspaceRestore return the job to restore
-
getRepositoryRestores
List<JobRepositoryRestore> getRepositoryRestores()Getting list of repository restores.- Returns:
- List return the list of backups
-
getLastRepositoryRestore
Getting last repository restore by repository name.- Parameters:
repositoryName- String, the repository name- Returns:
- JobWorkspaceRestore return the job to restore
-
getBackupsLogs
BackupChainLog[] getBackupsLogs()Getting all backup logs .- Returns:
- BackupChainLog[] return the all backup logs
-
getRepositoryBackupsLogs
RepositoryBackupChainLog[] getRepositoryBackupsLogs()Getting all repository backup logs.- Returns:
- RepositoryBackupChainLog[] return the all repository backup logs
-
startBackup
BackupChain startBackup(BackupConfig config) throws BackupOperationException, BackupConfigurationException, javax.jcr.RepositoryException, org.exoplatform.services.jcr.config.RepositoryConfigurationException Starting backup.- 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
Stop backup.- Parameters:
backup- BackupChain, the backup chain
-
findBackup
Finding current backup by repository and workspace.- Parameters:
reposytore- String, the repository nameworkspace- String, the workspace name- Returns:
- BackupChain return the current backup
-
findBackup
Finding current backup by identifier.- Parameters:
backupId- String the backup identifier- Returns:
- BackupChain return the current backup
-
restore
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.- 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
-
getMessages
BackupMessage[] getMessages()Getting the backup messages.- Returns:
- BackupMessage[] return the backup messages
-
getBackupDirectory
File getBackupDirectory()Getting backup directory.- Returns:
- File return the backup directory
-
getFullBackupType
String getFullBackupType()Getting full backup type.- Returns:
- Sting return FQN to full backup type
-
getIncrementalBackupType
String getIncrementalBackupType()Getting incremental backup type.- Returns:
- String return FQN to full backup type
-
getDefaultIncrementalJobPeriod
long getDefaultIncrementalJobPeriod()Getting default incremental job period.- Returns:
- long return the default incremental job period
-
startBackup
RepositoryBackupChain startBackup(RepositoryBackupConfig config) throws BackupOperationException, BackupConfigurationException, javax.jcr.RepositoryException, org.exoplatform.services.jcr.config.RepositoryConfigurationException Starting repository backup.- 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
Stop backup.- Parameters:
backup- RepositoryBackupChain, the repositroy backup chain
-
restore
void restore(RepositoryBackupChainLog log, org.exoplatform.services.jcr.config.RepositoryEntry repositoryEntry, Map<String, String> workspaceNamesCorrespondMap, boolean asynchronous) throws BackupOperationException, BackupConfigurationException, javax.jcr.RepositoryException, org.exoplatform.services.jcr.config.RepositoryConfigurationExceptionRepository restore from backup.- Parameters:
log- 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
-
restore
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.- 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
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.- 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
-
findRepositoryBackup
Finding current backup by repository.- Parameters:
repository- String, the repository name- Returns:
- RepositoryBackupChain return the current backup to repository
-
findRepositoryBackupId
Finding current backup by id.- Parameters:
id- String, the repository name- Returns:
- RepositoryBackupChain return the current backup to repository
-