Examples of Vertx


Examples of org.vertx.java.core.Vertx

    server.listen(port);
  }

  public static void main(String[] args) throws Exception {
    Vertx vertx = new DefaultVertx();
    MessageServer app = new MessageServer(vertx);
    app.start();
    Thread.sleep(Long.MAX_VALUE);
  }
View Full Code Here

Examples of org.vertx.java.core.Vertx

    server.listen(port);
  }

  public static void main(String[] args) throws Exception {
    Vertx vertx = new DefaultVertx();
    AuthorizationAndHandshaking app = new AuthorizationAndHandshaking(vertx);
    app.start();
    Thread.sleep(Long.MAX_VALUE);

  }
View Full Code Here

Examples of org.vertx.java.core.Vertx

    server.listen(port);
  }

  public static void main(String[] args) throws Exception {
    Vertx vertx = new DefaultVertx();
    SendingAndReceivingEvents app = new SendingAndReceivingEvents(vertx);
    app.start();
    Thread.sleep(Long.MAX_VALUE);
  }
View Full Code Here

Examples of org.vertx.java.core.Vertx

*/
public class SocketIOServerTest {

  public static void main(String[] args) throws InterruptedException {
    int port = 9090;
    final Vertx vertx = new DefaultVertx();
    HttpServer httpServer = vertx.createHttpServer();

    SocketIOServer io = new DefaultSocketIOServer(vertx, httpServer);
    io.configure(new Configurer() {
      public void configure(JsonObject config) {
        config.putString("transports", "websocket,flashsocket,xhr-polling,jsonp-polling,htmlfile");
View Full Code Here

Examples of org.vertx.java.core.Vertx

    server.listen(port);
  }

  public static void main(String[] args) throws Exception {
    Vertx vertx = new DefaultVertx();
    Issue5 app = new Issue5(vertx);
    app.start();
    Thread.sleep(Long.MAX_VALUE);
  }
View Full Code Here

Examples of org.vertx.java.core.Vertx

    server.listen(port);
  }

  public static void main(String[] args) throws Exception {
    Vertx vertx = new DefaultVertx();
    StoringDataAssociatedToClient app = new StoringDataAssociatedToClient(vertx);
    app.start();
    Thread.sleep(Long.MAX_VALUE);
  }
View Full Code Here

Examples of org.vertx.java.core.Vertx

        }

        if (instanceCache.containsKey(instanceKey)) {
            return instanceCache.get(instanceKey);
        } else {
            Vertx vertx = createVertx(endpointConfiguration);
            instanceCache.put(instanceKey, vertx);
            return vertx;
        }
    }
View Full Code Here

Examples of org.vertx.java.core.Vertx

        Assert.assertEquals(VertxServiceImpl.class.getName(), vertxService.getClass().getSuperclass().getName());
    }
   
    @Test
    public void VertxExistsTest() {
        final Vertx vertx = vertxService.getVertx();
        Assert.assertNotNull(vertx);
    }
View Full Code Here

Examples of org.vertx.java.core.Vertx

    }

    private void updateConfiguration(Map<String, ?> configuration) throws Exception {
        configurer.configure(configuration, this);

        Vertx vertx = getVertx();
        handler = new HttpGatewayHandler(vertx, this);
        websocketHandler.setPathPrefix(websocketGatewayPrefix);
        server = new HttpGatewayServer(vertx, handler, enableWebSocketGateway ? websocketHandler : null, port);
        server.init();
    }
View Full Code Here

Examples of org.vertx.java.core.Vertx

        // mq-create / mq-client profiles so that we only listen to a subset of the available brokers here?

        ServiceMap serviceMap = new ServiceMap();

        VertxService vertxService = getVertxService();
        Vertx vertx = vertxService.getVertx();
        CuratorFramework curator = getCurator();

        LoadBalancer pathLoadBalancer = LoadBalancers.createLoadBalancer(loadBalancerType, stickyLoadBalancerCacheSize);
        LoadBalancer serviceLoadBalancer = LoadBalancers.createLoadBalancer(loadBalancerType, stickyLoadBalancerCacheSize);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.