Class BackupChainLog
java.lang.Object
org.exoplatform.services.jcr.ext.backup.BackupChainLog
Created by The eXo Platform SARL .
- Version:
- $Id: $
- Author:
- Gennady Azarenkov
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBackupChainLog(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
Modifier and TypeMethodDescriptionvoidaddJobEntry(BackupJob job) Adding the the backup job.voidendLog()Finalize log.Getting backup config.Getting the backup id.Getting the config info.Getting the finished time.Getting the job informations.Getting the states for jobs.Getting log file path.org.exoplatform.services.jcr.config.WorkspaceEntryGetting original workspace configurationGetting the started time.boolean
-
Field Details
-
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
- See Also:
-
-
Constructor Details
-
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
BackupChainLog constructor.- Parameters:
log- File, the backup log- Throws:
BackupOperationException- will be generate the BackupOperationException
-
-
Method Details
-
addJobEntry
Adding the the backup job.- Parameters:
job- BackupJob, the backup job
-
getBackupId
Getting the backup id.- Returns:
- int return the backup id
-
getConfigInfo
Getting the config info.- Returns:
- String return the config info
-
getJobEntryInfos
Getting the job informations.- Returns:
- List return the job informations.
-
endLog
public void endLog()Finalize log. -
getJobEntryStates
Getting the states for jobs.- Returns:
- Collection return the collection of states for jobs
-
getBackupConfig
Getting backup config.- Returns:
- BackupConfig return the backup config
-
getLogFilePath
Getting log file path.- Returns:
- String return the path to backup log
-
getStartedTime
Getting the started time.- Returns:
- Calendar return the started time
-
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
-
getIncrementalBackupType
-