public class BackupChainImpl extends Object implements BackupChain
FULL_WORKING, INCREMENTAL_WORKING, TIMEOUTFINISHED, FULL_BACKUP_FINISHED_INCREMENTAL_BACKUP_WORKING, INITIALIZED, WORKING| Constructor and Description |
|---|
BackupChainImpl(BackupConfig config,
File logDirectory,
RepositoryService repositoryService,
String fullBackupType,
String incrementalBackupType,
String backupId,
File rootDir,
Calendar startTime) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(BackupJobListener listener)
Add listener to all existing and will be created in future jobs.
|
BackupConfig |
getBackupConfig()
Getting backup config.
|
String |
getBackupId()
Getting identifier of backup.
|
List<BackupJob> |
getBackupJobs()
Getting current backup jobs.
|
int |
getFullBackupState()
Getting the state of full backup.
|
int |
getIncrementalBackupState()
Getting the state of incremental backup.
|
String |
getLogFilePath()
Getting path to backup log.
|
Calendar |
getStartedTime()
Getting started time of backup.
|
int |
getState()
Getting state of backup.
|
boolean |
isFinished()
isFinished.
|
void |
removeListener(BackupJobListener listener)
Remove listener from all existing and don't add it to a created in future jobs.
|
void |
restartIncrementalBackup() |
void |
startBackup()
Call start backup.
|
void |
stopBackup()
Call stop backup.
|
public BackupChainImpl(BackupConfig config, File logDirectory, RepositoryService repositoryService, String fullBackupType, String incrementalBackupType, String backupId, File rootDir, Calendar startTime) throws BackupOperationException, BackupConfigurationException
public void addListener(BackupJobListener listener)
BackupChainaddListener in interface BackupChainlistener - BackupJobListener, the backup job listenerpublic void removeListener(BackupJobListener listener)
BackupChainremoveListener in interface BackupChainlistener - BackupJobListener, the backup job listenerpublic List<BackupJob> getBackupJobs()
BackupChaingetBackupJobs in interface BackupChainpublic final void startBackup()
RepositoryBackupChainstartBackup in interface RepositoryBackupChainpublic final void stopBackup()
RepositoryBackupChainstopBackup in interface RepositoryBackupChainpublic void restartIncrementalBackup()
public BackupConfig getBackupConfig()
BackupChaingetBackupConfig in interface BackupChaingetBackupConfig in interface RepositoryBackupChainpublic int getFullBackupState()
BackupChaingetFullBackupState in interface BackupChainpublic int getIncrementalBackupState()
BackupChaingetIncrementalBackupState in interface BackupChainpublic String getLogFilePath()
RepositoryBackupChaingetLogFilePath in interface RepositoryBackupChainpublic int getState()
RepositoryBackupChaingetState in interface RepositoryBackupChainpublic boolean isFinished()
RepositoryBackupChainisFinished in interface RepositoryBackupChainpublic String getBackupId()
RepositoryBackupChaingetBackupId in interface RepositoryBackupChainpublic Calendar getStartedTime()
RepositoryBackupChaingetStartedTime in interface RepositoryBackupChainCopyright © 2020 eXo Platform SAS. All Rights Reserved.