Class CommandProcess
- java.lang.Object
-
- io.vertx.mutiny.ext.shell.term.Tty
-
- io.vertx.mutiny.ext.shell.command.CommandProcess
-
public class CommandProcess extends Tty
The command process provides interaction with the process of the command provided by Vert.x Shell. NOTE: This class has been automatically generated from theoriginal
non Mutiny-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<CommandProcess>
__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description CommandProcess(io.vertx.ext.shell.command.CommandProcess delegate)
CommandProcess(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
args()
List<CliToken>
argsTokens()
CommandProcess
backgroundHandler(Runnable handler)
CommandLine
commandLine()
void
end()
void
end(int status)
CommandProcess
endHandler(Runnable handler)
boolean
equals(Object o)
CommandProcess
foregroundHandler(Runnable handler)
io.vertx.ext.shell.command.CommandProcess
getDelegate()
int
hashCode()
CommandProcess
interruptHandler(Runnable handler)
boolean
isForeground()
static CommandProcess
newInstance(io.vertx.ext.shell.command.CommandProcess arg)
CommandProcess
resizehandler(Runnable handler)
CommandProcess
resumeHandler(Runnable handler)
Session
session()
CommandProcess
stdinHandler(Consumer<String> handler)
CommandProcess
suspendHandler(Runnable handler)
String
toString()
Vertx
vertx()
CommandProcess
write(String data)
-
Methods inherited from class io.vertx.mutiny.ext.shell.term.Tty
height, newInstance, type, width
-
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<CommandProcess> __TYPE_ARG
-
-
Constructor Detail
-
CommandProcess
public CommandProcess(io.vertx.ext.shell.command.CommandProcess delegate)
-
CommandProcess
public CommandProcess(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.ext.shell.command.CommandProcess getDelegate()
- Overrides:
getDelegate
in classTty
-
vertx
public Vertx vertx()
- Returns:
- the current Vert.x instance
-
commandLine
public CommandLine commandLine()
- Returns:
- the command line object or null
-
session
public Session session()
- Returns:
- the shell session
-
isForeground
public boolean isForeground()
- Returns:
- true if the command is running in foreground
-
stdinHandler
public CommandProcess stdinHandler(Consumer<String> handler)
- Overrides:
stdinHandler
in classTty
- Parameters:
handler
- the standard input- Returns:
-
interruptHandler
public CommandProcess interruptHandler(Runnable handler)
- Parameters:
handler
- the interrupt handler- Returns:
-
suspendHandler
public CommandProcess suspendHandler(Runnable handler)
- Parameters:
handler
- the interrupt handler- Returns:
-
resumeHandler
public CommandProcess resumeHandler(Runnable handler)
- Parameters:
handler
- the interrupt handler- Returns:
-
endHandler
public CommandProcess endHandler(Runnable handler)
- Parameters:
handler
- the end handler- Returns:
-
write
public CommandProcess write(String data)
-
backgroundHandler
public CommandProcess backgroundHandler(Runnable handler)
- Parameters:
handler
- the background handler- Returns:
-
foregroundHandler
public CommandProcess foregroundHandler(Runnable handler)
- Parameters:
handler
- the foreground handler- Returns:
-
resizehandler
public CommandProcess resizehandler(Runnable handler)
- Overrides:
resizehandler
in classTty
- Parameters:
handler
- the resize handler- Returns:
-
end
public void end()
-
end
public void end(int status)
- Parameters:
status
- the exit status.
-
newInstance
public static CommandProcess newInstance(io.vertx.ext.shell.command.CommandProcess arg)
-
-