Package org.apache.felix.gogo.runtime
Class CommandSessionImpl.JobImpl
java.lang.Object
org.apache.felix.gogo.runtime.CommandSessionImpl.JobImpl
- Enclosing class:
- CommandSessionImpl
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.felix.service.command.Job
Job.Status, Job.Utils -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CharSequenceprivate Future<?>private final intprivate final CommandSessionImpl.JobImplprivate Pipe.Resultprivate Job.Status -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid(package private) voidvoidcommand()protected voiddone()voidintid()voidparent()result()voidrun()session()private voidsetStatus(Job.Status newStatus) private voidsetStatus(Job.Status newStatus, boolean callListeners) start(Job.Status status) Start the job.status()voidsuspend()
-
Field Details
-
id
private final int id -
parent
-
command
-
pipes
-
children
-
status
-
future
-
result
-
-
Constructor Details
-
JobImpl
-
-
Method Details
-
addPipe
-
id
public int id() -
command
-
status
-
suspend
public void suspend() -
background
public void background()- Specified by:
backgroundin interfaceJob
-
foreground
public void foreground()- Specified by:
foregroundin interfaceJob
-
interrupt
public void interrupt() -
done
protected void done() -
setStatus
-
setStatus
-
result
-
parent
-
start
Start the job. If the job is started in foreground, waits for the job to finish or to be suspended or moved to background.- Parameters:
status- the desired job status- Returns:
nullif the job has been suspended or moved to background,- Throws:
InterruptedException
-
processes
-
session
-
run
public void run() -
add
-