public class KnotxCommand
extends io.vertx.core.impl.launcher.commands.BareCommand
clusterHost, clusterPort, clusterPublicHost, clusterPublicPort, DEPLOYMENT_OPTIONS_PROP_PREFIX, finalAction, haGroup, METRICS_OPTIONS_PROP_PREFIX, options, quorum, vertx, VERTX_OPTIONS_PROP_PREFIX, vertxOptions| Constructor and Description |
|---|
KnotxCommand() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterConfigParsed(io.vertx.core.json.JsonObject config) |
protected void |
afterStoppingVertx() |
protected void |
beforeDeployingVerticle(io.vertx.core.DeploymentOptions deploymentOptions) |
protected void |
beforeStoppingVertx(io.vertx.core.Vertx vertx) |
protected void |
deploy() |
protected io.vertx.core.json.JsonObject |
getConfiguration() |
boolean |
getHA() |
boolean |
isClustered() |
void |
run()
Starts vert.x and deploy the verticle.
|
void |
setCluster(boolean cluster)
Enables / disables the clustering.
|
void |
setConfig(String path)
The path to the Knot.x configuration loader json file
|
void |
setHighAvailability(boolean ha)
Enables / disables the high-availability.
|
void |
setUp(io.vertx.core.spi.launcher.ExecutionContext context)
Validates the command line parameters.
|
addShutdownHook, afterStartingVertx, beforeStartingVertx, configureFromSystemProperties, getDefaultAddress, getJsonFromFileOrString, getMetricsOptions, getMetricsOptions, getTerminationRunnable, run, setClusterHost, setClusterPort, setClusterPublicHost, setClusterPublicPort, setExecutionContext, setHAGroup, setQuorum, setVertxOptions, startVertx, vertxcreate, create, createClassloader, deploy, newInstance, setClasspathpublic void setHighAvailability(boolean ha)
ha - whether or not to enable the HA.public void setCluster(boolean cluster)
cluster - whether or not to start Knot.x in clustered mode.public void setConfig(String path)
path - the path to the confing loader jsonpublic void setUp(io.vertx.core.spi.launcher.ExecutionContext context)
throws io.vertx.core.cli.CLIException
setUp in interface io.vertx.core.spi.launcher.CommandsetUp in class io.vertx.core.spi.launcher.DefaultCommandcontext - - the execution contextio.vertx.core.cli.CLIException - - validation failedpublic boolean isClustered()
isClustered in class io.vertx.core.impl.launcher.commands.BareCommandcluster option or the ha option are enabled.public boolean getHA()
getHA in class io.vertx.core.impl.launcher.commands.BareCommandpublic void run()
run in interface io.vertx.core.spi.launcher.Commandrun in class io.vertx.core.impl.launcher.commands.BareCommandprotected void deploy()
protected io.vertx.core.json.JsonObject getConfiguration()
protected void beforeDeployingVerticle(io.vertx.core.DeploymentOptions deploymentOptions)
protected void afterConfigParsed(io.vertx.core.json.JsonObject config)
protected void beforeStoppingVertx(io.vertx.core.Vertx vertx)
protected void afterStoppingVertx()
Copyright © 2016–2020. All rights reserved.