public interface CommandRegistry
| Modifier and Type | Method and Description |
|---|---|
void |
complete(Completion completion)
Perform completion, the completion argument will be notified of the completion progress.
|
void |
createProcess(List<CliToken> line,
Handler<AsyncResult<Process>> handler)
Try to create a process from the command line tokens.
|
void |
createProcess(String line,
Handler<AsyncResult<Process>> handler)
Parses a command line and try to create a process.
|
static CommandRegistry |
get(Vertx vertx)
Get the registry for the Vert.x instance
|
void |
registerCommand(Class<? extends Command> command)
Register a command
|
void |
registerCommand(Class<? extends Command> command,
Handler<AsyncResult<CommandRegistration>> doneHandler) |
void |
registerCommand(Command command)
Register a command
|
void |
registerCommand(Command command,
Handler<AsyncResult<CommandRegistration>> doneHandler) |
List<CommandRegistration> |
registrations() |
void |
unregisterCommand(String commandName)
Unregister a command.
|
void |
unregisterCommand(String commandName,
Handler<AsyncResult<Void>> doneHandler) |
static CommandRegistry get(Vertx vertx)
vertx - the vertx instanceList<CommandRegistration> registrations()
void createProcess(String line, Handler<AsyncResult<Process>> handler)
line - the command line to parsehandler - the handler to be notified about process creationvoid createProcess(List<CliToken> line, Handler<AsyncResult<Process>> handler)
line - the command line tokenshandler - the handler to be notified about process creationvoid complete(Completion completion)
completion - the completion objectvoid registerCommand(Class<? extends Command> command)
command - the class of the command to registervoid registerCommand(Class<? extends Command> command, Handler<AsyncResult<CommandRegistration>> doneHandler)
void registerCommand(Command command)
command - the command to registervoid registerCommand(Command command, Handler<AsyncResult<CommandRegistration>> doneHandler)
void unregisterCommand(String commandName)
commandName - the command namevoid unregisterCommand(String commandName, Handler<AsyncResult<Void>> doneHandler)
Copyright © 2015. All rights reserved.