Class IndexCheckServiceImpl
java.lang.Object
com.atlassian.greenhopper.service.index.IndexCheckServiceImpl
- All Implemented Interfaces:
IndexCheckService
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.greenhopper.service.index.IndexCheckService
IndexCheckService.CheckResult<T extends ServiceResult>, IndexCheckService.CheckSpec, IndexCheckService.CheckType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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.performCheck
(IndexCheckService.CheckSpec checkSpec) Perform the checks to find out what state the issue index is in.void
setCheckNecessary
(IndexCheckService.CheckType checkType, io.atlassian.fugue.Option<String> flag) Set a flag in the system to indicate that the check is necessary.validateCheck
(IndexCheckService.CheckSpec checkSpec) Find out if the specified checks are necessary.
-
Constructor Details
-
IndexCheckServiceImpl
public IndexCheckServiceImpl()
-
-
Method Details
-
validateCheck
@Nonnull public IndexCheckService.CheckResult<ServiceOutcome<Boolean>> validateCheck(@Nonnull IndexCheckService.CheckSpec checkSpec) Description copied from interface:IndexCheckService
Find out if the specified checks are necessary.- Specified by:
validateCheck
in interfaceIndexCheckService
- Parameters:
checkSpec
- a specification for which checks/views to run- Returns:
- the outcome; will contain error if check failed
-
performCheck
@Nonnull public IndexCheckService.CheckResult<ServiceResult> performCheck(@Nonnull IndexCheckService.CheckSpec checkSpec) Description copied from interface:IndexCheckService
Perform the checks to find out what state the issue index is in.- Specified by:
performCheck
in interfaceIndexCheckService
- Parameters:
checkSpec
- a specification for which checks/views to run- Returns:
- the outcome; will contain error if check failed
-
setCheckNecessary
public void setCheckNecessary(@Nonnull IndexCheckService.CheckType checkType, @Nonnull io.atlassian.fugue.Option<String> flag) Description copied from interface:IndexCheckService
Set a flag in the system to indicate that the check is necessary.- Specified by:
setCheckNecessary
in interfaceIndexCheckService
- Parameters:
checkType
- the type of check to store the flag forflag
- the flag to set; defaults to "true"
-
onReindexAllCompleted
@EventListener public void onReindexAllCompleted(com.atlassian.jira.issue.index.ReindexAllCompletedEvent event) Description copied from interface:IndexCheckService
Respond to reindex completed events.- Specified by:
onReindexAllCompleted
in interfaceIndexCheckService
- Parameters:
event
- the event
-
onReindexAllCancelled
@EventListener public void onReindexAllCancelled(com.atlassian.jira.issue.index.ReindexAllCancelledEvent event) Description copied from interface:IndexCheckService
Respond to reindex cancelled events.- Specified by:
onReindexAllCancelled
in interfaceIndexCheckService
- Parameters:
event
- the event
-