Top Description Fields Constructors Methods
io.vertx.core.impl.launcher.commands

public Class ListCommand

extends DefaultCommand
Class Inheritance
Annotations
@Name:list
@Summary:List vert.x applications
@Description:List all vert.x applications launched with the `start` command
Imports
io.vertx.core.cli.annotations.Description, .Name, .Summary, io.vertx.core.spi.launcher.DefaultCommand, java.io.BufferedReader, .IOException, .InputStreamReader, java.util.ArrayList, .List, java.util.regex.Matcher, .Pattern

A command listing launched vert.x instances. Instances are found using the `vertx.id` indicator in the process list.
Author
Clement Escoffier

Field Summary

Modifier and TypeField and Description
private static final Pattern
private static final Pattern
private static final Pattern
Inherited from io.vertx.core.spi.launcher.DefaultCommand:
executionContextoutsystemProperties

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private void
protected static String

Returns:

the details, empty if it cannot be extracted.
extractApplicationDetails
(String line)

Tries to extract the fat jar name of the verticle name.

public void
run()

Implements io.vertx.core.spi.launcher.Command.run.

Executes the list command.

Inherited from io.vertx.core.spi.launcher.DefaultCommand:
applySystemPropertiesgetCwdoutsetCwdsetSystemPropssetUptearDown

Field Detail

FAT_JAR_EXTRACTIONback to summary
private static final Pattern FAT_JAR_EXTRACTION
PSback to summary
private static final Pattern PS
VERTICLE_EXTRACTIONback to summary
private static final Pattern VERTICLE_EXTRACTION

Constructor Detail

ListCommandback to summary
public ListCommand()

Method Detail

dumpFoundVertxApplicationsback to summary
private void dumpFoundVertxApplications(List<String> cmd) throws IOException, InterruptedException
extractApplicationDetailsback to summary
protected static String extractApplicationDetails(String line)

Tries to extract the fat jar name of the verticle name. It's a best-effort approach looking at the name of the jar or to the verticle name from the command line. If not found, no details are returned (empty string).

Returns:String

the details, empty if it cannot be extracted.

runback to summary
public void run()

Implements io.vertx.core.spi.launcher.Command.run.

Executes the list command.

Annotations
@Override