Launcher
instead@Deprecated public class Starter extends Object
main()
class that can be used to create Vert.x instance and deploy a verticle, or run a bare Vert.x instance.
This class is used by the vertx
command line utility to deploy verticles from the command line.
E.g.
vertx run myverticle.js
It can also be used as the main class of an executable jar so you can run verticles directly with:
java -jar myapp.jar
Modifier and Type | Field and Description |
---|---|
static String |
DEPLOYMENT_OPTIONS_PROP_PREFIX
Deprecated.
|
protected DeploymentOptions |
deploymentOptions
Deprecated.
|
static String |
METRICS_OPTIONS_PROP_PREFIX
Deprecated.
|
protected VertxOptions |
options
Deprecated.
|
static List<String> |
PROCESS_ARGS
Deprecated.
|
protected Vertx |
vertx
Deprecated.
|
static String |
VERTX_OPTIONS_PROP_PREFIX
Deprecated.
|
Constructor and Description |
---|
Starter()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
afterStartingVertx()
Deprecated.
Hook for sub classes of
Starter after the vertx instance is started. |
protected void |
beforeDeployingVerticle(DeploymentOptions deploymentOptions)
Deprecated.
Hook for sub classes of
Starter before the verticle is deployed. |
protected void |
beforeStartingVertx(VertxOptions options)
Deprecated.
Hook for sub classes of
Starter before the vertx instance is started. |
String |
getVersion()
Deprecated.
|
protected void |
handleDeployFailed()
Deprecated.
A deployment failure has been encountered.
|
static void |
main(String[] sargs)
Deprecated.
|
void |
run(io.vertx.core.impl.Args args,
String[] sargs)
Deprecated.
|
protected void |
run(String commandLine)
Deprecated.
|
protected void |
run(String[] sargs)
Deprecated.
|
static void |
runCommandLine(String commandLine)
Deprecated.
|
public static final String VERTX_OPTIONS_PROP_PREFIX
public static final String DEPLOYMENT_OPTIONS_PROP_PREFIX
public static final String METRICS_OPTIONS_PROP_PREFIX
protected Vertx vertx
protected VertxOptions options
protected DeploymentOptions deploymentOptions
public static void main(String[] sargs)
public static void runCommandLine(String commandLine)
protected void run(String commandLine)
protected void run(String[] sargs)
public void run(io.vertx.core.impl.Args args, String[] sargs)
protected void beforeStartingVertx(VertxOptions options)
Starter
before the vertx instance is started.protected void afterStartingVertx()
Starter
after the vertx instance is started.protected void beforeDeployingVerticle(DeploymentOptions deploymentOptions)
Starter
before the verticle is deployed.protected void handleDeployFailed()
public String getVersion()
Copyright © 2023 Eclipse. All rights reserved.