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
|
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 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-2019 Atlassian. All Rights Reserved.