package org.mmog2048.verticles;

import io.vertx.core.AbstractVerticle;
import io.vertx.core.Future;
import redis.embedded.RedisServer;

import java.io.IOException;

public class EmbeddedRedis extends AbstractVerticle {
    private RedisServer server;

    @Override
    public void start(Future<Void> future) {
        try {
            server = new RedisServer(MainVerticle.REDIS_PORT);
            server.start(); // seems to be blocking
            future.complete();
        } catch (IOException ioe) {
            future.fail(ioe);
        }
    }

    @Override
    public void stop(Future<Void> future) {
        if (server != null) {
            server.stop();
            server = null;
        }
        future.complete();
    }
}

@@ -94,16 +94,97 @@
 Future;%0A
+import io.vertx.core.logging.Logger;%0Aimport io.vertx.core.logging.LoggerFactory;%0A
 import r
@@ -294,16 +294,100 @@
 ticle %7B%0A
+    private static final Logger log = LoggerFactory.getLogger(EmbeddedRedis.class);%0A
     priv
@@ -599,16 +599,85 @@
 locking%0A
+            log.info(%22Redis started on %22 + MainVerticle.REDIS_PORT);%0A
         
@@ -731,24 +731,69 @@
 tion ioe) %7B%0A
+            log.error(ioe.getMessage(),ioe);%0A
             

add logging to track Redis startup issues