public static class ProcessManager.Work extends Object implements Executor.Work
ProcessManager
on each invocation of
ExecutionThread.run()
.Modifier and Type | Field and Description |
---|---|
protected List<Processor> |
processors
processors available for processing.
|
protected Map<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 |
---|---|
String |
description()
Returns a description of what this work will be doing for logging
purposes.
|
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 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 String description()
Executor.Work
description
in interface Executor.Work
public 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.3.3-ice35-b63
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.