2017-03-19 22:28:34 +05:30
|
|
|
package com.baeldung;
|
|
|
|
|
|
|
|
import org.slf4j.Logger;
|
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
|
|
|
|
import io.vertx.core.AbstractVerticle;
|
|
|
|
import io.vertx.core.Future;
|
|
|
|
import io.vertx.core.Vertx;
|
|
|
|
|
|
|
|
public class HelloVerticle extends AbstractVerticle {
|
|
|
|
private static final Logger LOGGER = LoggerFactory.getLogger(HelloVerticle.class);
|
|
|
|
|
2017-03-20 15:50:43 +00:00
|
|
|
public static void main(String[] args) {
|
|
|
|
Vertx vertx = Vertx.vertx();
|
|
|
|
vertx.deployVerticle(new HelloVerticle());
|
|
|
|
}
|
|
|
|
|
2017-03-19 22:28:34 +05:30
|
|
|
@Override
|
|
|
|
public void start(Future<Void> future) {
|
|
|
|
LOGGER.info("Welcome to Vertx");
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void stop() {
|
|
|
|
LOGGER.info("Shutting down application");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|