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 classProcessManager.WorkTask performed by theProcessManageron 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 ofProcessorinstances as its only argument.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoRun()ProcessrunningProcess(long jobId)Returns a runningProcessfor theidor 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 ofProcessorinstances 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:
doRunin classExecutionThread
-
runningProcess
public Process runningProcess(long jobId)
Description copied from interface:IProcessManagerReturns a runningProcessfor theidor null.- Specified by:
runningProcessin interfaceIProcessManager
-
-