Class PersistenceHealthCheckProvider
- java.lang.Object
-
- org.apache.unomi.healthcheck.provider.PersistenceHealthCheckProvider
-
- All Implemented Interfaces:
HealthCheckProvider
public class PersistenceHealthCheckProvider extends Object implements HealthCheckProvider
A health check that track the Unomi persistence layer availability. An evolution would be to check the persistence migration status to ensure that running instance is aligned with the underlying persistence migration status and structures.
-
-
Constructor Summary
Constructors Constructor Description PersistenceHealthCheckProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bind(PersistenceService service)
HealthCheckResponse
execute()
String
name()
void
unbind(PersistenceService service)
-
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
-
bind
public void bind(PersistenceService service)
-
unbind
public void unbind(PersistenceService service)
-
name
public String name()
- Specified by:
name
in interfaceHealthCheckProvider
-
execute
public HealthCheckResponse execute()
- Specified by:
execute
in interfaceHealthCheckProvider
-
-