public class ProcessManager extends ExecutionThread implements IProcessManager
Modifier and Type | Class and Description |
---|---|
static class |
ProcessManager.Work
Task performed by the
ProcessManager on each invocation of
ExecutionThread.run() . |
executor, manager, principal, work
Constructor and Description |
---|
ProcessManager(SessionManager manager,
SecuritySystem sec,
Executor executor,
Processor... procs)
main constructor which takes a non-null array of
Processor
instances as its only argument. |
Modifier and Type | Method and Description |
---|---|
void |
doRun() |
Process |
runningProcess(long jobId)
Returns a running
Process for the id
or null. |
getPrincipal, run, sessionInit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
run
public ProcessManager(SessionManager manager, SecuritySystem sec, Executor executor, Processor... procs)
Processor
instances as its only argument. This array is copied, so modifications
will not be noticed.manager
- Reference to the session manager.sec
- Reference to the security managerexecutor
- The executor.procs
- Array of Processors. Not null.public void doRun()
doRun
in class ExecutionThread
public Process runningProcess(long jobId)
IProcessManager
Process
for the id
or null.runningProcess
in interface IProcessManager