Package org.nuxeo.elasticsearch
Class ElasticSearchChecker
java.lang.Object
org.nuxeo.elasticsearch.ElasticSearchChecker
- All Implemented Interfaces:
BackingChecker
- Since:
- 11.3
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
accepts
(ConfigurationHolder configHolder) Test if the check has to be done for the given configuration.void
check
(ConfigurationHolder configHolder) Test the availability of the backing service.protected ESClient
getClient
(ElasticSearchClientConfig config) protected org.opensearch.cluster.health.ClusterHealthStatus
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.nuxeo.launcher.config.backingservices.BackingChecker
getDescriptor, getDescriptor, getDescriptor, getDescriptor
-
Field Details
-
ELASTIC_ENABLED_PROP
- See Also:
-
ELASTIC_REST_CLIENT_PROP
- See Also:
-
ADDRESS_LIST_OPT
- See Also:
-
CONFIG_NAME
- See Also:
-
-
Constructor Details
-
ElasticSearchChecker
public ElasticSearchChecker()
-
-
Method Details
-
accepts
Description copied from interface:BackingChecker
Test if the check has to be done for the given configuration.- Specified by:
accepts
in interfaceBackingChecker
- Parameters:
configHolder
- The current configuration- Returns:
- true if
BackingChecker.check(ConfigurationHolder)
has to be called.
-
check
Description copied from interface:BackingChecker
Test the availability of the backing service.- Specified by:
check
in interfaceBackingChecker
- Parameters:
configHolder
- The current configuration- Throws:
ConfigurationException
- if backing service is not available.
-
getHealthStatus
protected org.opensearch.cluster.health.ClusterHealthStatus getHealthStatus(ElasticSearchClientConfig config) throws ConfigurationException - Throws:
ConfigurationException
-
getClient
-