ome.services.pixeldata
Class PixelDataHandler
java.lang.Object
ome.services.util.Executor.Descriptive
ome.services.util.Executor.SimpleWork
ome.services.pixeldata.PixelDataHandler
- All Implemented Interfaces:
- Executor.Work
public class PixelDataHandler
- extends Executor.SimpleWork
Simple action which can be done in an asynchronous thread in order to process
PIXELDATA event logs.
- Since:
- Beta4.3
- Author:
- Josh Moore, josh at glencoesoftware.com
Method Summary |
Object |
doWork(org.hibernate.Session session,
ServiceFactory sf)
Handles only single elements from the PersistentEventLogLoader
in order to keep transactions short and safe. |
boolean |
process(Long id,
ServiceFactory sf,
org.hibernate.Session s)
Here we assume that our log loader will only return
us the proper types, since we are using the specific
type defined in this package. |
void |
setRepetitions(int reps)
Spring injector. |
void |
setSqlAction(ome.util.SqlAction sql)
Since these instances are used repeatedly, we need to check for
already set SqlAction |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
loader
protected final PersistentEventLogLoader loader
pixelsService
protected final PixelsService pixelsService
reps
protected int reps
PixelDataHandler
public PixelDataHandler(PersistentEventLogLoader ll,
PixelsService pixelsService)
setRepetitions
public void setRepetitions(int reps)
- Spring injector. Sets the number of indexing runs will be made if there
is a substantial backlog.
setSqlAction
public void setSqlAction(ome.util.SqlAction sql)
- Since these instances are used repeatedly, we need to check for
already set SqlAction
- Overrides:
setSqlAction
in class Executor.SimpleWork
doWork
@Transactional(readOnly=false)
public Object doWork(org.hibernate.Session session,
ServiceFactory sf)
- Handles only single elements from the
PersistentEventLogLoader
in order to keep transactions short and safe.
- Parameters:
session
- non null.sf
- non null.
- Returns:
- Any results which will be used by non-wrapped code.
- See Also:
ticket:5814
process
public boolean process(Long id,
ServiceFactory sf,
org.hibernate.Session s)
- Here we assume that our log loader will only return
us the proper types, since we are using the specific
type defined in this package.
- Parameters:
eventLog
- sf
- s
-
- Returns:
OmeroJava Api
Version: 4.3.4-dbcbce5a-b4
Copyright © 2009 The University of Dundee. All Rights Reserved.