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 Details

    • FULL_BACKUP_ONLY

      static final int FULL_BACKUP_ONLY
      The full backup only the type of backup.
      See Also:
    • FULL_AND_INCREMENTAL

      static final int FULL_AND_INCREMENTAL
      The 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

      JobWorkspaceRestore getLastRestore(String repositoryName, String workspaceName)
      Getting last restore by repository and workspace name.
      Parameters:
      repositoryName - String, the repository name
      workspaceName - 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 BackupOperationException
      BackupConfigurationException - will be generate the exception BackupConfigurationException
      javax.jcr.RepositoryException - will be generate the exception RepositoryException
      org.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 name
      workspace - 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 log
      repositoryName - String, repository name
      workspaceEntry - WorkspaceEntry, the workspace entry
      asynchronous - boolean, in 'true' then asynchronous restore.
      Throws:
      BackupOperationException - will be generate the exception BackupOperationException
      BackupConfigurationException - will be generate the exception BackupConfigurationException
      javax.jcr.RepositoryException - will be generate the exception RepositoryException
      org.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 BackupOperationException
      BackupConfigurationException - will be generate the exception BackupConfigurationException
      javax.jcr.RepositoryException - will be generate the exception RepositoryException
      org.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 log
      repositoryEntry - RepositoryEntry, the repository entry
      workspaceNamesCorrespondMap - the map with correspondence workspace name in RepositoryEntry and RepositoryBackupChainLog.
      asynchronous - boolean, in 'true' then asynchronous restore.
      Throws:
      BackupOperationException - will be generate the exception BackupOperationException
      BackupConfigurationException - will be generate the exception BackupConfigurationException
      javax.jcr.RepositoryException - will be generate the exception RepositoryException
      org.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 log
      repositoryEntry - RepositoryEntry, the repository entry
      asynchronous - boolean, in 'true' then asynchronous restore.
      Throws:
      BackupOperationException - will be generate the exception BackupOperationException
      BackupConfigurationException - will be generate the exception BackupConfigurationException
      javax.jcr.RepositoryException - will be generate the exception RepositoryException
      org.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 log
      repositoryEntry - RepositoryEntry, the repository entry
      asynchronous - boolean, in 'true' then asynchronous restore.
      removeJobOnceOver - boolean, in 'true' then restore job well remove after restore.
      Throws:
      BackupOperationException - will be generate the exception BackupOperationException
      BackupConfigurationException - will be generate the exception BackupConfigurationException
      javax.jcr.RepositoryException - will be generate the exception RepositoryException
      org.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