| Modifier and Type | Field and Description |
|---|---|
| protected boolean | |
| protected String | |
| protected DeploymentOptions | |
| protected boolean | |
| protected int | |
| protected String | |
| protected String | |
| protected List | |
| private long | |
| private long | |
| private long | |
| protected String | |
| protected Watcher | |
| protected boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | afterConfigParsed(JsonObject config)
References Deprecated
JsonObject is deprecated or references (maybe indirectly) at least one deprecated element.
|
| protected void | |
| protected void | |
| protected void | |
| public void | close(Promise<Void>
the promise to signal when close has completed completion)Implements io. Close this resource, the |
| protected void | |
| protected JsonObject | getConfiguration()
References Deprecated
JsonObject is deprecated or references (maybe indirectly) at least one deprecated element.
|
| public boolean | |
| private void | |
| protected synchronized void | |
| public boolean | Returns: whether thecluster option or the ha option are enabled. Also true when a custom
launcher modifies the Vert.x options to set `clustered` to trueOverrides io.
|
| public void | run()
Overrides io. Implements io. Starts vert.x and deploy the verticle. |
| public void | setCluster(boolean
whether or not to start vert.x in clustered mode. cluster)Enables / disables the clustering. |
| public void | |
| public void | setHighAvailability(boolean
whether or not to enable the HA. ha)Enables / disables the high-availability. |
| public void | setInstances(int
the number of instances instances)Sets the number of instance of the verticle to create. |
| public void | |
| public void | |
| public void | setOnRedeployCommandOld(String
the on redeploy command command)
Deprecated
Use 'on-redeploy' instead. It will be removed in vert.x 3.3
Sets the user command executed during redeployment. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setUp(ExecutionContext
- the execution context context)Overrides io. Implements io. Validates the command line parameters. |
| public void | setWorker(boolean
true to deploy the verticle as worker, false otherwiseWhether or not the verticle is deployed as a worker verticle. |
| protected synchronized void | |
| protected void | startAsBackgroundApplication(Handler<Void>
an optional on-completion handler. If set it must be invoked at the end of this method. onCompletion)On-Deploy action invoked while redeploying. |
| protected synchronized void | stopBackgroundApplication(Handler<Void>
an optional on-completion handler. If set it must be invoked at the end of this method. onCompletion)On-Undeploy action invoked while redeploying. |
| cluster | back to summary |
|---|---|
| protected boolean cluster | |
| config | back to summary |
|---|---|
| protected String config | |
| deploymentOptions | back to summary |
|---|---|
| protected DeploymentOptions deploymentOptions | |
| ha | back to summary |
|---|---|
| protected boolean ha | |
| instances | back to summary |
|---|---|
| protected int instances | |
| mainVerticle | back to summary |
|---|---|
| protected String mainVerticle | |
| onRedeployCommand | back to summary |
|---|---|
| protected String onRedeployCommand | |
| redeploy | back to summary |
|---|---|
| protected List<String> redeploy | |
| redeployGracePeriod | back to summary |
|---|---|
| private long redeployGracePeriod | |
| redeployScanPeriod | back to summary |
|---|---|
| private long redeployScanPeriod | |
| redeployTerminationPeriod | back to summary |
|---|---|
| private long redeployTerminationPeriod | |
| vertxApplicationBackgroundId | back to summary |
|---|---|
| protected String vertxApplicationBackgroundId | |
| watcher | back to summary |
|---|---|
| protected Watcher watcher | |
| worker | back to summary |
|---|---|
| protected boolean worker | |
| RunCommand | back to summary |
|---|---|
| public RunCommand() | |
| afterConfigParsed | back to summary |
|---|---|
| protected void afterConfigParsed(JsonObject config)
References Deprecated
See corresponding docs for further information. | |
| afterStoppingVertx | back to summary |
|---|---|
| protected void afterStoppingVertx() | |
| beforeDeployingVerticle | back to summary |
|---|---|
| protected void beforeDeployingVerticle(DeploymentOptions deploymentOptions) | |
| beforeStoppingVertx | back to summary |
|---|---|
| protected void beforeStoppingVertx(Vertx vertx) | |
| close | back to summary |
|---|---|
| public void close(Promise<Void> completion) Implements io. Doc from io. Close this resource, the | |
| deploy | back to summary |
|---|---|
| protected void deploy() | |
| getConfiguration | back to summary |
|---|---|
| protected JsonObject getConfiguration()
References Deprecated
See corresponding docs for further information. | |
| getHA | back to summary |
|---|---|
| public boolean getHA() Overrides io.
| |
| handleDeployFailed | back to summary |
|---|---|
| private void handleDeployFailed(Throwable cause) | |
| initializeRedeployment | back to summary |
|---|---|
| protected synchronized void initializeRedeployment() Initializes the redeployment cycle. In "redeploy mode", the application is launched as background, and is
restarted after every change. A | |
| isClustered | back to summary |
|---|---|
| public boolean isClustered() Overrides io.
| |
| run | back to summary |
|---|---|
| public void run() Overrides io. Implements io. Starts vert.x and deploy the verticle.
| |
| setCluster | back to summary |
|---|---|
| public void setCluster(boolean cluster) Enables / disables the clustering.
| |
| setConfig | back to summary |
|---|---|
| public void setConfig(String configuration) The main verticle configuration, it can be a json file or a json string.
| |
| setHighAvailability | back to summary |
|---|---|
| public void setHighAvailability(boolean ha) Enables / disables the high-availability.
| |
| setInstances | back to summary |
|---|---|
| public void setInstances(int instances) Sets the number of instance of the verticle to create.
| |
| setMainVerticle | back to summary |
|---|---|
| public void setMainVerticle(String verticle) Sets the main verticle that is deployed.
| |
| setOnRedeployCommand | back to summary |
|---|---|
public void setOnRedeployCommand(String command)
| |
| setOnRedeployCommandOld | back to summary |
|---|---|
| public void setOnRedeployCommandOld(String command)
Deprecated Use 'on-redeploy' instead. It will be removed in vert.x 3.3 Sets the user command executed during redeployment.
| |
| setRedeploy | back to summary |
|---|---|
public void setRedeploy(List<String> redeploy)
| |
| setRedeployGracePeriod | back to summary |
|---|---|
public void setRedeployGracePeriod(long period)
| |
| setRedeployScanPeriod | back to summary |
|---|---|
public void setRedeployScanPeriod(long period)
| |
| setRedeployStopWaitingTime | back to summary |
|---|---|
public void setRedeployStopWaitingTime(long period)
| |
| setUp | back to summary |
|---|---|
| public void setUp(ExecutionContext context) throws CLIException Overrides io. Implements io. Validates the command line parameters.
| |
| setWorker | back to summary |
|---|---|
| public void setWorker(boolean worker) Whether or not the verticle is deployed as a worker verticle.
| |
| shutdownRedeployment | back to summary |
|---|---|
| protected synchronized void shutdownRedeployment() Stop the redeployment if started. | |
| startAsBackgroundApplication | back to summary |
|---|---|
| protected void startAsBackgroundApplication(Handler<Void> onCompletion) On-Deploy action invoked while redeploying. It just starts the application in background, copying all input parameters. In addition, the vertx application id is set. | |
| stopBackgroundApplication | back to summary |
|---|---|
| protected synchronized void stopBackgroundApplication(Handler<Void> onCompletion) On-Undeploy action invoked while redeploying. It just stops the application launched in background. | |