Package ome.services.procs
Class ProcessManager.Work
- java.lang.Object
-
- ome.services.procs.ProcessManager.Work
-
- All Implemented Interfaces:
Executor.Work
- Enclosing class:
- ProcessManager
public static class ProcessManager.Work extends java.lang.Object implements Executor.Work
Task performed by theProcessManager
on each invocation ofExecutionThread.run()
.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<Processor>
processors
processors available for processing.protected java.util.Map<java.lang.Long,Process>
procMap
Map of all activeprocesses
.protected SecuritySystem
sec
SecuritySystem
in order to perform a secure save on theJob
instance.
-
Constructor Summary
Constructors Constructor Description Work(SecuritySystem sec, Processor... procs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
description()
java.util.List<ome.model.jobs.Job>
doWork(org.hibernate.Session session, ome.system.ServiceFactory sf)
Work method.protected ome.model.jobs.Job
job(ome.system.ServiceFactory sf, long id)
void
startProcess(ome.system.ServiceFactory sf, long jobId)
-
-
-
Field Detail
-
processors
protected final java.util.List<Processor> processors
processors available for processing. This array will never be null.
-
sec
protected final SecuritySystem sec
SecuritySystem
in order to perform a secure save on theJob
instance.
-
-
Constructor Detail
-
Work
public Work(SecuritySystem sec, Processor... procs)
-
-
Method Detail
-
description
public java.lang.String description()
-
doWork
public java.util.List<ome.model.jobs.Job> doWork(org.hibernate.Session session, ome.system.ServiceFactory sf)
Description copied from interface:Executor.Work
Work method. Must return all results coming from Hibernate via theObject
return method.- Specified by:
doWork
in interfaceExecutor.Work
- Parameters:
session
- non null.sf
- non null.- Returns:
- Any results which will be used by non-wrapped code.
-
startProcess
public void startProcess(ome.system.ServiceFactory sf, long jobId)
-
job
protected ome.model.jobs.Job job(ome.system.ServiceFactory sf, long id)
-
-