Class Process
- java.lang.Object
-
- io.vertx.reactivex.ext.shell.system.Process
-
public class Process extends Object
A process managed by the shell. NOTE: This class has been automatically generated from theoriginalnon RX-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()Attempt to interrupt the process.booleaninterrupt(io.vertx.core.Handler<Void> completionHandler)Attempt to interrupt the process.static ProcessnewInstance(io.vertx.ext.shell.system.Process arg)voidresume()Suspend the process.voidresume(boolean foreground)Suspend the process.voidresume(boolean foreground, io.vertx.core.Handler<Void> completionHandler)Suspend the process.voidresume(io.vertx.core.Handler<Void> completionHandler)Suspend the process.voidrun()Run the process.voidrun(boolean foregraound)Run the process.ProcesssetSession(Session session)Set the process sessionProcesssetTty(Tty tty)Set the process tty.io.vertx.ext.shell.system.ExecStatusstatus()voidsuspend()Resume the process.voidsuspend(io.vertx.core.Handler<Void> completionHandler)Resume the process.voidterminate()Terminate the process.voidterminate(io.vertx.core.Handler<Void> completionHandler)Terminate the process.ProcessterminatedHandler(io.vertx.core.Handler<Integer> handler)Set an handler for being notified when the process terminates.voidtoBackground()Set the process in background.voidtoBackground(io.vertx.core.Handler<Void> completionHandler)Set the process in background.voidtoForeground()Set the process in foreground.voidtoForeground(io.vertx.core.Handler<Void> completionHandler)Set the process in foreground.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
-
setTty
public Process setTty(Tty tty)
Set the process tty.- Parameters:
tty- the process tty- Returns:
- this object
-
getTty
public Tty getTty()
- Returns:
- the process tty
-
setSession
public Process setSession(Session session)
Set the process session- Parameters:
session- the process session- Returns:
- this object
-
getSession
public Session getSession()
- Returns:
- the process session
-
terminatedHandler
public Process terminatedHandler(io.vertx.core.Handler<Integer> handler)
Set an handler for being notified when the process terminates.- Parameters:
handler- the handler called when the process terminates.- Returns:
- this object
-
run
public void run()
Run the process.
-
run
public void run(boolean foregraound)
Run the process.- Parameters:
foregraound-
-
interrupt
public boolean interrupt()
Attempt to interrupt the process.- Returns:
- true if the process caught the signal
-
interrupt
public boolean interrupt(io.vertx.core.Handler<Void> completionHandler)
Attempt to interrupt the process.- Parameters:
completionHandler- handler called after interrupt callback- Returns:
- true if the process caught the signal
-
resume
public void resume()
Suspend the process.
-
resume
public void resume(boolean foreground)
Suspend the process.- Parameters:
foreground-
-
resume
public void resume(io.vertx.core.Handler<Void> completionHandler)
Suspend the process.- Parameters:
completionHandler- handler called after resume callback
-
resume
public void resume(boolean foreground, io.vertx.core.Handler<Void> completionHandler)Suspend the process.- Parameters:
foreground-completionHandler- handler called after resume callback
-
suspend
public void suspend()
Resume the process.
-
suspend
public void suspend(io.vertx.core.Handler<Void> completionHandler)
Resume the process.- Parameters:
completionHandler- handler called after suspend callback
-
terminate
public void terminate()
Terminate the process.
-
terminate
public void terminate(io.vertx.core.Handler<Void> completionHandler)
Terminate the process.- Parameters:
completionHandler- handler called after end callback
-
toBackground
public void toBackground()
Set the process in background.
-
toBackground
public void toBackground(io.vertx.core.Handler<Void> completionHandler)
Set the process in background.- Parameters:
completionHandler- handler called after background callback
-
toForeground
public void toForeground()
Set the process in foreground.
-
toForeground
public void toForeground(io.vertx.core.Handler<Void> completionHandler)
Set the process in foreground.- Parameters:
completionHandler- handler called after foreground callback
-
newInstance
public static Process newInstance(io.vertx.ext.shell.system.Process arg)
-
-