public interface IndexRecoveryService extends Sized
Modifier and Type | Method and Description |
---|---|
String |
getSnapshotCronExpression(ApplicationUser user)
Get the schedule configured for taking recovery snapshots
|
boolean |
isRecoveryEnabled(ApplicationUser user)
Is index recovery enabled.
|
IndexCommandResult |
recoverIndexFromBackup(ApplicationUser user,
Context context,
I18nHelper i18n,
String recoveryFilename,
TaskProgressSink taskProgressSink)
Recovers an index from an index backup
|
void |
updateRecoverySettings(ApplicationUser user,
boolean recoveryEnabled,
String cronExpression)
Update the recovery settings
|
boolean |
validIndexZipFile(ApplicationUser user,
File zipFile)
Validate the passed in file to be a valid zip file containing a set of Lucene Index directories.
|
IndexCommandResult recoverIndexFromBackup(ApplicationUser user, Context context, I18nHelper i18n, String recoveryFilename, TaskProgressSink taskProgressSink) throws IndexException
user
- the logged in usercontext
- Contexti18n
- recoveryFilename
- The backup filetaskProgressSink
- IndexException
- If we are unable to recover the indexboolean validIndexZipFile(ApplicationUser user, File zipFile)
user
- the logged in userzipFile
- File to validateboolean isRecoveryEnabled(ApplicationUser user)
@Nullable String getSnapshotCronExpression(ApplicationUser user)
user
- the logged in uservoid updateRecoverySettings(ApplicationUser user, boolean recoveryEnabled, String cronExpression) throws Exception
user
- the logged in userrecoveryEnabled
- is recovery enabledcronExpression
- Schedule at which to take snapshotsException
Copyright © 2002-2016 Atlassian. All Rights Reserved.