| Constructor and Description |
|---|
CommandRegistry(CommandRegistry delegate) |
| 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.
|
rx.Observable<Process> |
createProcessObservable(List<CliToken> line)
Try to create a process from the command line tokens.
|
rx.Observable<Process> |
createProcessObservable(String line)
Parses a command line and try to create a process.
|
static CommandRegistry |
get(Vertx vertx)
Get the registry for the Vert.x instance
|
Object |
getDelegate() |
static CommandRegistry |
newInstance(CommandRegistry arg) |
void |
registerCommand(Command command)
Register a command
|
void |
registerCommand(Command command,
Handler<AsyncResult<CommandRegistration>> doneHandler) |
rx.Observable<CommandRegistration> |
registerCommandObservable(Command command) |
List<CommandRegistration> |
registrations() |
void |
unregisterCommand(String commandName)
Unregister a command.
|
void |
unregisterCommand(String commandName,
Handler<AsyncResult<Void>> doneHandler) |
rx.Observable<Void> |
unregisterCommandObservable(String commandName) |
public CommandRegistry(CommandRegistry delegate)
public Object getDelegate()
public static CommandRegistry get(Vertx vertx)
vertx - the vertx instancepublic List<CommandRegistration> registrations()
public void createProcess(String line, Handler<AsyncResult<Process>> handler)
line - the command line to parsehandler - the handler to be notified about process creationpublic rx.Observable<Process> createProcessObservable(String line)
line - the command line to parsepublic void createProcess(List<CliToken> line, Handler<AsyncResult<Process>> handler)
line - the command line tokenshandler - the handler to be notified about process creationpublic rx.Observable<Process> createProcessObservable(List<CliToken> line)
line - the command line tokenspublic void complete(Completion completion)
completion - the completion objectpublic void registerCommand(Command command)
command - the command to registerpublic void registerCommand(Command command, Handler<AsyncResult<CommandRegistration>> doneHandler)
public rx.Observable<CommandRegistration> registerCommandObservable(Command command)
public void unregisterCommand(String commandName)
commandName - the command namepublic void unregisterCommand(String commandName, Handler<AsyncResult<Void>> doneHandler)
public rx.Observable<Void> unregisterCommandObservable(String commandName)
public static CommandRegistry newInstance(CommandRegistry arg)
Copyright © 2015. All rights reserved.