Package ome.services.procs
Class ProcessManager
- java.lang.Object
-
- ome.services.util.ExecutionThread
-
- ome.services.procs.ProcessManager
-
- All Implemented Interfaces:
java.lang.Runnable
,IProcessManager
public class ProcessManager extends ExecutionThread implements IProcessManager
- Since:
- 3.0-Beta2
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ProcessManager.Work
Task performed by theProcessManager
on each invocation ofExecutionThread.run()
.
-
Field Summary
-
Fields inherited from class ome.services.util.ExecutionThread
executor, manager, principal, work
-
-
Constructor Summary
Constructors Constructor Description ProcessManager(SessionManager manager, SecuritySystem sec, Executor executor, Processor... procs)
main constructor which takes a non-null array ofProcessor
instances as its only argument.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doRun()
Process
runningProcess(long jobId)
Returns a runningProcess
for theid
or null.-
Methods inherited from class ome.services.util.ExecutionThread
getPrincipal, run, sessionInit
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ome.services.procs.IProcessManager
run
-
-
-
-
Constructor Detail
-
ProcessManager
public ProcessManager(SessionManager manager, SecuritySystem sec, Executor executor, Processor... procs)
main constructor which takes a non-null array ofProcessor
instances as its only argument. This array is copied, so modifications will not be noticed.- Parameters:
manager
- Reference to the session manager.sec
- Reference to the security managerexecutor
- The executor.procs
- Array of Processors. Not null.
-
-
Method Detail
-
doRun
public void doRun()
- Specified by:
doRun
in classExecutionThread
-
runningProcess
public Process runningProcess(long jobId)
Description copied from interface:IProcessManager
Returns a runningProcess
for theid
or null.- Specified by:
runningProcess
in interfaceIProcessManager
-
-