Class RepositoryBackupChainLog
- java.lang.Object
-
- org.exoplatform.services.jcr.ext.backup.RepositoryBackupChainLog
-
public class RepositoryBackupChainLog extends Object
Created by The eXo Platform SAS.
Date: 2010- Version:
- $Id$
- Author:
- Alex Reshetnyak
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.exoplatform.services.log.Logloggerstatic StringPREFIXprotected static StringVERSION_LOG_1_1Start for 1.1 version log will be stored relative paths.
-
Constructor Summary
Constructors Constructor Description RepositoryBackupChainLog(File log)RepositoryBackupChainLog(File logDirectory, RepositoryBackupConfig config, String fullBackupType, String incrementalBackupType, String systemWorkspace, List<String> wsLogFilePathList, String backupId, Calendar startTime, org.exoplatform.services.jcr.config.RepositoryEntry rEntry, org.exoplatform.services.jcr.config.RepositoryServiceConfiguration repositoryServiceConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidendLog()Finalize log.RepositoryBackupConfiggetBackupConfig()Getting repository backup configuration.StringgetBackupId()Getting the backup id.CalendargetFinishedTime()Getting the finished time.StringgetLogFilePath()Getting log file path.org.exoplatform.services.jcr.config.RepositoryEntrygetOriginalRepositoryEntry()Getting original repository configurationCalendargetStartedTime()Getting the started time.StringgetSystemWorkspace()Getting the system workspace name.List<String>getWorkspaceBackupsInfo()Getting the workspace backups info.booleanisFinilized()
-
-
-
Field Detail
-
logger
protected static org.exoplatform.services.log.Log logger
-
VERSION_LOG_1_1
protected static String VERSION_LOG_1_1
Start for 1.1 version log will be stored relative paths.
-
PREFIX
public static final String PREFIX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RepositoryBackupChainLog
public RepositoryBackupChainLog(File logDirectory, RepositoryBackupConfig config, String fullBackupType, String incrementalBackupType, String systemWorkspace, List<String> wsLogFilePathList, String backupId, Calendar startTime, org.exoplatform.services.jcr.config.RepositoryEntry rEntry, org.exoplatform.services.jcr.config.RepositoryServiceConfiguration repositoryServiceConfiguration) throws BackupOperationException
- Parameters:
logDirectory-config-systemWorkspace-wsLogFilePathList-backupId-startTime-rEntry-- Throws:
BackupOperationException
-
RepositoryBackupChainLog
public RepositoryBackupChainLog(File log) throws BackupOperationException
- Parameters:
log-- Throws:
BackupOperationException
-
-
Method Detail
-
getLogFilePath
public String getLogFilePath()
Getting log file path.- Returns:
- String return the path to backup log
-
getBackupConfig
public RepositoryBackupConfig getBackupConfig()
Getting repository backup configuration.- Returns:
- ReposiotoryBackupConfig return the repository backup configuration
-
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
-
isFinilized
public boolean isFinilized()
-
endLog
public void endLog()
Finalize log.
-
getSystemWorkspace
public String getSystemWorkspace()
Getting the system workspace name.- Returns:
- String return the system workspace name.
-
getWorkspaceBackupsInfo
public List<String> getWorkspaceBackupsInfo()
Getting the workspace backups info.- Returns:
- Collection return the list with path to backups.
-
getBackupId
public String getBackupId()
Getting the backup id.- Returns:
- int return the backup id
-
getOriginalRepositoryEntry
public org.exoplatform.services.jcr.config.RepositoryEntry getOriginalRepositoryEntry()
Getting original repository configuration- Returns:
- RepositoryEntry return the original repository configuration
-
-