Class UinServiceHealthCheckerhandler
- java.lang.Object
-
- io.mosip.kernel.idgenerator.config.UinServiceHealthCheckerhandler
-
- All Implemented Interfaces:
io.vertx.core.Handler<io.vertx.ext.web.RoutingContext>,io.vertx.ext.healthchecks.HealthCheckHandler
public class UinServiceHealthCheckerhandler extends Object implements io.vertx.ext.healthchecks.HealthCheckHandler
Health check Handler for uingenerator which check database health,disk space, verticle health- Since:
- 1.0.0
- Author:
- Urvil Joshi
-
-
Constructor Summary
Constructors Constructor Description UinServiceHealthCheckerhandler(io.vertx.core.Vertx vertx, io.vertx.ext.auth.AuthProvider provider, com.fasterxml.jackson.databind.ObjectMapper objectMapper, org.springframework.core.env.Environment environment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddatabaseHealthChecker(io.vertx.core.Future<io.vertx.ext.healthchecks.Status> future)Database health check handlervoiddispSpaceHealthChecker(io.vertx.core.Future<io.vertx.ext.healthchecks.Status> future)Disk-Space health check Handlervoidhandle(io.vertx.ext.web.RoutingContext rc)io.vertx.ext.healthchecks.HealthCheckHandlerregister(String name, long timeout, io.vertx.core.Handler<io.vertx.core.Future<io.vertx.ext.healthchecks.Status>> procedure)io.vertx.ext.healthchecks.HealthCheckHandlerregister(String name, io.vertx.core.Handler<io.vertx.core.Future<io.vertx.ext.healthchecks.Status>> procedure)io.vertx.ext.healthchecks.HealthCheckHandlerunregister(String name)voidverticleHealthHandler(io.vertx.core.Future<io.vertx.ext.healthchecks.Status> future, io.vertx.core.Vertx vertx)Consumer Verticle health check handler
-
-
-
Method Detail
-
register
public io.vertx.ext.healthchecks.HealthCheckHandler register(String name, io.vertx.core.Handler<io.vertx.core.Future<io.vertx.ext.healthchecks.Status>> procedure)
- Specified by:
registerin interfaceio.vertx.ext.healthchecks.HealthCheckHandler
-
register
public io.vertx.ext.healthchecks.HealthCheckHandler register(String name, long timeout, io.vertx.core.Handler<io.vertx.core.Future<io.vertx.ext.healthchecks.Status>> procedure)
- Specified by:
registerin interfaceio.vertx.ext.healthchecks.HealthCheckHandler
-
databaseHealthChecker
public void databaseHealthChecker(io.vertx.core.Future<io.vertx.ext.healthchecks.Status> future)
Database health check handler- Parameters:
future-Futureinstance from handler
-
dispSpaceHealthChecker
public void dispSpaceHealthChecker(io.vertx.core.Future<io.vertx.ext.healthchecks.Status> future)
Disk-Space health check Handler- Parameters:
future-Futureinstance from handler
-
verticleHealthHandler
public void verticleHealthHandler(io.vertx.core.Future<io.vertx.ext.healthchecks.Status> future, io.vertx.core.Vertx vertx)Consumer Verticle health check handler- Parameters:
future-Futureinstance from handlervertx-Vertxinstance
-
handle
public void handle(io.vertx.ext.web.RoutingContext rc)
- Specified by:
handlein interfaceio.vertx.core.Handler<io.vertx.ext.web.RoutingContext>
-
unregister
public io.vertx.ext.healthchecks.HealthCheckHandler unregister(String name)
- Specified by:
unregisterin interfaceio.vertx.ext.healthchecks.HealthCheckHandler
-
-