Class RepositoryBackupChainImpl
java.lang.Object
org.exoplatform.services.jcr.ext.backup.impl.RepositoryBackupChainImpl
- All Implemented Interfaces:
RepositoryBackupChain
Created by The eXo Platform SAS.
Date: 2010
Date: 2010
- Version:
- $Id$
- Author:
- Alex Reshetnyak
-
Field Summary
Fields inherited from interface org.exoplatform.services.jcr.ext.backup.RepositoryBackupChain
FINISHED, FULL_BACKUP_FINISHED_INCREMENTAL_BACKUP_WORKING, INITIALIZED, WORKING -
Constructor Summary
ConstructorsConstructorDescriptionRepositoryBackupChainImpl(RepositoryBackupConfig config, File logDirectory, org.exoplatform.services.jcr.RepositoryService repositoryService, String fullBackupType, String incrementalBackupType, String repositoryBackupId) -
Method Summary
Modifier and TypeMethodDescriptionGetting repository backup config.Getting identifier of backup.Getting path to backup log.Getting started time of backup.intgetState()Getting state of backup.booleanisFinished.voidCall start backup.voidCall stop backup.
-
Constructor Details
-
RepositoryBackupChainImpl
public RepositoryBackupChainImpl(RepositoryBackupConfig config, File logDirectory, org.exoplatform.services.jcr.RepositoryService repositoryService, String fullBackupType, String incrementalBackupType, String repositoryBackupId) throws BackupOperationException, BackupConfigurationException
-
-
Method Details
-
getLogFilePath
Getting path to backup log.- Specified by:
getLogFilePathin interfaceRepositoryBackupChain- Returns:
- String return path to backup log
-
getState
public int getState()Getting state of backup.- Specified by:
getStatein interfaceRepositoryBackupChain- Returns:
- int return state of backup
-
isFinished
public boolean isFinished()isFinished.- Specified by:
isFinishedin interfaceRepositoryBackupChain- Returns:
- boolean return 'true' if backup was finished.
-
startBackup
public void startBackup()Call start backup.- Specified by:
startBackupin interfaceRepositoryBackupChain
-
stopBackup
public void stopBackup()Call stop backup.- Specified by:
stopBackupin interfaceRepositoryBackupChain
-
getBackupId
Getting identifier of backup.- Specified by:
getBackupIdin interfaceRepositoryBackupChain- Returns:
- String return identifier of backup
-
getStartedTime
Getting started time of backup.- Specified by:
getStartedTimein interfaceRepositoryBackupChain- Returns:
- Calendar return started time of backup
-
getBackupConfig
Getting repository backup config.- Specified by:
getBackupConfigin interfaceRepositoryBackupChain- Returns:
- RepositoryBackupConfig return the repository backup config
-