Class 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
      void databaseHealthChecker​(io.vertx.core.Future<io.vertx.ext.healthchecks.Status> future)
      Database health check handler
      void dispSpaceHealthChecker​(io.vertx.core.Future<io.vertx.ext.healthchecks.Status> future)
      Disk-Space health check Handler
      void handle​(io.vertx.ext.web.RoutingContext rc)  
      io.vertx.ext.healthchecks.HealthCheckHandler register​(String name, long timeout, io.vertx.core.Handler<io.vertx.core.Future<io.vertx.ext.healthchecks.Status>> procedure)  
      io.vertx.ext.healthchecks.HealthCheckHandler register​(String name, io.vertx.core.Handler<io.vertx.core.Future<io.vertx.ext.healthchecks.Status>> procedure)  
      io.vertx.ext.healthchecks.HealthCheckHandler unregister​(String name)  
      void verticleHealthHandler​(io.vertx.core.Future<io.vertx.ext.healthchecks.Status> future, io.vertx.core.Vertx vertx)
      Consumer Verticle health check handler
    • Constructor Detail

      • UinServiceHealthCheckerhandler

        public 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 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:
        register in interface io.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:
        register in interface io.vertx.ext.healthchecks.HealthCheckHandler
      • databaseHealthChecker

        public void databaseHealthChecker​(io.vertx.core.Future<io.vertx.ext.healthchecks.Status> future)
        Database health check handler
        Parameters:
        future - Future instance from handler
      • dispSpaceHealthChecker

        public void dispSpaceHealthChecker​(io.vertx.core.Future<io.vertx.ext.healthchecks.Status> future)
        Disk-Space health check Handler
        Parameters:
        future - Future instance 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 - Future instance from handler
        vertx - Vertx instance
      • handle

        public void handle​(io.vertx.ext.web.RoutingContext rc)
        Specified by:
        handle in interface io.vertx.core.Handler<io.vertx.ext.web.RoutingContext>
      • unregister

        public io.vertx.ext.healthchecks.HealthCheckHandler unregister​(String name)
        Specified by:
        unregister in interface io.vertx.ext.healthchecks.HealthCheckHandler