Class ProcessManager.Work

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String description()  
      java.util.List<ome.model.jobs.Job> doWork​(org.hibernate.Session session, ome.system.ServiceFactory sf)
      Work method.
      protected ome.model.jobs.Job job​(ome.system.ServiceFactory sf, long id)  
      void startProcess​(ome.system.ServiceFactory sf, long jobId)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • processors

        protected final java.util.List<Processor> processors
        processors available for processing. This array will never be null.
      • procMap

        protected java.util.Map<java.lang.Long,​Process> procMap
        Map of all active processes.
    • Method Detail

      • description

        public java.lang.String description()
      • doWork

        public java.util.List<ome.model.jobs.Job> doWork​(org.hibernate.Session session,
                                                         ome.system.ServiceFactory sf)
        Description copied from interface: Executor.Work
        Work method. Must return all results coming from Hibernate via the Object return method.
        Specified by:
        doWork in interface Executor.Work
        Parameters:
        session - non null.
        sf - non null.
        Returns:
        Any results which will be used by non-wrapped code.
      • startProcess

        public void startProcess​(ome.system.ServiceFactory sf,
                                 long jobId)
      • job

        protected ome.model.jobs.Job job​(ome.system.ServiceFactory sf,
                                         long id)