Class ElasticSearchHealthCheckProvider
- java.lang.Object
-
- org.apache.unomi.healthcheck.provider.ElasticSearchHealthCheckProvider
-
- All Implemented Interfaces:
HealthCheckProvider
public class ElasticSearchHealthCheckProvider extends Object implements HealthCheckProvider
A Health Check that checks the status of the ElasticSearch connectivity according to the provided configuration. This connectivity should be LIVE before any try to start Unomi.
-
-
Constructor Summary
Constructors Constructor Description ElasticSearchHealthCheckProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
activate()
HealthCheckResponse
execute()
String
name()
void
setConfig(HealthCheckConfig config)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.unomi.healthcheck.HealthCheckProvider
timeout
-
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
activate
public void activate()
-
setConfig
public void setConfig(HealthCheckConfig config)
-
name
public String name()
- Specified by:
name
in interfaceHealthCheckProvider
-
execute
public HealthCheckResponse execute()
- Specified by:
execute
in interfaceHealthCheckProvider
-
-