public static class ProcessManager.Work extends java.lang.Object implements Executor.Work
ProcessManager
on each invocation of
ExecutionThread.run()
.Modifier and Type | Field and Description |
---|---|
protected java.util.List<Processor> |
processors
processors available for processing.
|
protected java.util.Map<java.lang.Long,Process> |
procMap
Map of all active
processes . |
protected SecuritySystem |
sec
SecuritySystem in order to perform a secure save on the
Job instance. |
Constructor and Description |
---|
Work(SecuritySystem sec,
Processor... procs) |
Modifier and Type | Method and 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) |
protected final java.util.List<Processor> processors
protected final SecuritySystem sec
SecuritySystem
in order to perform a secure save on the
Job
instance.public Work(SecuritySystem sec, Processor... procs)
public java.lang.String description()
public java.util.List<ome.model.jobs.Job> doWork(org.hibernate.Session session, ome.system.ServiceFactory sf)
Executor.Work
Object
return method.doWork
in interface Executor.Work
session
- non null.sf
- non null.public void startProcess(ome.system.ServiceFactory sf, long jobId)
protected ome.model.jobs.Job job(ome.system.ServiceFactory sf, long id)