Examples of VertxOptions


Examples of io.vertx.core.VertxOptions

    vinit();
    vertx = Vertx.vertx(getOptions());
  }

  protected VertxOptions getOptions() {
    return new VertxOptions();
  }
View Full Code Here

Examples of io.vertx.core.VertxOptions

  protected ClusterManager getClusterManager() {
    return null;
  }

  protected void startNodes(int numNodes) {
    startNodes(numNodes, new VertxOptions());
  }
View Full Code Here

Examples of io.vertx.core.VertxOptions

      starter.run(args);
    });
    t.start();
    waitUntil(() -> TestVerticle.instanceCount.get() == 1);

    VertxOptions opts = starter.getVertxOptions();

    assertEquals(123, opts.getEventLoopPoolSize(), 0);
    assertEquals(123767667l, opts.getMaxEventLoopExecuteTime());
    assertEquals(true, opts.isMetricsEnabled());
    assertEquals("somegroup", opts.getHAGroup());

    DeploymentOptions depOptions = starter.getDeploymentOptions();

    assertEquals(612536253, depOptions.getRedeployScanPeriod());
  }
View Full Code Here

Examples of io.vertx.core.VertxOptions

      starter.run(args);
    });
    t.start();
    waitUntil(() -> TestVerticle.instanceCount.get() == 1);

    VertxOptions opts = starter.getVertxOptions();
    assertEquals(new VertxOptions(), opts);

  }
View Full Code Here

Examples of io.vertx.core.VertxOptions

      starter.run(args);
    });
    t.start();
    waitUntil(() -> TestVerticle.instanceCount.get() == 1);

    VertxOptions opts = starter.getVertxOptions();
    assertEquals(new VertxOptions(), opts);
  }
View Full Code Here

Examples of io.vertx.core.VertxOptions

    assertNotNull(vertx);
  }

  @Test
  public void testCreateVertxWithOptions() {
    VertxOptions options = new VertxOptions();
    Vertx vertx = Vertx.vertx(options);
    assertNotNull(vertx);
  }
View Full Code Here

Examples of io.vertx.core.VertxOptions

    assertNotNull(vertx);
  }

  @Test
  public void testFailCreateClusteredVertxSynchronously() {
    VertxOptions options = new VertxOptions();
    options.setClustered(true);
    try {
      Vertx.vertx(options);
      fail("Should throw exception");
    } catch (IllegalArgumentException e) {
      // OK
View Full Code Here

Examples of io.vertx.core.VertxOptions

    }
  }

  @Test
  public void testCreateClusteredVertxAsync() {
    VertxOptions options = new VertxOptions();
    options.setClustered(true);
    Vertx.vertxAsync(options, ar -> {
      assertTrue(ar.succeeded());
      assertNotNull(ar.result());
      testComplete();
    });
View Full Code Here

Examples of io.vertx.core.VertxOptions

    await();
  }

  @Test
  public void testCreateNonClusteredVertxAsync() {
    VertxOptions options = new VertxOptions();
    Vertx.vertxAsync(options, ar -> {
      assertTrue(ar.succeeded());
      assertNotNull(ar.result());
      testComplete();
    });
View Full Code Here

Examples of io.vertx.core.VertxOptions

  private EventBusImpl eventBus;
  private HAManager haManager;
  private boolean closed;

  VertxImpl() {
    this(new VertxOptions());
  }
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.