Package ome.services.util
Class ExecutionThread
- java.lang.Object
-
- ome.services.util.ExecutionThread
-
- All Implemented Interfaces:
java.lang.Runnable
- Direct Known Subclasses:
FullTextThread
,PixelDataThread
,ProcessManager
public abstract class ExecutionThread extends java.lang.Object implements java.lang.Runnable
Thread which can be started and will appropriately acquire a session, then use theExecutor
to complete its work.- Since:
- 3.0-Beta3
-
-
Field Summary
Fields Modifier and Type Field Description protected Executor
executor
protected SessionManager
manager
protected ome.system.Principal
principal
protected Executor.Work
work
-
Constructor Summary
Constructors Constructor Description ExecutionThread(SessionManager manager, Executor executor, Executor.Work work, ome.system.Principal principal)
Main constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
doRun()
ome.system.Principal
getPrincipal()
void
run()
protected void
sessionInit()
-
-
-
Field Detail
-
manager
protected final SessionManager manager
-
executor
protected final Executor executor
-
work
protected final Executor.Work work
-
principal
protected final ome.system.Principal principal
-
-
Constructor Detail
-
ExecutionThread
public ExecutionThread(SessionManager manager, Executor executor, Executor.Work work, ome.system.Principal principal)
Main constructor. No arguments can be null.
-
-