ome.services.procs
Class ProcessManager

java.lang.Object
  extended by ome.services.util.ExecutionThread
      extended by ome.services.procs.ProcessManager
All Implemented Interfaces:
Runnable, IProcessManager

public class ProcessManager
extends ExecutionThread
implements IProcessManager

Since:
3.0-Beta2
Author:
Josh Moore, josh at glencoesoftware.com

Nested Class Summary
static class ProcessManager.Work
          Task performed by the ProcessManager on each invocation of ExecutionThread.run().
 
Field Summary
 
Fields inherited from class ome.services.util.ExecutionThread
executor, manager, principal, work
 
Constructor Summary
ProcessManager(SessionManager manager, SecuritySystem sec, Executor executor, Processor... procs)
          main constructor which takes a non-null array of Processor instances as its only argument.
 
Method Summary
 void doRun()
           
 Process runningProcess(long jobId)
          Returns a running Process for the id 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 of Processor instances as its only argument. This array is copied, so modifications will not be noticed.

Parameters:
processors - Array of Processors. Not null.
Method Detail

doRun

public void doRun()
Specified by:
doRun in class ExecutionThread

runningProcess

public Process runningProcess(long jobId)
Description copied from interface: IProcessManager
Returns a running Process for the id or null.

Specified by:
runningProcess in interface IProcessManager


OmeroJava Api

Version: 4.3.3-00d1137e-b2894

Copyright © 2009 The University of Dundee. All Rights Reserved.