Package io.vertx.mutiny.ext.shell.system
Class Process
java.lang.Object
io.vertx.mutiny.ext.shell.system.Process
- All Implemented Interfaces:
MutinyDelegate
A process managed by the shell.
NOTE: This class has been automatically generated from the
original non Mutiny-ified interface using Vert.x codegen.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanexitCode()io.vertx.ext.shell.system.ProcessgetTty()inthashCode()booleanbooleanstatic ProcessnewInstance(io.vertx.ext.shell.system.Process arg) voidresume()voidresume(boolean foreground) voidvoidvoidrun()voidrun(boolean foregraound) setSession(Session session) io.vertx.ext.shell.system.ExecStatusstatus()voidsuspend()voidvoidvoidterminatedHandler(Consumer<Integer> handler) voidvoidtoBackground(Runnable completionHandler) voidvoidtoForeground(Runnable completionHandler) toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
Process
public Process(io.vertx.ext.shell.system.Process delegate) -
Process
-
-
Method Details
-
getDelegate
public io.vertx.ext.shell.system.Process getDelegate()- Specified by:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
-
equals
-
hashCode
public int hashCode() -
status
public io.vertx.ext.shell.system.ExecStatus status()- Returns:
- the current process status
-
exitCode
- Returns:
- the process exit code when the status is otherwise
null
-
setTty
- Parameters:
tty- the process tty- Returns:
- this object
-
getTty
- Returns:
- the process tty
-
setSession
- Parameters:
session- the process session- Returns:
- this object
-
getSession
- Returns:
- the process session
-
terminatedHandler
- 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
- Parameters:
completionHandler- handler called after interrupt callback- Returns:
-
resume
public void resume() -
resume
public void resume(boolean foreground) - Parameters:
foreground-
-
resume
- Parameters:
completionHandler- handler called after resume callback
-
resume
- Parameters:
foreground-completionHandler- handler called after resume callback
-
suspend
public void suspend() -
suspend
- Parameters:
completionHandler- handler called after suspend callback
-
terminate
public void terminate() -
terminate
- Parameters:
completionHandler- handler called after end callback
-
toBackground
public void toBackground() -
toBackground
- Parameters:
completionHandler- handler called after background callback
-
toForeground
public void toForeground() -
toForeground
- Parameters:
completionHandler- handler called after foreground callback
-
newInstance
-