public static Vertx init(String name, VertxOptions vertxOptions) { if (vertxOptions == null) { vertxOptions = new VertxOptions(); } boolean isDebug = ManagementFactory.getRuntimeMXBean().getInputArguments().toString().contains("jdwp"); if (isDebug) { vertxOptions.setBlockedThreadCheckInterval(BLOCKED_THREAD_CHECK_INTERVAL); LOGGER.info("in debug mode, disable blocked thread check."); } configureVertxFileCaching(); return new VertxImplEx(name, vertxOptions); }
protected void printVertxMetrics(MeasurementTree tree, StringBuilder sb) { appendLine(sb, "vertx:"); appendLine(sb, " instances:"); appendLine(sb, " name eventLoopContext-created"); for (Entry<String, VertxImplEx> entry : VertxUtils.getVertxMap().entrySet()) { appendLine(sb, " %-10s %d", entry.getKey(), entry.getValue().getEventLoopContextCreatedCount()); } ClientEndpointsLogPublisher client = new ClientEndpointsLogPublisher(tree, sb, VertxMetersInitializer.ENDPOINTS_CLINET); ServerEndpointsLogPublisher server = new ServerEndpointsLogPublisher(tree, sb, VertxMetersInitializer.ENDPOINTS_SERVER); if (client.isExists() || server.isExists()) { appendLine(sb, " transport:"); if (client.isExists()) { client.print(DynamicPropertyFactory .getInstance() .getBooleanProperty(ENDPOINTS_CLIENT_DETAIL_ENABLED, false) .get()); } if (server.isExists()) { server.print(true); } } }
protected void printVertxMetrics(MeasurementTree tree, StringBuilder sb) { appendLine(sb, "vertx:"); appendLine(sb, " instances:"); appendLine(sb, " name eventLoopContext-created"); for (Entry<String, VertxImplEx> entry : VertxUtils.getVertxMap().entrySet()) { appendLine(sb, " %-10s %d", entry.getKey(), entry.getValue().getEventLoopContextCreatedCount()); } ClientEndpointsLogPublisher client = new ClientEndpointsLogPublisher(tree, sb, VertxMetersInitializer.ENDPOINTS_CLINET); ServerEndpointsLogPublisher server = new ServerEndpointsLogPublisher(tree, sb, VertxMetersInitializer.ENDPOINTS_SERVER); if (client.isExists() || server.isExists()) { appendLine(sb, " transport:"); if (client.isExists()) { client.print(DynamicPropertyFactory .getInstance() .getBooleanProperty(ENDPOINTS_CLIENT_DETAIL_ENABLED, false) .get()); } if (server.isExists()) { server.print(true); } } }
public static Vertx init(String name, VertxOptions vertxOptions) { if (vertxOptions == null) { vertxOptions = new VertxOptions(); } boolean isDebug = ManagementFactory.getRuntimeMXBean().getInputArguments().toString().contains("jdwp"); if (isDebug) { vertxOptions.setBlockedThreadCheckInterval(BLOCKED_THREAD_CHECK_INTERVAL); LOGGER.info("in debug mode, disable blocked thread check."); } configureVertxFileCaching(); return new VertxImplEx(name, vertxOptions); }
public static Vertx init(String name, VertxOptions vertxOptions) { if (vertxOptions == null) { vertxOptions = new VertxOptions(); } boolean isDebug = ManagementFactory.getRuntimeMXBean().getInputArguments().toString().indexOf("jdwp") >= 0; if (isDebug) { vertxOptions.setBlockedThreadCheckInterval(BLOCKED_THREAD_CHECK_INTERVAL); LOGGER.info("in debug mode, disable blocked thread check."); } configureVertxFileCaching(); return new VertxImplEx(name, vertxOptions); }