Class BackupChainLog


  • public class BackupChainLog
    extends Object
    Created by The eXo Platform SARL .
    Version:
    $Id: $
    Author:
    Gennady Azarenkov
    • Field Detail

      • VERSION_LOG_1_1

        protected static String VERSION_LOG_1_1
        Start for 1.1 version log will be stored relative paths.
      • logger

        protected static org.exoplatform.services.log.Log logger
    • Constructor Detail

      • BackupChainLog

        public BackupChainLog​(File logDir,
                              BackupConfig config,
                              String fullBackupType,
                              String incrementalBackupType,
                              String backupId,
                              org.exoplatform.services.jcr.config.RepositoryServiceConfiguration repositoryServiceConfiguration,
                              File rootDir)
                       throws BackupOperationException
        BackupChainLog constructor.
        Parameters:
        logDir - File, the directory to logs
        config - BackupConfig, the backup config
        fullBackupType - Sting, FQN for full backup
        incrementalBackupType - Sting, FQN for incremental backup
        backupId - String, the identifier of backup
        repositoryServiceConfiguration -
        rootDir -
        Throws:
        BackupOperationException - will be generate the exception BackupOperationException
    • Method Detail

      • addJobEntry

        public void addJobEntry​(BackupJob job)
        Adding the the backup job.
        Parameters:
        job - BackupJob, the backup job
      • getBackupId

        public String getBackupId()
        Getting the backup id.
        Returns:
        int return the backup id
      • getConfigInfo

        public String getConfigInfo()
        Getting the config info.
        Returns:
        String return the config info
      • getJobEntryInfos

        public List<JobEntryInfo> getJobEntryInfos()
        Getting the job informations.
        Returns:
        List return the job informations.
      • endLog

        public void endLog()
        Finalize log.
      • getJobEntryStates

        public Collection<JobEntryInfo> getJobEntryStates()
        Getting the states for jobs.
        Returns:
        Collection return the collection of states for jobs
      • getBackupConfig

        public BackupConfig getBackupConfig()
        Getting backup config.
        Returns:
        BackupConfig return the backup config
      • getLogFilePath

        public String getLogFilePath()
        Getting log file path.
        Returns:
        String return the path to backup log
      • getStartedTime

        public Calendar getStartedTime()
        Getting the started time.
        Returns:
        Calendar return the started time
      • getFinishedTime

        public Calendar getFinishedTime()
        Getting the finished time.
        Returns:
        Calendar return the finished time
      • getOriginalWorkspaceEntry

        public org.exoplatform.services.jcr.config.WorkspaceEntry getOriginalWorkspaceEntry()
        Getting original workspace configuration
        Returns:
        WorkspaceEntry return the original workspace configuration
      • isFinilized

        public boolean isFinilized()
      • getFullBackupType

        public String getFullBackupType()
      • getIncrementalBackupType

        public String getIncrementalBackupType()