Interface BackupChain
- All Superinterfaces:
RepositoryBackupChain
- All Known Implementing Classes:
BackupChainImpl
Created by The eXo Platform SAS.
Author : Alex Reshetnyak alex.reshetnyak@exoplatform.com.ua
09.01.2008
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe full backup state.static final intThe full + incremental backup state.static final longThe timeout.Fields inherited from interface org.exoplatform.services.jcr.ext.backup.RepositoryBackupChain
FINISHED, FULL_BACKUP_FINISHED_INCREMENTAL_BACKUP_WORKING, INITIALIZED, WORKING -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(BackupJobListener listener) Add listener to all existing and will be created in future jobs.Getting backup config.Getting current backup jobs.intGetting the state of full backup.intGetting the state of incremental backup.voidremoveListener(BackupJobListener listener) Remove listener from all existing and don't add it to a created in future jobs.Methods inherited from interface org.exoplatform.services.jcr.ext.backup.RepositoryBackupChain
getBackupId, getLogFilePath, getStartedTime, getState, isFinished, startBackup, stopBackup
-
Field Details
-
FULL_WORKING
static final int FULL_WORKINGThe full backup state.- See Also:
-
INCREMENTAL_WORKING
static final int INCREMENTAL_WORKINGThe full + incremental backup state.- See Also:
-
TIMEOUT
static final long TIMEOUTThe timeout.- See Also:
-
-
Method Details
-
getBackupJobs
Getting current backup jobs.- Returns:
- List return list of current backup jobs.
-
getBackupConfig
BackupConfig getBackupConfig()Getting backup config.- Specified by:
getBackupConfigin interfaceRepositoryBackupChain- Returns:
- BackupConfig return the backup config
-
getFullBackupState
int getFullBackupState()Getting the state of full backup.- Returns:
- int return state of full backup
-
getIncrementalBackupState
int getIncrementalBackupState()Getting the state of incremental backup.- Returns:
- int return state of full backup
-
addListener
Add listener to all existing and will be created in future jobs.- Parameters:
listener- BackupJobListener, the backup job listener
-
removeListener
Remove listener from all existing and don't add it to a created in future jobs.- Parameters:
listener- BackupJobListener, the backup job listener
-