Search in sources :

Example 1 with ElasticWriter

use of com.codingchili.Model.ElasticWriter 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 ElasticWriter

use of com.codingchili.Model.ElasticWriter in project parser-excel-elasticsearch by codingchili.

the class TestWriter method setUp.

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

Aggregations

ElasticWriter (com.codingchili.Model.ElasticWriter)2 Website (com.codingchili.Controller.Website)1 Before (org.junit.Before)1