|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IndexRecoveryService
Manager to recover an index from a previous index backup
Method Summary | |
---|---|
Long |
getSnapshotInterval(ApplicationUser user)
Get the interval 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,
long snapshotInterval)
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. |
Methods inherited from interface com.atlassian.jira.util.collect.Sized |
---|
isEmpty, size |
Method Detail |
---|
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 validate
boolean isRecoveryEnabled(ApplicationUser user)
@Nullable Long getSnapshotInterval(ApplicationUser user)
user
- the logged in user
void updateRecoverySettings(ApplicationUser user, boolean recoveryEnabled, long snapshotInterval) throws Exception
user
- the logged in userrecoveryEnabled
- is recovery enabledsnapshotInterval
- Interval at which ti take snapshots
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |