@@ -0,0 +1,2195 @@
+/*%0A * src/java/dns_resolv/DnsLookupController.java%0A * ============================================================================%0A * DNS Resolver Daemon (dnsresolvd). Version 0.1%0A * ============================================================================%0A * A daemon that performs DNS lookups for the given hostname%0A * passed in an HTTP request, with the focus on its implementation%0A * using various programming languages. (Vertosphere-boosted impl.)%0A * ============================================================================%0A * Copyright (C) 2017-2019 Radislav (Radicchio) Golubtsov%0A *%0A * (See the LICENSE file at the top of the source tree.)%0A */%0A%0Apackage dns_resolv;%0A%0Aimport io.vertx.core.AbstractVerticle;%0Aimport io.vertx.core.Vertx;%0Aimport io.vertx.core.Context;%0Aimport io.vertx.core.Future;%0A%0Aimport io.vertx.core.http.HttpServer;%0A%0A/** The controller class of the daemon. */%0Apublic class DnsLookupController extends AbstractVerticle %7B%0A    /**%0A     * Reference to the Vert.x instance that deployed this verticle. &ndash;%0A     * From the docs.%0A     */%0A    private Vertx vertx;%0A%0A    /** An HTTP and WebSockets server. &ndash; From the docs. */%0A    private HttpServer server;%0A%0A    /**%0A     * Overridden method that initializes the verticle.%0A     *%0A     * @param vertx   The deploying Vert.x object instance.%0A     * @param context The context object of the verticle.%0A     */%0A    public void init(final Vertx vertx, final Context context) %7B%0A        this.vertx  = vertx;%0A        this.server = vertx.createHttpServer();%0A    %7D%0A%0A    /**%0A     * Overridden method that starts up the verticle.%0A     *%0A     * @param startFuture The Future object that should be invoked%0A     *                    after the verticle startup procedure is complete.%0A     */%0A    public void start(final Future%3CVoid%3E startFuture) %7B%0A        System.out.println(%22--- start ---%22);%0A    %7D%0A%0A    /**%0A     * Overridden method that undeploys the verticle.%0A     *%0A     * @param stopFuture The Future object that should be invoked%0A     *                   after the verticle undeploy procedure is complete.%0A     */%0A    public void stop(final Future%3CVoid%3E stopFuture) %7B%0A        server.close();%0A    %7D%0A%7D%0A%0A// vim:set nu et ts=4 sw=4:%0A

Add controller class of the daemon, of rudimentary implementation.