|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IndexCheckService
Manage and execute index checks that need to be performed from time to time.
Nested Class Summary | |
---|---|
static class |
IndexCheckService.CheckResult<T>
|
static class |
IndexCheckService.CheckSpec
|
static class |
IndexCheckService.CheckType
|
Method Summary | |
---|---|
void |
onReindexAllCancelled(com.atlassian.jira.issue.index.ReindexAllCancelledEvent event)
Respond to reindex cancelled events. |
void |
onReindexAllCompleted(com.atlassian.jira.issue.index.ReindexAllCompletedEvent event)
Respond to reindex completed events. |
IndexCheckService.CheckResult<java.lang.Void> |
performCheck(IndexCheckService.CheckSpec checkSpec)
Perform the checks to find out what state the issue index is in. |
void |
setCheckNecessary(IndexCheckService.CheckType checkType,
com.atlassian.fugue.Option<java.lang.String> flag)
Set a flag in the system to indicate that the check is necessary. |
IndexCheckService.CheckResult<java.lang.Boolean> |
validateCheck(IndexCheckService.CheckSpec checkSpec)
Find out if the specified checks are necessary. |
Method Detail |
---|
@Nonnull IndexCheckService.CheckResult<java.lang.Boolean> validateCheck(@Nonnull IndexCheckService.CheckSpec checkSpec)
checkSpec
- a specification for which checks/views to run
@Nonnull IndexCheckService.CheckResult<java.lang.Void> performCheck(@Nonnull IndexCheckService.CheckSpec checkSpec)
checkSpec
- a specification for which checks/views to run
void setCheckNecessary(@Nonnull IndexCheckService.CheckType checkType, @Nonnull com.atlassian.fugue.Option<java.lang.String> flag)
checkType
- the type of check to store the flag forflag
- the flag to set; defaults to "true"@EventListener void onReindexAllCompleted(com.atlassian.jira.issue.index.ReindexAllCompletedEvent event)
event
- the event@EventListener void onReindexAllCancelled(com.atlassian.jira.issue.index.ReindexAllCancelledEvent event)
event
- the event
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |