eXo JCR :: Component :: Extension Service 1.15.0-CR2

org.exoplatform.services.jcr.ext.backup
Class BackupChainLog

java.lang.Object
  extended by 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
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 Summary
BackupChainLog(File log)
          BackupChainLog constructor.
BackupChainLog(File logDir, BackupConfig config, String fullBackupType, String incrementalBackupType, String backupId, RepositoryServiceConfiguration repositoryServiceConfiguration, File rootDir)
          BackupChainLog constructor.
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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,
                      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
wEntry - original workspace config
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 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()

eXo JCR :: Component :: Extension Service 1.15.0-CR2

Copyright © 2012 eXo Platform SAS. All Rights Reserved.