Package org.jline.shell.impl
Class DefaultJob
- java.lang.Object
-
- org.jline.shell.impl.DefaultJob
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jline.shell.Job
Job.Status
-
-
Constructor Summary
Constructors Constructor Description DefaultJob(long id, java.lang.String command, java.lang.Thread thread)Creates a new job.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringcommand()Returns the command string associated with this job.longid()Returns the unique identifier for this job.voidinterrupt()Interrupts this job.voidresume(boolean foreground)Resumes this job.voidsetStatus(Job.Status status)Sets the status of this job.Job.Statusstatus()Returns the current status of this job.voidsuspend()Suspends this job.java.lang.Threadthread()Returns the thread executing this job.
-
-
-
Method Detail
-
id
public long id()
Description copied from interface:JobReturns the unique identifier for this job.
-
command
public java.lang.String command()
Description copied from interface:JobReturns the command string associated with this job.
-
status
public Job.Status status()
Description copied from interface:JobReturns the current status of this job.
-
setStatus
public void setStatus(Job.Status status)
Sets the status of this job.- Parameters:
status- the new status
-
thread
public java.lang.Thread 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.
-
-