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

public Class StopCommand

extends DefaultCommand
Class Inheritance
Annotations
@Name:stop
@Summary:Stop a vert.x application
@Description:This command stops a vert.x application started with the `start` command. The command requires the application id as argument. Use the `list` command to get the list of applications
Imports
io.vertx.core.cli.annotations.*, io.vertx.core.spi.launcher.DefaultCommand, java.io.BufferedReader, .InputStreamReader, java.util.ArrayList, .Arrays, .List, java.util.regex.Matcher, .Pattern

A command stopping a vert.x application launched using the `start` command. The application is identified by its id.
Author
Clement Escoffier

Field Summary

Modifier and TypeField and Description
private String
private static final Pattern
private boolean
redeploy

Whether or not we are in redeploy mode.

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

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private String
pid()

public void
run()

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

Stops a running vert.x application launched with the `start` command.

public void
setApplicationId(String
the id.
id
)

As the stop command takes only a single argument, it's the application id.

public void
setRedeploy(boolean redeploy)

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

Field Detail

idback to summary
private String id
PSback to summary
private static final Pattern PS
redeployback to summary
private boolean redeploy

Whether or not we are in redeploy mode. In redeploy mode, do not exit the VM.

Constructor Detail

StopCommandback to summary
public StopCommand()

Method Detail

pidback to summary
private String pid()
runback to summary
public void run()

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

Stops a running vert.x application launched with the `start` command.

Annotations
@Override
setApplicationIdback to summary
public void setApplicationId(String id)

As the stop command takes only a single argument, it's the application id.

Parameters
id:String

the id.

Annotations
@Argument
index:0
argName:vertx.id
required:false
@Description:The vert.x application id
setRedeployback to summary
public void setRedeploy(boolean redeploy)
Annotations
@Option
longName:redeploy
flag:true
@Hidden
terminateLinuxApplicationback to summary
private void terminateLinuxApplication()
terminateWindowsApplicationback to summary
private void terminateWindowsApplication()