Package org.apache.unomi.healthcheck
Class HealthCheckService
- java.lang.Object
-
- org.apache.unomi.healthcheck.HealthCheckService
-
public class HealthCheckService extends Object
Health check service that aggregates health checks from multiple providers and ensure asynchronous execution. The service is aware of any configuration changes.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.osgi.service.http.HttpService
httpService
-
Constructor Summary
Constructors Constructor Description HealthCheckService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
activate()
protected void
bind(HealthCheckProvider provider)
List<HealthCheckResponse>
check()
void
deactivate()
protected void
unbind(HealthCheckProvider provider)
-
-
-
Method Detail
-
activate
public void activate() throws javax.servlet.ServletException, org.osgi.service.http.NamespaceException
- Throws:
javax.servlet.ServletException
org.osgi.service.http.NamespaceException
-
deactivate
public void deactivate()
-
bind
protected void bind(HealthCheckProvider provider)
-
unbind
protected void unbind(HealthCheckProvider provider)
-
check
public List<HealthCheckResponse> check() throws RejectedExecutionException
- Throws:
RejectedExecutionException
-
-