Class IndexDirectoryChecker
java.lang.Object
com.atlassian.jira.functest.config.IndexDirectoryChecker
- All Implemented Interfaces:
ConfigurationCheck
A check to make sure that indexing is correctly configured in JIRA XML data.
- Since:
- v4.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.jira.functest.config.ConfigurationCheck
ConfigurationCheck.Result
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheckConfiguration
(JiraConfig config, CheckOptions options) Check the correctness of the passed JIRA XML.void
fixConfiguration
(JiraConfig config, CheckOptions options) Fix the passed JIRA configuration and remove any errors.
-
Field Details
-
CHECKID_INDEX_HOME
The check ID to ensure that we are using JIRA.HOME for indexing.- See Also:
-
CHECKID_INDEX_ENABLED
The check to ensure that indexing is enabled.- See Also:
-
CHECKID_INDEX_DIRECTORY
The check that will set the index directory toFUNC_TEST_INDEX
.- See Also:
-
-
Constructor Details
-
IndexDirectoryChecker
public IndexDirectoryChecker()
-
-
Method Details
-
checkConfiguration
Description copied from interface:ConfigurationCheck
Check the correctness of the passed JIRA XML. It must be possible to call this method multiple times with different agruments (i.e. the object should be stateless).- Specified by:
checkConfiguration
in interfaceConfigurationCheck
- Parameters:
config
- the configuration to check.options
- the context for the check. This is where errors can be reported.- Returns:
- the errors that were found in the passed configuration file.
-
fixConfiguration
Description copied from interface:ConfigurationCheck
Fix the passed JIRA configuration and remove any errors.- Specified by:
fixConfiguration
in interfaceConfigurationCheck
- Parameters:
config
- the configuration to check.options
- the context for the check. This can be used to see what checks are currently enabled for the passed configuration.
-