Package io.vertx.mutiny.ext.shell.system
Class Job
java.lang.Object
io.vertx.mutiny.ext.shell.system.Job
- All Implemented Interfaces:
MutinyDelegate
A job executed in a
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 Mutiny-ified interface using Vert.x codegen.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanio.vertx.ext.shell.system.JobinthashCode()intid()booleanlongline()static JobnewInstance(io.vertx.ext.shell.system.Job arg) process()resume()resume(boolean foreground) run()setSession(Session session) io.vertx.ext.shell.system.ExecStatusstatus()statusUpdateHandler(Consumer<io.vertx.ext.shell.system.ExecStatus> handler) suspend()voidtoString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
Job
public Job(io.vertx.ext.shell.system.Job delegate) -
Job
-
-
Method Details
-
getDelegate
public io.vertx.ext.shell.system.Job getDelegate()- Specified by:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
-
equals
-
hashCode
public int hashCode() -
id
public int id()- Returns:
- the job id
-
status
public io.vertx.ext.shell.system.ExecStatus status()- Returns:
- the job exec status
-
lastStopped
public long lastStopped()- Returns:
- when the job was last stopped
-
line
- Returns:
- the execution line of the job, i.e the shell command line that launched this job
-
setTty
- Parameters:
tty- the tty to use- Returns:
- this object
-
setSession
- Parameters:
session- the session to use- Returns:
- this object
-
statusUpdateHandler
- Parameters:
handler- the terminate handler- Returns:
-
run
- Returns:
- this object
-
interrupt
public boolean interrupt()- Returns:
- true if the job is actually interrupted
-
resume
- Returns:
-
toBackground
- Returns:
- this object
-
toForeground
- Returns:
- this object
-
resume
- Parameters:
foreground- true when the job is resumed in foreground- Returns:
- the instance of Job to chain method calls.
-
suspend
- Returns:
- this object
-
terminate
public void terminate() -
process
- Returns:
- the first process in the job
-
newInstance
-