Table of Contents

Vert.x - Launcher class

About

The Vertx launcher is one of the two way to start an application

It is a launcher class that wraps the management of a vertx instance and the deployment of a main verticle.

It can be used:

This class is used as the main class and wrapped by:

Ide Configuration

Idea Run

For instance to run a verticle in IDEA, you would configure this run.

Vertx Launcher Idea Run

Implementation

docs/apidocs/io/vertx/core/Launcher.html can be seen as a standard version of a main class

Custom

You may extends the launcher to execute code at some lifecycle endpoints (before/after creating a vertx, before/after verticle deployment)

See Vertx - Launcher extension (Custom launcher)

Command

Commands

Run

Vert.x - The launcher run command

Start

java -jar my-verticle-fat.jar start --vertx-id=my-app-name

where:

Stop

java -jar my-verticle-fat.jar stop my-app-name

List

java -jar my-verticle-fat.jar list