public class Job extends Object
JobController
, grouping one or several process.
The job life cycle can be controlled with the run()
, resume()
and suspend()
and interrupt()
methods.
NOTE: This class has been automatically generated from the original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<Job> |
__TYPE_ARG |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Job |
getDelegate() |
int |
hashCode() |
int |
id() |
boolean |
interrupt()
Attempt to interrupt the job.
|
long |
lastStopped() |
String |
line() |
static Job |
newInstance(Job arg) |
Process |
process() |
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() |
Job |
statusUpdateHandler(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.
|
String |
toString() |
public static final io.vertx.lang.rx.TypeArg<Job> __TYPE_ARG
public Job getDelegate()
public int id()
public ExecStatus status()
public long lastStopped()
public String line()
public Job setTty(Tty tty)
tty
- the tty to usepublic Job setSession(Session session)
session
- the session to usepublic Job statusUpdateHandler(Handler<ExecStatus> handler)
handler
- the terminate handlerpublic Job run()
public boolean interrupt()
public Job resume()
public Job toBackground()
public Job toForeground()
public Job resume(boolean foreground)
foreground
- true when the job is resumed in foregroundpublic Job suspend()
public void terminate()
public Process process()
Copyright © 2023 Eclipse. All rights reserved.