Class BackupChainLog
- java.lang.Object
-
- org.exoplatform.services.jcr.ext.backup.BackupChainLog
-
public class BackupChainLog extends Object
Created by The eXo Platform SARL .- Version:
- $Id: $
- Author:
- Gennady Azarenkov
-
-
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 BackupChainLog(File log)BackupChainLog constructor.BackupChainLog(File logDir, BackupConfig config, String fullBackupType, String incrementalBackupType, String backupId, org.exoplatform.services.jcr.config.RepositoryServiceConfiguration repositoryServiceConfiguration, File rootDir)BackupChainLog constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddJobEntry(BackupJob job)Adding the the backup job.voidendLog()Finalize log.BackupConfiggetBackupConfig()Getting backup config.StringgetBackupId()Getting the backup id.StringgetConfigInfo()Getting the config info.CalendargetFinishedTime()Getting the finished time.StringgetFullBackupType()StringgetIncrementalBackupType()List<JobEntryInfo>getJobEntryInfos()Getting the job informations.Collection<JobEntryInfo>getJobEntryStates()Getting the states for jobs.StringgetLogFilePath()Getting log file path.org.exoplatform.services.jcr.config.WorkspaceEntrygetOriginalWorkspaceEntry()Getting original workspace configurationCalendargetStartedTime()Getting the started time.booleanisFinilized()
-
-
-
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
-
PREFIX
public static final String PREFIX
- See Also:
- Constant Field Values
-
-
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 logsconfig- BackupConfig, the backup configfullBackupType- Sting, FQN for full backupincrementalBackupType- Sting, FQN for incremental backupbackupId- String, the identifier of backuprepositoryServiceConfiguration-rootDir-- Throws:
BackupOperationException- will be generate the exception BackupOperationException
-
BackupChainLog
public BackupChainLog(File log) throws BackupOperationException
BackupChainLog constructor.- Parameters:
log- File, the backup log- Throws:
BackupOperationException- will be generate the 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()
-
-