Package org.apache.beam.sdk.fn
Class JvmInitializers
- java.lang.Object
-
- org.apache.beam.sdk.fn.JvmInitializers
-
public class JvmInitializers extends java.lang.ObjectHelpers for executingJvmInitializerimplementations.
-
-
Constructor Summary
Constructors Constructor Description JvmInitializers()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidrunBeforeProcessing(org.apache.beam.sdk.options.PipelineOptions options)Finds all registered implementations of JvmInitializer and executes theirbeforeProcessingmethods.static voidrunOnStartup()Finds all registered implementations of JvmInitializer and executes theironStartupmethods.
-
-
-
Method Detail
-
runOnStartup
public static void runOnStartup()
Finds all registered implementations of JvmInitializer and executes theironStartupmethods. Should be called in worker harness implementations at the very beginning of their main method.
-
runBeforeProcessing
public static void runBeforeProcessing(org.apache.beam.sdk.options.PipelineOptions options)
Finds all registered implementations of JvmInitializer and executes theirbeforeProcessingmethods. Should be called in worker harness implementations after initialization but before beginning to process any data.- Parameters:
options- The pipeline options passed to the worker.
-
-