public class Starter extends Object
main()
class that can be used to deploy verticles.
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 |
protected DeploymentOptions |
deploymentOptions |
static String |
METRICS_OPTIONS_PROP_PREFIX |
protected VertxOptions |
options |
static List<String> |
PROCESS_ARGS |
protected Vertx |
vertx |
static String |
VERTX_OPTIONS_PROP_PREFIX |
Constructor and Description |
---|
Starter() |
Modifier and Type | Method and Description |
---|---|
protected void |
afterStartingVertx()
Hook for sub classes of
Starter after the vertx instance is started. |
protected void |
beforeDeployingVerticle(DeploymentOptions deploymentOptions)
Hook for sub classes of
Starter before the verticle is deployed. |
protected void |
beforeStartingVertx(VertxOptions options)
Hook for sub classes of
Starter before the vertx instance is started. |
void |
block() |
String |
getVersion() |
static void |
main(String[] sargs) |
void |
run(Args args,
String[] sargs) |
protected void |
run(String commandLine) |
protected void |
run(String[] sargs) |
static void |
runCommandLine(String commandLine) |
void |
unblock() |
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 block()
public void unblock()
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.public String getVersion()
Copyright © 2015. All Rights Reserved.