Interface BackupChain
-
- All Superinterfaces:
RepositoryBackupChain
- All Known Implementing Classes:
BackupChainImpl
public interface BackupChain extends RepositoryBackupChain
Created by The eXo Platform SAS. Author : Alex Reshetnyak alex.reshetnyak@exoplatform.com.ua 09.01.2008
-
-
Field Summary
Fields Modifier and Type Field Description static intFULL_WORKINGThe full backup state.static intINCREMENTAL_WORKINGThe full + incremental backup state.static longTIMEOUTThe timeout.-
Fields inherited from interface org.exoplatform.services.jcr.ext.backup.RepositoryBackupChain
FINISHED, FULL_BACKUP_FINISHED_INCREMENTAL_BACKUP_WORKING, INITIALIZED, WORKING
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddListener(BackupJobListener listener)Add listener to all existing and will be created in future jobs.BackupConfiggetBackupConfig()Getting backup config.List<BackupJob>getBackupJobs()Getting current backup jobs.intgetFullBackupState()Getting the state of full backup.intgetIncrementalBackupState()Getting 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 Detail
-
FULL_WORKING
static final int FULL_WORKING
The full backup state.- See Also:
- Constant Field Values
-
INCREMENTAL_WORKING
static final int INCREMENTAL_WORKING
The full + incremental backup state.- See Also:
- Constant Field Values
-
TIMEOUT
static final long TIMEOUT
The timeout.- See Also:
- Constant Field Values
-
-
Method Detail
-
getBackupJobs
List<BackupJob> 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
void addListener(BackupJobListener listener)
Add listener to all existing and will be created in future jobs.- Parameters:
listener- BackupJobListener, the backup job listener
-
removeListener
void removeListener(BackupJobListener listener)
Remove listener from all existing and don't add it to a created in future jobs.- Parameters:
listener- BackupJobListener, the backup job listener
-
-