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 Summary
ConstructorsConstructorDescriptionBatchTaskExecutorService(ExecutorService delegate, BatchTaskProgressReporter progressReporter) -
Method Summary
Methods inherited from class ubic.gemma.core.util.concurrent.AbstractDelegatingExecutorService
awaitTermination, getDelegate, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow, submit, submit, submitMethods inherited from class ubic.gemma.core.util.concurrent.AbstractDelegatingExecutor
execute
-
Constructor Details
-
BatchTaskExecutorService
public BatchTaskExecutorService(ExecutorService delegate, BatchTaskProgressReporter progressReporter)
-
-
Method Details
-
getProgressReporter
-
wrap
-
wrap
-
getRemainingTasks
public int getRemainingTasks()Obtain the number of completed batch tasks. -
shutdownAndAwaitTermination
- Throws:
InterruptedException
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceExecutorService
-