The command process provides interaction with the process of the command provided by Vert.x Shell.
Constructor and description |
---|
CommandProcess
(java.lang.Object delegate) |
Type | Name and description |
---|---|
java.util.List<java.lang.String> |
args() @return
|
java.util.List<CliToken> |
argsTokens() @return
|
CommandProcess |
backgroundHandler(io.vertx.core.Handler<java.lang.Void> handler) Set a background handler, this handler is called when the command is running and put to background. |
CommandLine |
commandLine() @return
|
void |
end() End the process with the exit status |
void |
end(int status) End the process. |
CommandProcess |
endHandler(io.vertx.core.Handler<java.lang.Void> handler) Set an end handler, this handler is called when the command is ended, for instance the command is running and the shell closes. |
CommandProcess |
foregroundHandler(io.vertx.core.Handler<java.lang.Void> handler) Set a foreground handler, this handler is called when the command is running and put to foreground. |
java.lang.Object |
getDelegate() |
CommandProcess |
interruptHandler(io.vertx.core.Handler<java.lang.Void> handler) Set an interrupt handler, this handler is called when the command is interrupted, for instance user press Ctrl-C . |
boolean |
isForeground() @return
|
CommandProcess |
resizehandler(io.vertx.core.Handler<java.lang.Void> handler) |
CommandProcess |
resumeHandler(io.vertx.core.Handler<java.lang.Void> handler) Set a resume handler, this handler is called when the command is resumed, for instance user types bg or fg to resume the command. |
Session |
session() @return
|
CommandProcess |
stdinHandler(io.vertx.core.Handler<java.lang.String> handler) |
CommandProcess |
suspendHandler(io.vertx.core.Handler<java.lang.Void> handler) Set a suspend handler, this handler is called when the command is suspended, for instance user press Ctrl-Z . |
Vertx |
vertx() @return
|
CommandProcess |
write(java.lang.String data) Write some text to the standard output. |
Methods inherited from class | Name |
---|---|
class Tty |
getDelegate, height, resizehandler, stdinHandler, type, width, write |
Set a background handler, this handler is called when the command is running and put to background.
handler
- the background handler
End the process with the exit status
End the process.
status
- the exit status.Set an end handler, this handler is called when the command is ended, for instance the command is running and the shell closes.
handler
- the end handlerSet a foreground handler, this handler is called when the command is running and put to foreground.
handler
- the foreground handler Set an interrupt handler, this handler is called when the command is interrupted, for instance user
press Ctrl-C
.
handler
- the interrupt handler
Set a resume handler, this handler is called when the command is resumed, for instance user
types bg
or fg
to resume the command.
handler
- the interrupt handler
Set a suspend handler, this handler is called when the command is suspended, for instance user
press Ctrl-Z
.
handler
- the interrupt handler
Write some text to the standard output.
data
- the text