Package io.vertx.core

Examples of io.vertx.core.VertxOptions


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

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


  protected ClusterManager getClusterManager() {
    return null;
  }

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

      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

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

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

  }
View Full Code Here

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

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

    assertNotNull(vertx);
  }

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

    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

    }
  }

  @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

    await();
  }

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

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

  VertxImpl() {
    this(new VertxOptions());
  }
View Full Code Here

TOP

Related Classes of io.vertx.core.VertxOptions

Copyright © 2018 www.massapicom. 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.