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()
Returns a description of what this work will be doing for logging
purposes.
|
java.util.List<Job> |
doWork(org.hibernate.Session session,
ServiceFactory sf)
Work method.
|
protected Job |
job(ServiceFactory sf,
long id) |
void |
startProcess(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()
Executor.Work
description
in interface Executor.Work
public java.util.List<Job> doWork(org.hibernate.Session session, ServiceFactory sf)
Executor.Work
Object
return method.doWork
in interface Executor.Work
session
- non null.sf
- non null.public void startProcess(ServiceFactory sf, long jobId)
protected Job job(ServiceFactory sf, long id)
Version: 5.4.6-ice35-b87
Copyright © 2018 The University of Dundee & Open Microscopy Environment. All Rights Reserved.