public interface Process
Modifier and Type | Method and Description |
---|---|
Integer |
exitCode() |
Session |
getSession() |
Tty |
getTty() |
default boolean |
interrupt()
Attempt to interrupt the process.
|
boolean |
interrupt(Handler<Void> completionHandler)
Attempt to interrupt the process.
|
default void |
resume()
Suspend the process.
|
default void |
resume(boolean foreground)
Suspend the process.
|
void |
resume(boolean foreground,
Handler<Void> completionHandler)
Suspend the process.
|
default void |
resume(Handler<Void> completionHandler)
Suspend the process.
|
default void |
run()
Run the process.
|
void |
run(boolean foregraound)
Run the process.
|
Process |
setSession(Session session)
Set the process session
|
Process |
setTty(Tty tty)
Set the process tty.
|
ExecStatus |
status() |
default void |
suspend()
Resume the process.
|
void |
suspend(Handler<Void> completionHandler)
Resume the process.
|
default void |
terminate()
Terminate the process.
|
void |
terminate(Handler<Void> completionHandler)
Terminate the process.
|
Process |
terminatedHandler(Handler<Integer> handler)
Set an handler for being notified when the process terminates.
|
default void |
toBackground()
Set the process in background.
|
void |
toBackground(Handler<Void> completionHandler)
Set the process in background.
|
default void |
toForeground()
Set the process in foreground.
|
void |
toForeground(Handler<Void> completionHandler)
Set the process in foreground.
|
ExecStatus status()
Integer exitCode()
ExecStatus.TERMINATED
otherwise null
Process setTty(Tty tty)
tty
- the process ttyTty getTty()
Process setSession(Session session)
session
- the process sessionSession getSession()
Process terminatedHandler(Handler<Integer> handler)
handler
- the handler called when the process terminates.default void run()
void run(boolean foregraound)
default boolean interrupt()
boolean interrupt(Handler<Void> completionHandler)
completionHandler
- handler called after interrupt callbackdefault void resume()
default void resume(boolean foreground)
default void resume(Handler<Void> completionHandler)
completionHandler
- handler called after resume callbackvoid resume(boolean foreground, Handler<Void> completionHandler)
completionHandler
- handler called after resume callbackdefault void suspend()
void suspend(Handler<Void> completionHandler)
completionHandler
- handler called after suspend callbackdefault void terminate()
void terminate(Handler<Void> completionHandler)
completionHandler
- handler called after end callbackdefault void toBackground()
void toBackground(Handler<Void> completionHandler)
completionHandler
- handler called after background callbackdefault void toForeground()
Copyright © 2023 Eclipse. All rights reserved.