Class BatchTaskExecutorService

java.lang.Object
ubic.gemma.core.util.concurrent.AbstractDelegatingExecutor
ubic.gemma.core.util.concurrent.AbstractDelegatingExecutorService
ubic.gemma.cli.batch.BatchTaskExecutorService
All Implemented Interfaces:
AutoCloseable, Executor, ExecutorService, ubic.gemma.core.util.concurrent.DelegatingExecutor, ubic.gemma.core.util.concurrent.DelegatingExecutorService

public class BatchTaskExecutorService extends ubic.gemma.core.util.concurrent.AbstractDelegatingExecutorService implements AutoCloseable
A task executor that automatically reports errors in batch tasks.
  • Constructor Details

  • Method Details

    • getProgressReporter

      public BatchTaskProgressReporter getProgressReporter()
    • wrap

      protected Runnable wrap(Runnable runnable)
      Specified by:
      wrap in class ubic.gemma.core.util.concurrent.AbstractDelegatingExecutor
    • wrap

      protected <T> Callable<T> wrap(Callable<T> callable)
      Specified by:
      wrap in class ubic.gemma.core.util.concurrent.AbstractDelegatingExecutorService
    • getRemainingTasks

      public int getRemainingTasks()
      Obtain the number of completed batch tasks.
    • shutdownAndAwaitTermination

      public void shutdownAndAwaitTermination() throws InterruptedException
      Throws:
      InterruptedException
    • close

      public void close() throws Exception
      Specified by:
      close in interface AutoCloseable
      Throws:
      Exception