Interface BackupManager
-
- All Known Subinterfaces:
ExtendedBackupManager
- All Known Implementing Classes:
BackupManagerImpl
public interface BackupManagerCreated by The eXo Platform SARL .- Version:
- $Id: $
- Author:
- Gennady Azarenkov
-
-
Field Summary
Fields Modifier and Type Field Description static intFULL_AND_INCREMENTALThe full and incremental backup the type of backup.static intFULL_BACKUP_ONLYThe full backup only the type of backup.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BackupChainfindBackup(String backupId)Finding current backup by identifier.BackupChainfindBackup(String reposytore, String workspace)Finding current backup by repository and workspace.RepositoryBackupChainfindRepositoryBackup(String repository)Finding current backup by repository.RepositoryBackupChainfindRepositoryBackupId(String id)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 log, org.exoplatform.services.jcr.config.RepositoryEntry repositoryEntry, Map<String,String> workspaceNamesCorrespondMap, boolean asynchronous)Repository restore from backup.BackupChainstartBackup(BackupConfig config)Starting backup.RepositoryBackupChainstartBackup(RepositoryBackupConfig config)Starting repository backup.voidstopBackup(BackupChain backup)Stop backup.voidstopBackup(RepositoryBackupChain backup)Stop backup.
-
-
-
Field Detail
-
FULL_BACKUP_ONLY
static final int FULL_BACKUP_ONLY
The full backup only the type of backup.- See Also:
- Constant Field Values
-
FULL_AND_INCREMENTAL
static final int FULL_AND_INCREMENTAL
The full and incremental backup the type of backup.- See Also:
- Constant Field Values
-
-
Method Detail
-
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
JobWorkspaceRestore getLastRestore(String repositoryName, String workspaceName)
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
JobRepositoryRestore getLastRepositoryRestore(String repositoryName)
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
void stopBackup(BackupChain backup)
Stop backup.- Parameters:
backup- BackupChain, the backup chain
-
findBackup
BackupChain findBackup(String reposytore, String workspace)
Finding current backup by repository and workspace.- Parameters:
reposytore- String, the repository nameworkspace- String, the workspace name- Returns:
- BackupChain return the current backup
-
findBackup
BackupChain findBackup(String backupId)
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
void stopBackup(RepositoryBackupChain backup)
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.RepositoryConfigurationException
Repository 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
RepositoryBackupChain findRepositoryBackup(String repository)
Finding current backup by repository.- Parameters:
repository- String, the repository name- Returns:
- RepositoryBackupChain return the current backup to repository
-
findRepositoryBackupId
RepositoryBackupChain findRepositoryBackupId(String id)
Finding current backup by id.- Parameters:
id- String, the repository name- Returns:
- RepositoryBackupChain return the current backup to repository
-
-