Search in sources :

Example 1 with Website

use of com.codingchili.Controller.Website in project parser-excel-elasticsearch by codingchili.

the class ApplicationLauncher method start.

public void start(Future<Void> start) {
    Future<String> writer = Future.future();
    Future<String> website = Future.future();
    vertx.deployVerticle(new ElasticWriter(), writer.completer());
    vertx.deployVerticle(new Website(), website.completer());
    CompositeFuture.all(writer, website).setHandler(done -> {
        if (done.succeeded()) {
            start.complete();
        } else {
            start.fail(done.cause());
        }
    });
}
Also used : ElasticWriter(com.codingchili.Model.ElasticWriter) Website(com.codingchili.Controller.Website)

Example 2 with Website

use of com.codingchili.Controller.Website in project parser-excel-elasticsearch by codingchili.

the class TestWebsite method setUp.

@Before
public void setUp(TestContext context) {
    vertx = Vertx.vertx();
    vertx.deployVerticle(new Website(), context.asyncAssertSuccess());
}
Also used : Website(com.codingchili.Controller.Website)

Aggregations

Website (com.codingchili.Controller.Website)2 ElasticWriter (com.codingchili.Model.ElasticWriter)1