@InterfaceAudience.Private @InterfaceStability.Unstable public class TezSharedExecutor extends Object implements TezExecutors
| Constructor and Description |
|---|
TezSharedExecutor(org.apache.hadoop.conf.Configuration conf) |
| Modifier and Type | Method and Description |
|---|---|
ExecutorService |
createExecutorService(int poolSize,
String threadName)
Create a ExecutorService with the given parameters.
|
protected void |
finalize() |
void |
shutdown()
Shutdown all the ExecutorService created using this factory.
|
void |
shutdownNow()
Shutdown all the ExecutorService created using this factory.
|
public TezSharedExecutor(org.apache.hadoop.conf.Configuration conf)
public ExecutorService createExecutorService(int poolSize, String threadName)
TezExecutorscreateExecutorService in interface TezExecutorspoolSize - Represents total number of tasks to be executed in parallel.threadName - The name the thread should take when executing tasks from this executorpublic void shutdown()
TezExecutorsshutdown in interface TezExecutorspublic void shutdownNow()
TezExecutorsshutdownNow in interface TezExecutorsCopyright © 2019 Apache Software Foundation. All rights reserved.