List of usage examples for io.vertx.core Vertx deployVerticle
Future<String> deployVerticle(String name);
From source file:com.camelcookbook.runtimes.vertx.Application.java
License:Apache License
public static void main(String[] args) { Vertx vertx = Vertx.vertx(); vertx.deployVerticle(new CamelVerticle()); vertx.deployVerticle(new HttpVerticle()); }
From source file:com.company.vertxstarter.Bootstrap.java
public static void main(String[] args) { Vertx vertx = Vertx.vertx(); vertx.deployVerticle(new MainVerticle()); Runtime.getRuntime().addShutdownHook(new Thread() { @Override//from w w w . j a v a 2 s. com public void run() { vertx.close(); } }); }
From source file:com.example.HelloWorldServer.java
License:Apache License
public static void main(final String[] args) { Vertx vertx = Vertx.vertx(); vertx.deployVerticle(HelloWorldVerticle.class.getName()); }
From source file:com.mycompany.aktakurvanmavenbackend.VerticleStarter.java
public static void main(String[] args) { Vertx vertx = Vertx.vertx(); vertx.deployVerticle(new UserService()); }
From source file:com.mycompany.sharedwhiteboard.MainProg.java
public static void main(String[] args) { Vertx vertx = Vertx.vertx(); vertx.deployVerticle(new Server()); }
From source file:com.redhat.developers.msa.aloha.AlohaApplication.java
License:Apache License
public static void main(String[] args) { Vertx vertx = Vertx.vertx(); vertx.deployVerticle(new AlohaVerticle()); }
From source file:com.shampan.db.services.ServerExecutor.java
public static void main(String[] args) { //run Sample java web server VertxOptions options = new VertxOptions(); //server execution time options.setMaxEventLoopExecuteTime(Long.MAX_VALUE); Vertx serviceAPIVerticle = Vertx.vertx(options); serviceAPIVerticle.deployVerticle(new ServerExecutor()); }
From source file:com.test.bug.MainVertx.java
public static void main(String[] args) { Vertx vertx = Vertx.vertx(); vertx.deployVerticle(new ServerVerticle()); }
From source file:com.test.bugnpe.MainVertx.java
public static void main(String[] args) { log.info("Start with cluster!"); VertxOptions options = new VertxOptions(); options.setClustered(true);//from w ww . j a va 2 s .c o m Vertx.clusteredVertx(options, vertxHandler -> { if (vertxHandler.succeeded()) { log.info("start deploying verticles...."); Vertx vertx = vertxHandler.result(); vertx.deployVerticle(new ServerVerticle()); } }); }
From source file:de.elsibay.EbbTicketShowcase.java
License:Open Source License
public static void main(String[] args) { VertxOptions vo = new VertxOptions(); vo.setBlockedThreadCheckInterval(1000 * 60 * 2); Vertx vertx = Vertx.vertx(vo); vertx.deployVerticle(EbbTicketShowcase.class.getName()); }