public class BackupChainLog extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.exoplatform.services.log.Log |
logger |
static String |
PREFIX |
protected static String |
VERSION_LOG_1_1
Start for 1.1 version log will be stored relative paths.
|
| Constructor and Description |
|---|
BackupChainLog(File log)
BackupChainLog constructor.
|
BackupChainLog(File logDir,
BackupConfig config,
String fullBackupType,
String incrementalBackupType,
String backupId,
RepositoryServiceConfiguration repositoryServiceConfiguration,
File rootDir)
BackupChainLog constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addJobEntry(BackupJob job)
Adding the the backup job.
|
void |
endLog()
Finalize log.
|
BackupConfig |
getBackupConfig()
Getting backup config.
|
String |
getBackupId()
Getting the backup id.
|
String |
getConfigInfo()
Getting the config info.
|
Calendar |
getFinishedTime()
Getting the finished time.
|
String |
getFullBackupType() |
String |
getIncrementalBackupType() |
List<JobEntryInfo> |
getJobEntryInfos()
Getting the job informations.
|
Collection<JobEntryInfo> |
getJobEntryStates()
Getting the states for jobs.
|
String |
getLogFilePath()
Getting log file path.
|
WorkspaceEntry |
getOriginalWorkspaceEntry()
Getting original workspace configuration
|
Calendar |
getStartedTime()
Getting the started time.
|
boolean |
isFinilized() |
protected static String VERSION_LOG_1_1
protected static org.exoplatform.services.log.Log logger
public static final String PREFIX
public BackupChainLog(File logDir, BackupConfig config, String fullBackupType, String incrementalBackupType, String backupId, RepositoryServiceConfiguration repositoryServiceConfiguration, File rootDir) throws BackupOperationException
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 - BackupOperationException - will be generate the exception BackupOperationExceptionpublic BackupChainLog(File log) throws BackupOperationException
log - File, the backup logBackupOperationException - will be generate the BackupOperationExceptionpublic void addJobEntry(BackupJob job)
job - BackupJob, the backup jobpublic String getBackupId()
public String getConfigInfo()
public List<JobEntryInfo> getJobEntryInfos()
public void endLog()
public Collection<JobEntryInfo> getJobEntryStates()
public BackupConfig getBackupConfig()
public String getLogFilePath()
public Calendar getStartedTime()
public Calendar getFinishedTime()
public WorkspaceEntry getOriginalWorkspaceEntry()
public boolean isFinilized()
public String getFullBackupType()
public String getIncrementalBackupType()
Copyright © 2018 eXo Platform SAS. All Rights Reserved.