Class PixelDataHandler

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object doWork​(org.hibernate.Session session, ome.system.ServiceFactory sf)
      Loads reps EventLog instances and returns them.
      protected ome.model.core.Pixels getPixels​(java.lang.Long id, ome.system.ServiceFactory sf)  
      void handleEventLog​(ome.model.meta.EventLog eventLog, org.hibernate.Session session, ome.system.ServiceFactory sf)
      Handles only single elements from the PersistentEventLogLoader in order to keep transactions short and safe.
      boolean process​(java.lang.Long id, ome.system.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
    • Field Detail

      • pixelsService

        protected final ome.io.nio.PixelsService pixelsService
      • reps

        protected int reps
    • Constructor Detail

      • PixelDataHandler

        public PixelDataHandler​(EventLogLoader ll,
                                ome.io.nio.PixelsService pixelsService)
    • Method Detail

      • 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 java.lang.Object doWork​(org.hibernate.Session session,
                                       ome.system.ServiceFactory sf)
        Loads reps EventLog instances and returns them. This is the first phase used by the PixelDataThread. A later phase will invoke handleEventLog(EventLog, Session, ServiceFactory) with the returned instance.
        Parameters:
        session - non null.
        sf - non null.
        Returns:
        Any results which will be used by non-wrapped code.
      • handleEventLog

        public void handleEventLog​(ome.model.meta.EventLog eventLog,
                                   org.hibernate.Session session,
                                   ome.system.ServiceFactory sf)
        Handles only single elements from the PersistentEventLogLoader in order to keep transactions short and safe.
        See Also:
        ticket:5814
      • process

        public boolean process​(java.lang.Long id,
                               ome.system.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:
        id -
        sf -
        s -
        Returns:
        See above.
      • getPixels

        protected ome.model.core.Pixels getPixels​(java.lang.Long id,
                                                  ome.system.ServiceFactory sf)