public interface ExecutorPlugin
Modifier and Type | Method and Description |
---|---|
default void |
init()
Initialize the executor plugin.
|
default void |
shutdown()
Clean up and terminate this plugin.
|
default void init()
Each executor will, during its initialization, invoke this method on each plugin provided in the spark.executor.plugins configuration.
Plugins should create threads in their implementation of this method for any polling, blocking, or intensive computation.
default void shutdown()
This function is called during the executor shutdown phase. The executor will wait for the plugin to terminate before continuing its own shutdown.