/** * Registers additional health checks. * * @param provider The provider of the health checks. */ protected final void registerHealthchecks(final HealthCheckProvider provider) { healthCheckServer.registerHealthCheckResources(provider); } }
/** * Registers additional health checks. * * @param provider The provider of the health checks. */ protected final void registerHealthchecks(final HealthCheckProvider provider) { healthCheckServer.registerHealthCheckResources(provider); } }
/** * Starts up this component. * <ol> * <li>invokes {@link #startInternal()}</li> * </ol> * * @param startFuture Will be completed if all of the invoked methods return a succeeded Future. */ @Override public final void start(final Future<Void> startFuture) { healthCheckServer.registerHealthCheckResources(this); startInternal().setHandler(startFuture.completer()); }
private CompositeFuture deployServiceVerticles() { final int maxInstances = config.getMaxInstances(); @SuppressWarnings("rawtypes") final List<Future> deploymentTracker = new ArrayList<>(); for (ObjectFactory<? extends AbstractServiceBase<?>> serviceFactory : serviceFactories) { AbstractServiceBase<?> serviceInstance = serviceFactory.getObject(); healthCheckServer.registerHealthCheckResources(serviceInstance); final Future<String> deployTracker = Future.future(); vertx.deployVerticle(serviceInstance, deployTracker.completer()); deploymentTracker.add(deployTracker); for (int i = 1; i < maxInstances; i++) { // first instance has already been deployed serviceInstance = serviceFactory.getObject(); log.debug("created new instance of service: {}", serviceInstance); final Future<String> tracker = Future.future(); vertx.deployVerticle(serviceInstance, tracker.completer()); deploymentTracker.add(tracker); } } return CompositeFuture.all(deploymentTracker); }