A job executed in a JobController, grouping one or several process.
The job life cycle can be controlled with the Job.run, Job.resume and Job.suspend and Job.interrupt methods.| Constructor and description |
|---|
Job
(java.lang.Object delegate) |
| Type | Name and description |
|---|---|
java.lang.Object |
getDelegate() |
int |
id()@return
|
boolean |
interrupt()Attempt to interrupt the job. |
long |
lastStopped()@return
|
java.lang.String |
line()@return
|
Process |
process()@return
|
Job |
resume()Resume the job to foreground. |
Job |
resume(boolean foreground)Resume the job. |
Job |
run()Run the job, before running the job a must be set. |
Job |
setSession(Session session)Set a session on the job. |
Job |
setTty(Tty tty)Set a tty on the job. |
ExecStatus |
status()@return
|
Job |
statusUpdateHandler(io.vertx.core.Handler<ExecStatus> handler)Set an handler called when the job terminates. |
Job |
suspend()Resume the job. |
void |
terminate()Terminate the job. |
Job |
toBackground()Send the job to background. |
Job |
toForeground()Send the job to foreground. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Attempt to interrupt the job.
Resume the job to foreground.
Resume the job.
foreground - true when the job is resumed in foregroundRun the job, before running the job a must be set.
Set a session on the job.
session - the session to use
Set an handler called when the job terminates.
handler - the terminate handlerResume the job.
Terminate the job.
Send the job to background.
Send the job to foreground.