Package org.jline.shell.impl
Class DefaultJob
java.lang.Object
org.jline.shell.impl.DefaultJob
- All Implemented Interfaces:
Job
- Since:
- 4.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jline.shell.Job
Job.Status -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncommand()Returns the command string associated with this job.longid()Returns the unique identifier for this job.voidInterrupts this job.voidresume(boolean foreground) Resumes this job.voidsetStatus(Job.Status status) Sets the status of this job.status()Returns the current status of this job.voidsuspend()Suspends this job.thread()Returns the thread executing this job.
-
Constructor Details
-
DefaultJob
Creates a new job.- Parameters:
id- the job idcommand- the command stringthread- the thread executing the command
-
-
Method Details
-
id
public long id()Description copied from interface:JobReturns the unique identifier for this job. -
command
Description copied from interface:JobReturns the command string associated with this job. -
status
Description copied from interface:JobReturns the current status of this job. -
setStatus
Sets the status of this job.- Parameters:
status- the new status
-
thread
Returns the thread executing this job.- Returns:
- the thread
-
interrupt
public void interrupt()Description copied from interface:JobInterrupts this job. -
suspend
public void suspend()Description copied from interface:JobSuspends this job. -
resume
public void resume(boolean foreground) Description copied from interface:JobResumes this job.
-