public class JvmInitializers
extends java.lang.Object
JvmInitializer implementations.| Constructor and Description |
|---|
JvmInitializers() |
| Modifier and Type | Method and Description |
|---|---|
static void |
runBeforeProcessing(org.apache.beam.sdk.options.PipelineOptions options)
Finds all registered implementations of JvmInitializer and executes their
beforeProcessing methods. |
static void |
runOnStartup()
Finds all registered implementations of JvmInitializer and executes their
onStartup
methods. |
public static void runOnStartup()
onStartup
methods. Should be called in worker harness implementations at the very beginning of their main
method.public static void runBeforeProcessing(org.apache.beam.sdk.options.PipelineOptions options)
beforeProcessing methods. Should be called in worker harness implementations after
initialization but before beginning to process any data.options - The pipeline options passed to the worker.