Class OpenSearchConsistencyChecker
java.lang.Object
com.atlassian.jira.search.opensearch.OpenSearchConsistencyChecker
- All Implemented Interfaces:
IndexConsistencyChecker
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether this index is available.boolean
-
Constructor Details
-
OpenSearchConsistencyChecker
public OpenSearchConsistencyChecker()
-
-
Method Details
-
isIndexAvailable
public boolean isIndexAvailable()Description copied from interface:IndexConsistencyCheckerWhether this index is available.The index is not available if the index is being rebuilt or recovered. In a clustered environment this reflects only the state on the local node.
- Specified by:
isIndexAvailablein interfaceIndexConsistencyChecker- Returns:
- Whether this index is available.
-
isIndexConsistent
public boolean isIndexConsistent()- Specified by:
isIndexConsistentin interfaceIndexConsistencyChecker- Returns:
- the result of a simple consistency check that compares the index state to the current number of issues. A
background re-index should not be attempted when this returns
false. Note thatfalseis also returned if the index is not available .
-