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 theoriginal
non 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 boolean
equals(Object o)
Integer
exitCode()
io.vertx.ext.shell.system.Process
getDelegate()
Session
getSession()
Tty
getTty()
int
hashCode()
boolean
interrupt()
boolean
interrupt(Runnable completionHandler)
static Process
newInstance(io.vertx.ext.shell.system.Process arg)
void
resume()
void
resume(boolean foreground)
void
resume(boolean foreground, Runnable completionHandler)
void
resume(Runnable completionHandler)
void
run()
void
run(boolean foregraound)
Process
setSession(Session session)
Process
setTty(Tty tty)
io.vertx.ext.shell.system.ExecStatus
status()
void
suspend()
void
suspend(Runnable completionHandler)
void
terminate()
void
terminate(Runnable completionHandler)
Process
terminatedHandler(Consumer<Integer> handler)
void
toBackground()
void
toBackground(Runnable completionHandler)
void
toForeground()
void
toForeground(Runnable completionHandler)
String
toString()
-
-
-
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)
-
-