public class ETLPreviewThreadManager extends java.lang.Object implements ETLThreadManager
ETLThreadManager
interface for managing threads for ETL Preview (edit mode) Execution.
It creates a Fixed Thread Pool. The number of threads is determined by a number of factors:
ETLThreadManager.MIN_THREADS_FOR_CONCURRENCY
#getMaxThreadsPerETLPreviewJob()
ETLThreadManager.MIN_THREADS_FOR_CONCURRENCY
.MIN_THREADS_FOR_CONCURRENCY
Constructor and Description |
---|
ETLPreviewThreadManager(int headCount) |
Modifier and Type | Method and Description |
---|---|
int |
getMaxThreads()
Get the maximum number of threads in the Thread Manager
|
void |
shutdown()
Shut down the Thread Manager.
|
java.util.concurrent.Future<java.lang.Void> |
submit(ExecutionHead head)
Submit a head task to the Thread Manager and return a Future.
|
public int getMaxThreads()
ETLThreadManager
getMaxThreads
in interface ETLThreadManager
public java.util.concurrent.Future<java.lang.Void> submit(ExecutionHead head)
ETLThreadManager
submit
in interface ETLThreadManager
head
- - A runnable which can execute a "head" ETL step.public void shutdown()
ETLThreadManager
shutdown
in interface ETLThreadManager