public class PixelDataThread extends ExecutionThread implements org.springframework.context.ApplicationListener<MissingPyramidMessage>
executor, manager, principal, work
Constructor and Description |
---|
PixelDataThread(boolean performProcessing,
SessionManager manager,
Executor executor,
PixelDataHandler handler,
Principal principal,
String uuid,
int numThreads)
Main constructor.
|
PixelDataThread(SessionManager manager,
Executor executor,
PixelDataHandler handler,
Principal principal,
String uuid,
int numThreads)
Calculates
performProcessing based on the existence of the
"pixelDataTrigger" and passes all parameters to
the main ctor . |
PixelDataThread(SessionManager manager,
Executor executor,
PixelDataHandler handler,
String uuid)
Uses default
Principal for processing |
PixelDataThread(SessionManager manager,
Executor executor,
PixelDataHandler handler,
String uuid,
int numThreads)
Uses default
Principal for processing |
Modifier and Type | Method and Description |
---|---|
void |
doRun() |
void |
onApplicationEvent(MissingPyramidMessage mpm)
Handle an application event.
|
protected void |
onExecutionException(ExecutionException ee)
Basic handling just logs at ERROR level.
|
void |
start()
Called by Spring on creation.
|
void |
stop()
Called by Spring on destruction.
|
getPrincipal, run, sessionInit
public PixelDataThread(SessionManager manager, Executor executor, PixelDataHandler handler, String uuid)
Principal
for processingpublic PixelDataThread(SessionManager manager, Executor executor, PixelDataHandler handler, String uuid, int numThreads)
Principal
for processingpublic PixelDataThread(SessionManager manager, Executor executor, PixelDataHandler handler, Principal principal, String uuid, int numThreads)
performProcessing
based on the existence of the
"pixelDataTrigger" and passes all parameters to
the main ctor
.public PixelDataThread(boolean performProcessing, SessionManager manager, Executor executor, PixelDataHandler handler, Principal principal, String uuid, int numThreads)
public void start()
public void doRun()
doRun
in class ExecutionThread
protected void onExecutionException(ExecutionException ee)
public void stop()
public void onApplicationEvent(MissingPyramidMessage mpm)
org.springframework.context.ApplicationListener
onApplicationEvent
in interface org.springframework.context.ApplicationListener<MissingPyramidMessage>
mpm
- the event to respond to
Version: 4.4.12-ice34-b116
Copyright © 2014 The University of Dundee & Open Microscopy Environment. All Rights Reserved.