| Modifier and Type | Field and Description |
|---|---|
| protected String | |
| protected int | |
| protected String | |
| protected int | |
| private static final ThreadLocal | |
| public static final String | |
| protected Runnable | |
| protected String | |
| public static final String | |
| protected VertxOptions | |
| protected int | |
| protected Vertx | |
| public static final String | |
| public static final String | |
| protected String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected static void | addShutdownHook(Vertx
the vert.x instance, must not be vertx, Logger nullthe log, must not be log, Runnable nullthe action, may be action)nullRegisters a shutdown hook closing the given vert.x instance when the JVM is terminating. |
| protected void | |
| protected void | |
| public static void | configureFromSystemProperties(Object options, String prefix)
This is used as workaround to retain the existing behavior of the Vert.x CLI and won't be executed in other situation. |
| protected VertxBuilder | createVertxBuilder(JsonObject config)
References Deprecated
JsonObject is deprecated or references (maybe indirectly) at least one deprecated element.
|
| protected String | Returns: Get default interface to use since the user hasn't specified one.
Deprecated
as of 4.0, this method is no longer used.
|
| protected EventBusOptions | |
| protected EventBusOptions | Returns: the event bus options.
References Deprecated
JsonObject is deprecated or references (maybe indirectly) at least one deprecated element.
|
| public boolean | Returns: whether or not the vert.x instance should be launched in high-availability mode. This implementation returnstrue.
|
| protected JsonObject | getJsonFromFileOrString(String jsonFileOrString, String argName)
References Deprecated
JsonObject is deprecated or references (maybe indirectly) at least one deprecated element.
|
| private static Method | |
| public static Runnable | getTerminationRunnable(Vertx
the vert.x instance, must not be vertx, Logger nullthe log, must not be log, Runnable nullthe action, may be action)nullGets the termination runnable used to close the Vert.x instance. |
| public boolean | Returns: whether or not the vert.x instance should be clustered. This implementation returnstrue.
|
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setExecutionContext(ExecutionContext
the context to inject for testing. context)For testing purpose only. |
| public void | |
| public void | |
| public void | setVertxOptions(String
the configuration vertxOptions)The Vert.x options, it can be a json file or a json string. |
| protected Vertx | |
| public synchronized Vertx |
| clusterHost | back to summary |
|---|---|
| protected String clusterHost | |
| clusterPort | back to summary |
|---|---|
| protected int clusterPort | |
| clusterPublicHost | back to summary |
|---|---|
| protected String clusterPublicHost | |
| clusterPublicPort | back to summary |
|---|---|
| protected int clusterPublicPort | |
| configureFromSystemProperties | back to summary |
|---|---|
| private static final ThreadLocal<Logger> configureFromSystemProperties | |
| DEPLOYMENT_OPTIONS_PROP_PREFIX | back to summary |
|---|---|
| public static final String DEPLOYMENT_OPTIONS_PROP_PREFIX | |
| finalAction | back to summary |
|---|---|
| protected Runnable finalAction | |
| haGroup | back to summary |
|---|---|
| protected String haGroup | |
| METRICS_OPTIONS_PROP_PREFIX | back to summary |
|---|---|
| public static final String METRICS_OPTIONS_PROP_PREFIX | |
| options | back to summary |
|---|---|
| protected VertxOptions options | |
| quorum | back to summary |
|---|---|
| protected int quorum | |
| vertx | back to summary |
|---|---|
| protected Vertx vertx | |
| VERTX_EVENTBUS_PROP_PREFIX | back to summary |
|---|---|
| public static final String VERTX_EVENTBUS_PROP_PREFIX | |
| VERTX_OPTIONS_PROP_PREFIX | back to summary |
|---|---|
| public static final String VERTX_OPTIONS_PROP_PREFIX | |
| vertxOptions | back to summary |
|---|---|
| protected String vertxOptions | |
| BareCommand | back to summary |
|---|---|
| public BareCommand() | |
| addShutdownHook | back to summary |
|---|---|
| protected static void addShutdownHook(Vertx vertx, Logger log, Runnable action) Registers a shutdown hook closing the given vert.x instance when the JVM is terminating.
Optionally, an action can be executed after the termination of the | |
| afterStartingVertx | back to summary |
|---|---|
| protected void afterStartingVertx(Vertx instance) Hook called after starting vert.x.
| |
| beforeStartingVertx | back to summary |
|---|---|
| protected void beforeStartingVertx(VertxOptions options) Hook called before starting vert.x.
| |
| configureFromSystemProperties | back to summary |
|---|---|
| public static void configureFromSystemProperties(Object options, String prefix) This is used as workaround to retain the existing behavior of the Vert.x CLI and won't be executed in other situation. | |
| createVertxBuilder | back to summary |
|---|---|
| protected VertxBuilder createVertxBuilder(JsonObject config)
References Deprecated
See corresponding docs for further information. | |
| getDefaultAddress | back to summary |
|---|---|
| protected String getDefaultAddress()
Deprecated as of 4.0, this method is no longer used.
| |
| getEventBusOptions | back to summary |
|---|---|
protected EventBusOptions getEventBusOptions()
| |
| getEventBusOptions | back to summary |
|---|---|
| protected EventBusOptions getEventBusOptions(JsonObject jsonObject)
References Deprecated
See corresponding docs for further information.
| |
| getHA | back to summary |
|---|---|
public boolean getHA()
| |
| getJsonFromFileOrString | back to summary |
|---|---|
| protected JsonObject getJsonFromFileOrString(String jsonFileOrString, String argName)
References Deprecated
See corresponding docs for further information. | |
| getSetter | back to summary |
|---|---|
| private static Method getSetter(String fieldName, Class<?> clazz) | |
| getTerminationRunnable | back to summary |
|---|---|
| public static Runnable getTerminationRunnable(Vertx vertx, Logger log, Runnable action) Gets the termination runnable used to close the Vert.x instance. | |
| isClustered | back to summary |
|---|---|
public boolean isClustered()
| |
| run | back to summary |
|---|---|
| public void run() Implements io. Starts the vert.x instance.
| |
| run | back to summary |
|---|---|
| public void run(Runnable action) Starts the vert.x instance and sets the final action (called when vert.x is closed).
| |
| setClusterHost | back to summary |
|---|---|
| public void setClusterHost(String host) Sets the cluster host.
| |
| setClusterPort | back to summary |
|---|---|
| public void setClusterPort(int port) Sets the cluster port.
| |
| setClusterPublicHost | back to summary |
|---|---|
| public void setClusterPublicHost(String host) Sets the cluster public host.
| |
| setClusterPublicPort | back to summary |
|---|---|
| public void setClusterPublicPort(int port) Sets the cluster public port.
| |
| setExecutionContext | back to summary |
|---|---|
| public void setExecutionContext(ExecutionContext context) For testing purpose only.
| |
| setHAGroup | back to summary |
|---|---|
| public void setHAGroup(String group) Sets the HA group name.
| |
| setQuorum | back to summary |
|---|---|
| public void setQuorum(int quorum) Sets the quorum option.
| |
| setVertxOptions | back to summary |
|---|---|
| public void setVertxOptions(String vertxOptions) The Vert.x options, it can be a json file or a json string.
| |
| startVertx | back to summary |
|---|---|
| protected Vertx startVertx() Starts the vert.x instance.
| |
| vertx | back to summary |
|---|---|
public synchronized Vertx vertx()
| |