Package org.vertx.java.core.impl

Examples of org.vertx.java.core.impl.VertxInternal


   *
   * @param vertx The current Vert.x instance.
   * @return The Vert.x Hazelcast instance if Vert.x is clustered.
   */
  static HazelcastInstance getHazelcastInstance(Vertx vertx) {
    VertxInternal vertxInternal = (VertxInternal) vertx;
    ClusterManager clusterManager = vertxInternal.clusterManager();
    if (clusterManager != null) {
      Class<?> clazz = clusterManager.getClass();
      Field field;
      try {
        field = clazz.getDeclaredField("hazelcast");
View Full Code Here


    }

    protected void register(Vertx vertx, Container container, MetricRegistry registry) {

        if (vertx instanceof VertxInternal) {
            VertxInternal vertxInternal = (VertxInternal) vertx;
            int count = 0;

            for (EventExecutor ee : vertxInternal.getEventLoopGroup()) {
                if (ee instanceof SingleThreadEventExecutor) {
                    final SingleThreadEventExecutor executor = (SingleThreadEventExecutor) ee;
                    try {
                        registry.register(
                                name(Utils.DEFAULT_METRIC_PREFIX, this.getClass().getSimpleName(), "executor-" + count++, "pendingTasks"),
View Full Code Here

    }

    protected void register(Vertx vertx, Container container, MetricRegistry registry) {

        if (vertx instanceof VertxInternal) {
            VertxInternal vertxInternal = (VertxInternal) vertx;
            ExecutorService executorService = vertxInternal.getBackgroundPool();

            if (executorService instanceof ThreadPoolExecutor) {
                final ThreadPoolExecutor executor = (ThreadPoolExecutor) executorService;
                try {
                    registry.register(
View Full Code Here

        dash.runVertx();
        dash.join();
    }

    public DropwizardDashboardStarter() throws Exception {
        VertxInternal vertx = new DefaultVertx();
        manager = new VerticleManager(vertx, null);
    }
View Full Code Here

TOP

Related Classes of org.vertx.java.core.impl.VertxInternal

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.