Package io.vertx.mutiny.ext.shell.system
Class Process
- java.lang.Object
-
- io.vertx.mutiny.ext.shell.system.Process
-
public class Process extends Object
A process managed by the shell. NOTE: This class has been automatically generated from theoriginalnon Mutiny-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<Process>__TYPE_ARG
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)IntegerexitCode()io.vertx.ext.shell.system.ProcessgetDelegate()SessiongetSession()TtygetTty()inthashCode()booleaninterrupt()booleaninterrupt(Runnable completionHandler)static ProcessnewInstance(io.vertx.ext.shell.system.Process arg)voidresume()voidresume(boolean foreground)voidresume(boolean foreground, Runnable completionHandler)voidresume(Runnable completionHandler)voidrun()voidrun(boolean foregraound)ProcesssetSession(Session session)ProcesssetTty(Tty tty)io.vertx.ext.shell.system.ExecStatusstatus()voidsuspend()voidsuspend(Runnable completionHandler)voidterminate()voidterminate(Runnable completionHandler)ProcessterminatedHandler(Consumer<Integer> handler)voidtoBackground()voidtoBackground(Runnable completionHandler)voidtoForeground()voidtoForeground(Runnable completionHandler)StringtoString()
-
-
-
Constructor Detail
-
Process
public Process(io.vertx.ext.shell.system.Process delegate)
-
Process
public Process(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.ext.shell.system.Process getDelegate()
-
status
public io.vertx.ext.shell.system.ExecStatus status()
- Returns:
- the current process status
-
exitCode
public Integer exitCode()
- Returns:
- the process exit code when the status is otherwise
null
-
getTty
public Tty getTty()
- Returns:
- the process tty
-
setSession
public Process setSession(Session session)
- Parameters:
session- the process session- Returns:
- this object
-
getSession
public Session getSession()
- Returns:
- the process session
-
terminatedHandler
public Process terminatedHandler(Consumer<Integer> handler)
- Parameters:
handler- the handler called when the process terminates.- Returns:
-
run
public void run()
-
run
public void run(boolean foregraound)
- Parameters:
foregraound-
-
interrupt
public boolean interrupt()
- Returns:
- true if the process caught the signal
-
interrupt
public boolean interrupt(Runnable completionHandler)
- Parameters:
completionHandler- handler called after interrupt callback- Returns:
-
resume
public void resume()
-
resume
public void resume(boolean foreground)
- Parameters:
foreground-
-
resume
public void resume(Runnable completionHandler)
- Parameters:
completionHandler- handler called after resume callback
-
resume
public void resume(boolean foreground, Runnable completionHandler)- Parameters:
foreground-completionHandler- handler called after resume callback
-
suspend
public void suspend()
-
suspend
public void suspend(Runnable completionHandler)
- Parameters:
completionHandler- handler called after suspend callback
-
terminate
public void terminate()
-
terminate
public void terminate(Runnable completionHandler)
- Parameters:
completionHandler- handler called after end callback
-
toBackground
public void toBackground()
-
toBackground
public void toBackground(Runnable completionHandler)
- Parameters:
completionHandler- handler called after background callback
-
toForeground
public void toForeground()
-
toForeground
public void toForeground(Runnable completionHandler)
- Parameters:
completionHandler- handler called after foreground callback
-
newInstance
public static Process newInstance(io.vertx.ext.shell.system.Process arg)
-
-