public class io.vertx.core.impl.launcher.commands.BareCommand extends io.vertx.core.impl.launcher.commands.ClasspathHandler
{
public static final java.lang.String VERTX_OPTIONS_PROP_PREFIX;
public static final java.lang.String VERTX_EVENTBUS_PROP_PREFIX;
public static final java.lang.String DEPLOYMENT_OPTIONS_PROP_PREFIX;
public static final java.lang.String METRICS_OPTIONS_PROP_PREFIX;
protected io.vertx.core.Vertx vertx;
protected int clusterPort;
protected java.lang.String clusterHost;
protected int clusterPublicPort;
protected java.lang.String clusterPublicHost;
protected int quorum;
protected java.lang.String haGroup;
protected java.lang.String vertxOptions;
protected io.vertx.core.VertxOptions options;
protected java.lang.Runnable finalAction;
private static final java.lang.ThreadLocal configureFromSystemProperties;
public void <init>()
{
io.vertx.core.impl.launcher.commands.BareCommand v;
v := @this: io.vertx.core.impl.launcher.commands.BareCommand;
specialinvoke v.<io.vertx.core.impl.launcher.commands.ClasspathHandler: void <init>()>();
return;
}
public void setQuorum(int)
{
int v;
io.vertx.core.impl.launcher.commands.BareCommand v;
v := @this: io.vertx.core.impl.launcher.commands.BareCommand;
v := @parameter: int;
v.<io.vertx.core.impl.launcher.commands.BareCommand: int quorum> = v;
return;
}
public void setHAGroup(java.lang.String)
{
java.lang.String v;
io.vertx.core.impl.launcher.commands.BareCommand v;
v := @this: io.vertx.core.impl.launcher.commands.BareCommand;
v := @parameter: java.lang.String;
v.<io.vertx.core.impl.launcher.commands.BareCommand: java.lang.String haGroup> = v;
return;
}
public void setClusterPort(int)
{
int v;
io.vertx.core.impl.launcher.commands.BareCommand v;
v := @this: io.vertx.core.impl.launcher.commands.BareCommand;
v := @parameter: int;
v.<io.vertx.core.impl.launcher.commands.BareCommand: int clusterPort> = v;
return;
}
public void setClusterHost(java.lang.String)
{
java.lang.String v;
io.vertx.core.impl.launcher.commands.BareCommand v;
v := @this: io.vertx.core.impl.launcher.commands.BareCommand;
v := @parameter: java.lang.String;
v.<io.vertx.core.impl.launcher.commands.BareCommand: java.lang.String clusterHost> = v;
return;
}
public void setClusterPublicPort(int)
{
int v;
io.vertx.core.impl.launcher.commands.BareCommand v;
v := @this: io.vertx.core.impl.launcher.commands.BareCommand;
v := @parameter: int;
v.<io.vertx.core.impl.launcher.commands.BareCommand: int clusterPublicPort> = v;
return;
}
public void setClusterPublicHost(java.lang.String)
{
java.lang.String v;
io.vertx.core.impl.launcher.commands.BareCommand v;
v := @this: io.vertx.core.impl.launcher.commands.BareCommand;
v := @parameter: java.lang.String;
v.<io.vertx.core.impl.launcher.commands.BareCommand: java.lang.String clusterPublicHost> = v;
return;
}
public void setVertxOptions(java.lang.String)
{
io.vertx.core.impl.launcher.commands.BareCommand v;
java.lang.String v, v, v, v;
v := @this: io.vertx.core.impl.launcher.commands.BareCommand;
v := @parameter: java.lang.String;
if v == null goto label;
v = virtualinvoke v.<java.lang.String: java.lang.String trim()>();
v = virtualinvoke v.<java.lang.String: java.lang.String replaceAll(java.lang.String,java.lang.String)>("^\"|\"$", "");
v = virtualinvoke v.<java.lang.String: java.lang.String replaceAll(java.lang.String,java.lang.String)>("^\'|\'$", "");
v.<io.vertx.core.impl.launcher.commands.BareCommand: java.lang.String vertxOptions> = v;
goto label;
label:
v.<io.vertx.core.impl.launcher.commands.BareCommand: java.lang.String vertxOptions> = null;
label:
return;
}
public boolean isClustered()
{
io.vertx.core.impl.launcher.commands.BareCommand v;
v := @this: io.vertx.core.impl.launcher.commands.BareCommand;
return 1;
}
public boolean getHA()
{
io.vertx.core.impl.launcher.commands.BareCommand v;
v := @this: io.vertx.core.impl.launcher.commands.BareCommand;
return 1;
}
public void run()
{
io.vertx.core.impl.launcher.commands.BareCommand v;
v := @this: io.vertx.core.impl.launcher.commands.BareCommand;
virtualinvoke v.<io.vertx.core.impl.launcher.commands.BareCommand: void run(java.lang.Runnable)>(null);
return;
}
public void run(java.lang.Runnable)
{
io.vertx.core.Vertx v;
java.lang.Runnable v;
io.vertx.core.impl.launcher.commands.BareCommand v;
v := @this: io.vertx.core.impl.launcher.commands.BareCommand;
v := @parameter: java.lang.Runnable;
v.<io.vertx.core.impl.launcher.commands.BareCommand: java.lang.Runnable finalAction> = v;
v = virtualinvoke v.<io.vertx.core.impl.launcher.commands.BareCommand: io.vertx.core.Vertx startVertx()>();
v.<io.vertx.core.impl.launcher.commands.BareCommand: io.vertx.core.Vertx vertx> = v;
return;
}
protected io.vertx.core.Vertx startVertx()
{
java.lang.Thread v;
io.vertx.core.json.JsonObject v, v;
io.vertx.core.impl.logging.Logger v, v, v, v, v, v;
java.util.concurrent.CountDownLatch v;
java.lang.Throwable v, v;
io.vertx.core.eventbus.EventBusOptions v, v, v, v;
java.lang.String v, v, v, v, v, v, v, v, v, v, v;
java.lang.Runnable v;
boolean v, v, v, v, v, v;
java.lang.ThreadLocal v, v, v;
io.vertx.core.VertxOptions v, v, v, v, v, v, v, v, v, v;
io.vertx.core.metrics.MetricsOptions v, v;
java.util.concurrent.atomic.AtomicReference v;
io.vertx.core.impl.launcher.commands.BareCommand v;
int v, v, v, v, v, v, v, v, v, v, v, v;
io.vertx.core.impl.VertxBuilder v, v, v;
java.util.concurrent.TimeUnit v;
java.lang.InterruptedException v;
java.lang.Object v, v, v, v;
io.vertx.core.Handler v;
v := @this: io.vertx.core.impl.launcher.commands.BareCommand;
v = v.<io.vertx.core.impl.launcher.commands.BareCommand: java.lang.String vertxOptions>;
v = virtualinvoke v.<io.vertx.core.impl.launcher.commands.BareCommand: io.vertx.core.json.JsonObject getJsonFromFileOrString(java.lang.String,java.lang.String)>(v, "options");
if v != null goto label;
v = virtualinvoke v.<io.vertx.core.impl.launcher.commands.BareCommand: io.vertx.core.eventbus.EventBusOptions getEventBusOptions()>();
v = new io.vertx.core.impl.VertxBuilder;
specialinvoke v.<io.vertx.core.impl.VertxBuilder: void <init>()>();
v = v;
goto label;
label:
v = virtualinvoke v.<io.vertx.core.json.JsonObject: io.vertx.core.json.JsonObject getJsonObject(java.lang.String)>("eventBusOptions");
v = virtualinvoke v.<io.vertx.core.impl.launcher.commands.BareCommand: io.vertx.core.eventbus.EventBusOptions getEventBusOptions(io.vertx.core.json.JsonObject)>(v);
v = new io.vertx.core.impl.VertxBuilder;
specialinvoke v.<io.vertx.core.impl.VertxBuilder: void <init>(io.vertx.core.json.JsonObject)>(v);
v = v;
label:
v = virtualinvoke v.<io.vertx.core.impl.VertxBuilder: io.vertx.core.VertxOptions options()>();
v.<io.vertx.core.impl.launcher.commands.BareCommand: io.vertx.core.VertxOptions options> = v;
v = v.<io.vertx.core.impl.launcher.commands.BareCommand: io.vertx.core.VertxOptions options>;
virtualinvoke v.<io.vertx.core.VertxOptions: io.vertx.core.VertxOptions setEventBusOptions(io.vertx.core.eventbus.EventBusOptions)>(v);
v = v.<io.vertx.core.impl.launcher.commands.BareCommand: io.vertx.core.VertxOptions options>;
virtualinvoke v.<io.vertx.core.impl.launcher.commands.BareCommand: void beforeStartingVertx(io.vertx.core.VertxOptions)>(v);
v = <io.vertx.core.impl.launcher.commands.BareCommand: java.lang.ThreadLocal configureFromSystemProperties>;
v = v.<io.vertx.core.impl.launcher.commands.BareCommand: io.vertx.core.impl.logging.Logger log>;
virtualinvoke v.<java.lang.ThreadLocal: void set(java.lang.Object)>(v);
label:
v = v.<io.vertx.core.impl.launcher.commands.BareCommand: io.vertx.core.VertxOptions options>;
staticinvoke <io.vertx.core.impl.launcher.commands.BareCommand: void configureFromSystemProperties(java.lang.Object,java.lang.String)>(v, "vertx.options.");
v = v.<io.vertx.core.impl.launcher.commands.BareCommand: io.vertx.core.VertxOptions options>;
v = virtualinvoke v.<io.vertx.core.VertxOptions: io.vertx.core.metrics.MetricsOptions getMetricsOptions()>();
if v == null goto label;
v = v.<io.vertx.core.impl.launcher.commands.BareCommand: io.vertx.core.VertxOptions options>;
v = virtualinvoke v.<io.vertx.core.VertxOptions: io.vertx.core.metrics.MetricsOptions getMetricsOptions()>();
staticinvoke <io.vertx.core.impl.launcher.commands.BareCommand: void configureFromSystemProperties(java.lang.Object,java.lang.String)>(v, "vertx.metrics.options.");
label:
virtualinvoke v.<io.vertx.core.impl.VertxBuilder: io.vertx.core.impl.VertxBuilder init()>();
label:
v = <io.vertx.core.impl.launcher.commands.BareCommand: java.lang.ThreadLocal configureFromSystemProperties>;
virtualinvoke v.<java.lang.ThreadLocal: void set(java.lang.Object)>(null);
goto label;
label:
v := @caughtexception;
v = <io.vertx.core.impl.launcher.commands.BareCommand: java.lang.ThreadLocal configureFromSystemProperties>;
virtualinvoke v.<java.lang.ThreadLocal: void set(java.lang.Object)>(null);
throw v;
label:
v = virtualinvoke v.<io.vertx.core.impl.launcher.commands.BareCommand: boolean isClustered()>();
if v == 0 goto label;
v = v.<io.vertx.core.impl.launcher.commands.BareCommand: io.vertx.core.impl.logging.Logger log>;
interfaceinvoke v.<io.vertx.core.impl.logging.Logger: void info(java.lang.Object)>("Starting clustering...");
v = v.<io.vertx.core.impl.launcher.commands.BareCommand: io.vertx.core.VertxOptions options>;
v = virtualinvoke v.<io.vertx.core.VertxOptions: io.vertx.core.eventbus.EventBusOptions getEventBusOptions()>();
v = virtualinvoke v.<io.vertx.core.eventbus.EventBusOptions: java.lang.String getHost()>();
v = <io.vertx.core.eventbus.EventBusOptions: java.lang.String DEFAULT_CLUSTER_HOST>;
v = staticinvoke <java.util.Objects: boolean equals(java.lang.Object,java.lang.Object)>(v, v);
if v != 0 goto label;
v = virtualinvoke v.<io.vertx.core.eventbus.EventBusOptions: java.lang.String getHost()>();
v.<io.vertx.core.impl.launcher.commands.BareCommand: java.lang.String clusterHost> = v;
label:
v = virtualinvoke v.<io.vertx.core.eventbus.EventBusOptions: int getPort()>();
if v == 0 goto label;
v = virtualinvoke v.<io.vertx.core.eventbus.EventBusOptions: int getPort()>();
v.<io.vertx.core.impl.launcher.commands.BareCommand: int clusterPort> = v;
label:
v = virtualinvoke v.<io.vertx.core.eventbus.EventBusOptions: java.lang.String getClusterPublicHost()>();
v = <io.vertx.core.eventbus.EventBusOptions: java.lang.String DEFAULT_CLUSTER_PUBLIC_HOST>;
v = staticinvoke <java.util.Objects: boolean equals(java.lang.Object,java.lang.Object)>(v, v);
if v != 0 goto label;
v = virtualinvoke v.<io.vertx.core.eventbus.EventBusOptions: java.lang.String getClusterPublicHost()>();
v.<io.vertx.core.impl.launcher.commands.BareCommand: java.lang.String clusterPublicHost> = v;
label:
v = virtualinvoke v.<io.vertx.core.eventbus.EventBusOptions: int getClusterPublicPort()>();
v = (int) -1;
if v == v goto label;
v = virtualinvoke v.<io.vertx.core.eventbus.EventBusOptions: int getClusterPublicPort()>();
v.<io.vertx.core.impl.launcher.commands.BareCommand: int clusterPublicPort> = v;
label:
v = v.<io.vertx.core.impl.launcher.commands.BareCommand: java.lang.String clusterHost>;
v = virtualinvoke v.<io.vertx.core.eventbus.EventBusOptions: io.vertx.core.eventbus.EventBusOptions setHost(java.lang.String)>(v);
v = v.<io.vertx.core.impl.launcher.commands.BareCommand: int clusterPort>;
v = virtualinvoke v.<io.vertx.core.eventbus.EventBusOptions: io.vertx.core.eventbus.EventBusOptions setPort(int)>(v);
v = v.<io.vertx.core.impl.launcher.commands.BareCommand: java.lang.String clusterPublicHost>;
virtualinvoke v.<io.vertx.core.eventbus.EventBusOptions: io.vertx.core.eventbus.EventBusOptions setClusterPublicHost(java.lang.String)>(v);
v = v.<io.vertx.core.impl.launcher.commands.BareCommand: int clusterPublicPort>;
v = (int) -1;
if v == v goto label;
v = v.<io.vertx.core.impl.launcher.commands.BareCommand: int clusterPublicPort>;
virtualinvoke v.<io.vertx.core.eventbus.EventBusOptions: io.vertx.core.eventbus.EventBusOptions setClusterPublicPort(int)>(v);
label:
v = virtualinvoke v.<io.vertx.core.impl.launcher.commands.BareCommand: boolean getHA()>();
if v == 0 goto label;
v = v.<io.vertx.core.impl.launcher.commands.BareCommand: io.vertx.core.VertxOptions options>;
virtualinvoke v.<io.vertx.core.VertxOptions: io.vertx.core.VertxOptions setHAEnabled(boolean)>(1);
v = v.<io.vertx.core.impl.launcher.commands.BareCommand: java.lang.String haGroup>;
if v == null goto label;
v = v.<io.vertx.core.impl.launcher.commands.BareCommand: io.vertx.core.VertxOptions options>;
v = v.<io.vertx.core.impl.launcher.commands.BareCommand: java.lang.String haGroup>;
virtualinvoke v.<io.vertx.core.VertxOptions: io.vertx.core.VertxOptions setHAGroup(java.lang.String)>(v);
label:
v = v.<io.vertx.core.impl.launcher.commands.BareCommand: int quorum>;
v = (int) -1;
if v == v goto label;
v = v.<io.vertx.core.impl.launcher.commands.BareCommand: io.vertx.core.VertxOptions options>;
v = v.<io.vertx.core.impl.launcher.commands.BareCommand: int quorum>;
virtualinvoke v.<io.vertx.core.VertxOptions: io.vertx.core.VertxOptions setQuorumSize(int)>(v);
label:
v = new java.util.concurrent.CountDownLatch;
specialinvoke v.<java.util.concurrent.CountDownLatch: void <init>(int)>(1);
v = new java.util.concurrent.atomic.AtomicReference;
specialinvoke v.<java.util.concurrent.atomic.AtomicReference: void <init>()>();
v = staticinvoke <io.vertx.core.impl.launcher.commands.BareCommand$lambda_startVertx_0__1567: io.vertx.core.Handler bootstrap$(java.util.concurrent.atomic.AtomicReference,java.util.concurrent.CountDownLatch)>(v, v);
virtualinvoke v.<io.vertx.core.impl.launcher.commands.BareCommand: void create(io.vertx.core.impl.VertxBuilder,io.vertx.core.Handler)>(v, v);
label:
v = <java.util.concurrent.TimeUnit: java.util.concurrent.TimeUnit MINUTES>;
v = virtualinvoke v.<java.util.concurrent.CountDownLatch: boolean await(long,java.util.concurrent.TimeUnit)>(2L, v);
if v != 0 goto label;
v = v.<io.vertx.core.impl.launcher.commands.BareCommand: io.vertx.core.impl.logging.Logger log>;
interfaceinvoke v.<io.vertx.core.impl.logging.Logger: void error(java.lang.Object)>("Timed out in starting clustered Vert.x");
label:
return null;
label:
v := @caughtexception;
v = v.<io.vertx.core.impl.launcher.commands.BareCommand: io.vertx.core.impl.logging.Logger log>;
interfaceinvoke v.<io.vertx.core.impl.logging.Logger: void error(java.lang.Object)>("Thread interrupted in startup");
v = staticinvoke <java.lang.Thread: java.lang.Thread currentThread()>();
virtualinvoke v.<java.lang.Thread: void interrupt()>();
return null;
label:
v = virtualinvoke v.<java.util.concurrent.atomic.AtomicReference: java.lang.Object get()>();
v = interfaceinvoke v.<io.vertx.core.AsyncResult: boolean failed()>();
if v == 0 goto label;
v = v.<io.vertx.core.impl.launcher.commands.BareCommand: io.vertx.core.impl.logging.Logger log>;
v = virtualinvoke v.<java.util.concurrent.atomic.AtomicReference: java.lang.Object get()>();
v = interfaceinvoke v.<io.vertx.core.AsyncResult: java.lang.Throwable cause()>();
interfaceinvoke v.<io.vertx.core.impl.logging.Logger: void error(java.lang.Object,java.lang.Throwable)>("Failed to form cluster", v);
return null;
label:
v = virtualinvoke v.<java.util.concurrent.atomic.AtomicReference: java.lang.Object get()>();
v = interfaceinvoke v.<io.vertx.core.AsyncResult: java.lang.Object result()>();
goto label;
label:
v = virtualinvoke v.<io.vertx.core.impl.launcher.commands.BareCommand: io.vertx.core.Vertx create(io.vertx.core.impl.VertxBuilder)>(v);
label:
v = v.<io.vertx.core.impl.launcher.commands.BareCommand: io.vertx.core.impl.logging.Logger log>;
v = v.<io.vertx.core.impl.launcher.commands.BareCommand: java.lang.Runnable finalAction>;
staticinvoke <io.vertx.core.impl.launcher.commands.BareCommand: void addShutdownHook(io.vertx.core.Vertx,io.vertx.core.impl.logging.Logger,java.lang.Runnable)>(v, v, v);
virtualinvoke v.<io.vertx.core.impl.launcher.commands.BareCommand: void afterStartingVertx(io.vertx.core.Vertx)>(v);
return v;
catch java.lang.Throwable from label to label with label;
catch java.lang.InterruptedException from label to label with label;
}
protected io.vertx.core.json.JsonObject getJsonFromFileOrString(java.lang.String, java.lang.String)
{
java.lang.Throwable v;
io.vertx.core.json.DecodeException v, v;
java.util.Scanner v, v;
io.vertx.core.impl.launcher.commands.BareCommand v;
io.vertx.core.json.JsonObject v, v, v;
java.lang.String v, v, v, v, v;
io.vertx.core.impl.logging.Logger v, v;
java.io.File v;
java.io.FileNotFoundException v;
v := @this: io.vertx.core.impl.launcher.commands.BareCommand;
v := @parameter: java.lang.String;
v := @parameter: java.lang.String;
if v == null goto label;
label:
v = new java.util.Scanner;
v = new java.io.File;
specialinvoke v.<java.io.File: void <init>(java.lang.String)>(v);
specialinvoke v.<java.util.Scanner: void <init>(java.io.File,java.lang.String)>(v, "UTF-8");
v = virtualinvoke v.<java.util.Scanner: java.util.Scanner useDelimiter(java.lang.String)>("\\A");
label:
v = virtualinvoke v.<java.util.Scanner: java.lang.String next()>();
label:
v = new io.vertx.core.json.JsonObject;
specialinvoke v.<io.vertx.core.json.JsonObject: void <init>(java.lang.String)>(v);
v = v;
label:
goto label;
label:
v := @caughtexception;
v = v.<io.vertx.core.impl.launcher.commands.BareCommand: io.vertx.core.impl.logging.Logger log>;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("Configuration file \u does not contain a valid JSON object");
interfaceinvoke v.<io.vertx.core.impl.logging.Logger: void error(java.lang.Object)>(v);
label:
if v == null goto label;
virtualinvoke v.<java.util.Scanner: void close()>();
label:
return null;
label:
virtualinvoke v.<java.util.Scanner: void close()>();
goto label;
label:
v := @caughtexception;
throw v;
label:
v := @caughtexception;
label:
v = new io.vertx.core.json.JsonObject;
specialinvoke v.<io.vertx.core.json.JsonObject: void <init>(java.lang.String)>(v);
v = v;
label:
goto label;
label:
v := @caughtexception;
v = v.<io.vertx.core.impl.launcher.commands.BareCommand: io.vertx.core.impl.logging.Logger log>;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("The -\u argument does not point to an existing file or is not a valid JSON object");
interfaceinvoke v.<io.vertx.core.impl.logging.Logger: void error(java.lang.Object,java.lang.Throwable)>(v, v);
return null;
label:
v = null;
label:
return v;
catch io.vertx.core.json.DecodeException from label to label with label;
catch java.lang.Throwable from label to label with label;
catch java.io.FileNotFoundException from label to label with label;
catch java.io.FileNotFoundException from label to label with label;
catch io.vertx.core.json.DecodeException from label to label with label;
}
protected void afterStartingVertx(io.vertx.core.Vertx)
{
io.vertx.core.spi.launcher.ExecutionContext v;
io.vertx.core.impl.launcher.commands.BareCommand v;
io.vertx.core.Vertx v;
java.lang.Object v;
boolean v;
v := @this: io.vertx.core.impl.launcher.commands.BareCommand;
v := @parameter: io.vertx.core.Vertx;
v = v.<io.vertx.core.impl.launcher.commands.BareCommand: io.vertx.core.spi.launcher.ExecutionContext executionContext>;
v = virtualinvoke v.<io.vertx.core.spi.launcher.ExecutionContext: java.lang.Object main()>();
v = v instanceof io.vertx.core.impl.launcher.VertxLifecycleHooks;
if v == 0 goto label;
interfaceinvoke v.<io.vertx.core.impl.launcher.VertxLifecycleHooks: void afterStartingVertx(io.vertx.core.Vertx)>(v);
label:
return;
}
protected void beforeStartingVertx(io.vertx.core.VertxOptions)
{
io.vertx.core.spi.launcher.ExecutionContext v;
io.vertx.core.impl.launcher.commands.BareCommand v;
io.vertx.core.VertxOptions v;
java.lang.Object v;
boolean v;
v := @this: io.vertx.core.impl.launcher.commands.BareCommand;
v := @parameter: io.vertx.core.VertxOptions;
v = v.<io.vertx.core.impl.launcher.commands.BareCommand: io.vertx.core.spi.launcher.ExecutionContext executionContext>;
v = virtualinvoke v.<io.vertx.core.spi.launcher.ExecutionContext: java.lang.Object main()>();
v = v instanceof io.vertx.core.impl.launcher.VertxLifecycleHooks;
if v == 0 goto label;
interfaceinvoke v.<io.vertx.core.impl.launcher.VertxLifecycleHooks: void beforeStartingVertx(io.vertx.core.VertxOptions)>(v);
label:
return;
}
protected io.vertx.core.eventbus.EventBusOptions getEventBusOptions()
{
io.vertx.core.eventbus.EventBusOptions v;
io.vertx.core.impl.launcher.commands.BareCommand v;
v := @this: io.vertx.core.impl.launcher.commands.BareCommand;
v = virtualinvoke v.<io.vertx.core.impl.launcher.commands.BareCommand: io.vertx.core.eventbus.EventBusOptions getEventBusOptions(io.vertx.core.json.JsonObject)>(null);
return v;
}
protected io.vertx.core.eventbus.EventBusOptions getEventBusOptions(io.vertx.core.json.JsonObject)
{
io.vertx.core.impl.logging.Logger v;
java.lang.Throwable v;
java.lang.ThreadLocal v, v, v;
io.vertx.core.impl.launcher.commands.BareCommand v;
io.vertx.core.json.JsonObject v;
io.vertx.core.eventbus.EventBusOptions v;
v := @this: io.vertx.core.impl.launcher.commands.BareCommand;
v := @parameter: io.vertx.core.json.JsonObject;
if v != null goto label;
v = new io.vertx.core.eventbus.EventBusOptions;
specialinvoke v.<io.vertx.core.eventbus.EventBusOptions: void <init>()>();
goto label;
label:
v = new io.vertx.core.eventbus.EventBusOptions;
specialinvoke v.<io.vertx.core.eventbus.EventBusOptions: void <init>(io.vertx.core.json.JsonObject)>(v);
label:
v = <io.vertx.core.impl.launcher.commands.BareCommand: java.lang.ThreadLocal configureFromSystemProperties>;
v = v.<io.vertx.core.impl.launcher.commands.BareCommand: io.vertx.core.impl.logging.Logger log>;
virtualinvoke v.<java.lang.ThreadLocal: void set(java.lang.Object)>(v);
label:
staticinvoke <io.vertx.core.impl.launcher.commands.BareCommand: void configureFromSystemProperties(java.lang.Object,java.lang.String)>(v, "vertx.eventBus.options.");
label:
v = <io.vertx.core.impl.launcher.commands.BareCommand: java.lang.ThreadLocal configureFromSystemProperties>;
virtualinvoke v.<java.lang.ThreadLocal: void set(java.lang.Object)>(null);
goto label;
label:
v := @caughtexception;
v = <io.vertx.core.impl.launcher.commands.BareCommand: java.lang.ThreadLocal configureFromSystemProperties>;
virtualinvoke v.<java.lang.ThreadLocal: void set(java.lang.Object)>(null);
throw v;
label:
return v;
catch java.lang.Throwable from label to label with label;
}
public static void configureFromSystemProperties(java.lang.Object, java.lang.String)
{
io.vertx.core.VertxException v;
java.util.Enumeration v;
java.lang.reflect.Method v;
boolean v, v, v, v, v, v, v;
java.lang.ThreadLocal v;
java.lang.Exception v;
java.io.Serializable v;
java.lang.Object[] v;
int v;
java.lang.String v, v, v, v, v, v, v, v, v;
java.util.Properties v;
java.lang.Class[] v;
java.lang.IllegalArgumentException v;
java.lang.Class v, v, v, v, v, v, v;
java.lang.Object v, v, v;
v := @parameter: java.lang.Object;
v := @parameter: java.lang.String;
v = <io.vertx.core.impl.launcher.commands.BareCommand: java.lang.ThreadLocal configureFromSystemProperties>;
v = virtualinvoke v.<java.lang.ThreadLocal: java.lang.Object get()>();
if v != null goto label;
return;
label:
v = staticinvoke <java.lang.System: java.util.Properties getProperties()>();
v = virtualinvoke v.<java.util.Properties: java.util.Enumeration propertyNames()>();
label:
v = interfaceinvoke v.<java.util.Enumeration: boolean hasMoreElements()>();
if v == 0 goto label;
v = interfaceinvoke v.<java.util.Enumeration: java.lang.Object nextElement()>();
v = virtualinvoke v.<java.util.Properties: java.lang.String getProperty(java.lang.String)>(v);
v = virtualinvoke v.<java.lang.String: boolean startsWith(java.lang.String)>(v);
if v == 0 goto label;
v = virtualinvoke v.<java.lang.String: int length()>();
v = virtualinvoke v.<java.lang.String: java.lang.String substring(int)>(v);
v = virtualinvoke v.<java.lang.Object: java.lang.Class getClass()>();
v = staticinvoke <io.vertx.core.impl.launcher.commands.BareCommand: java.lang.reflect.Method getSetter(java.lang.String,java.lang.Class)>(v, v);
if v != null goto label;
v = virtualinvoke v.<java.lang.Object: java.lang.Class getClass()>();
v = virtualinvoke v.<java.lang.Class: java.lang.String getName()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String,java.lang.String)>(v, v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("No such property to configure on options: \u.\u0001");
interfaceinvoke v.<io.vertx.core.impl.logging.Logger: void warn(java.lang.Object)>(v);
goto label;
label:
v = virtualinvoke v.<java.lang.reflect.Method: java.lang.Class[] getParameterTypes()>();
v = v[0];
label:
v = virtualinvoke v.<java.lang.Object: boolean equals(java.lang.Object)>(class "Ljava/lang/String;");
if v == 0 goto label;
v = v;
goto label;
label:
v = <java.lang.Integer: java.lang.Class TYPE>;
v = virtualinvoke v.<java.lang.Object: boolean equals(java.lang.Object)>(v);
if v == 0 goto label;
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(java.lang.String)>(v);
goto label;
label:
v = <java.lang.Long: java.lang.Class TYPE>;
v = virtualinvoke v.<java.lang.Object: boolean equals(java.lang.Object)>(v);
if v == 0 goto label;
v = staticinvoke <java.lang.Long: java.lang.Long valueOf(java.lang.String)>(v);
goto label;
label:
v = <java.lang.Boolean: java.lang.Class TYPE>;
v = virtualinvoke v.<java.lang.Object: boolean equals(java.lang.Object)>(v);
if v == 0 goto label;
v = staticinvoke <java.lang.Boolean: java.lang.Boolean valueOf(java.lang.String)>(v);
goto label;
label:
v = virtualinvoke v.<java.lang.Class: boolean isEnum()>();
if v == 0 goto label;
v = staticinvoke <java.lang.Enum: java.lang.Enum valueOf(java.lang.Class,java.lang.String)>(v, v);
goto label;
label:
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.Class)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("Invalid type for setter: \u0001");
interfaceinvoke v.<io.vertx.core.impl.logging.Logger: void warn(java.lang.Object)>(v);
label:
goto label;
label:
v := @caughtexception;
v = virtualinvoke v.<java.lang.Object: java.lang.Class getClass()>();
v = virtualinvoke v.<java.lang.Class: java.lang.String getName()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.Class,java.lang.String,java.lang.String)>(v, v, v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("Invalid argtype:\u on options: \u.\u0001");
interfaceinvoke v.<io.vertx.core.impl.logging.Logger: void warn(java.lang.Object)>(v);
goto label;
label:
v = newarray (java.lang.Object)[1];
v[0] = v;
virtualinvoke v.<java.lang.reflect.Method: java.lang.Object invoke(java.lang.Object,java.lang.Object[])>(v, v);
label:
goto label;
label:
v := @caughtexception;
v = new io.vertx.core.VertxException;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.reflect.Method)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("Failed to invoke setter: \u0001");
specialinvoke v.<io.vertx.core.VertxException: void <init>(java.lang.String,java.lang.Throwable)>(v, v);
throw v;
label:
return;
catch java.lang.IllegalArgumentException from label to label with label;
catch java.lang.Exception from label to label with label;
}
private static java.lang.reflect.Method getSetter(java.lang.String, java.lang.Class)
{
java.lang.reflect.Method[] v, v;
int v, v, v, v;
java.lang.String v, v, v, v, v;
java.lang.reflect.Method v, v;
boolean v, v;
java.lang.Class v;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Class;
v = virtualinvoke v.<java.lang.Class: java.lang.reflect.Method[] getDeclaredMethods()>();
v = lengthof v;
v = 0;
label:
if v >= v goto label;
v = v[v];
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("set\u0001");
v = virtualinvoke v.<java.lang.reflect.Method: java.lang.String getName()>();
v = virtualinvoke v.<java.lang.String: boolean equalsIgnoreCase(java.lang.String)>(v);
if v == 0 goto label;
return v;
label:
v = v + 1;
goto label;
label:
v = virtualinvoke v.<java.lang.Class: java.lang.reflect.Method[] getMethods()>();
v = lengthof v;
v = 0;
label:
if v >= v goto label;
v = v[v];
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("set\u0001");
v = virtualinvoke v.<java.lang.reflect.Method: java.lang.String getName()>();
v = virtualinvoke v.<java.lang.String: boolean equalsIgnoreCase(java.lang.String)>(v);
if v == 0 goto label;
return v;
label:
v = v + 1;
goto label;
label:
return null;
}
protected static void addShutdownHook(io.vertx.core.Vertx, io.vertx.core.impl.logging.Logger, java.lang.Runnable)
{
io.vertx.core.impl.logging.Logger v;
java.lang.Runtime v;
java.lang.Thread v;
io.vertx.core.Vertx v;
java.lang.Runnable v, v;
v := @parameter: io.vertx.core.Vertx;
v := @parameter: io.vertx.core.impl.logging.Logger;
v := @parameter: java.lang.Runnable;
v = staticinvoke <java.lang.Runtime: java.lang.Runtime getRuntime()>();
v = new java.lang.Thread;
v = staticinvoke <io.vertx.core.impl.launcher.commands.BareCommand: java.lang.Runnable getTerminationRunnable(io.vertx.core.Vertx,io.vertx.core.impl.logging.Logger,java.lang.Runnable)>(v, v, v);
specialinvoke v.<java.lang.Thread: void <init>(java.lang.Runnable)>(v);
virtualinvoke v.<java.lang.Runtime: void addShutdownHook(java.lang.Thread)>(v);
return;
}
public static java.lang.Runnable getTerminationRunnable(io.vertx.core.Vertx, io.vertx.core.impl.logging.Logger, java.lang.Runnable)
{
io.vertx.core.impl.logging.Logger v;
io.vertx.core.Vertx v;
java.lang.Runnable v, v;
v := @parameter: io.vertx.core.Vertx;
v := @parameter: io.vertx.core.impl.logging.Logger;
v := @parameter: java.lang.Runnable;
v = staticinvoke <io.vertx.core.impl.launcher.commands.BareCommand$lambda_getTerminationRunnable_2__1568: java.lang.Runnable bootstrap$(io.vertx.core.Vertx,io.vertx.core.impl.logging.Logger,java.lang.Runnable)>(v, v, v);
return v;
}
protected java.lang.String getDefaultAddress()
{
java.lang.String v;
io.vertx.core.impl.launcher.commands.BareCommand v;
v := @this: io.vertx.core.impl.launcher.commands.BareCommand;
v = staticinvoke <io.vertx.core.eventbus.AddressHelper: java.lang.String defaultAddress()>();
return v;
}
public void setExecutionContext(io.vertx.core.spi.launcher.ExecutionContext)
{
io.vertx.core.spi.launcher.ExecutionContext v;
io.vertx.core.impl.launcher.commands.BareCommand v;
v := @this: io.vertx.core.impl.launcher.commands.BareCommand;
v := @parameter: io.vertx.core.spi.launcher.ExecutionContext;
v.<io.vertx.core.impl.launcher.commands.BareCommand: io.vertx.core.spi.launcher.ExecutionContext executionContext> = v;
return;
}
public synchronized io.vertx.core.Vertx vertx()
{
io.vertx.core.Vertx v;
io.vertx.core.impl.launcher.commands.BareCommand v;
v := @this: io.vertx.core.impl.launcher.commands.BareCommand;
v = v.<io.vertx.core.impl.launcher.commands.BareCommand: io.vertx.core.Vertx vertx>;
return v;
}
static void <clinit>()
{
java.lang.ThreadLocal v;
v = new java.lang.ThreadLocal;
specialinvoke v.<java.lang.ThreadLocal: void <init>()>();
<io.vertx.core.impl.launcher.commands.BareCommand: java.lang.ThreadLocal configureFromSystemProperties> = v;
return;
}
}