Interface EnvironmentVariablesProvider
- All Known Implementing Classes:
NoOpEnvironmentVariablesProvider
,SimpleEnvironmentVariablesProvider
public interface EnvironmentVariablesProvider
Strategy interface to allow for advanced configuration of environment variables for
each worker in a partitioned job.
- Since:
- 1.0.2
- Author:
- Michael Minella
-
Method Summary
Modifier and TypeMethodDescriptiongetEnvironmentVariables
(org.springframework.batch.item.ExecutionContext executionContext) Provides aMap
of Strings to be used as environment variables.
-
Method Details
-
getEnvironmentVariables
Map<String,String> getEnvironmentVariables(org.springframework.batch.item.ExecutionContext executionContext) Provides aMap
of Strings to be used as environment variables. This method will be called for each worker step. For example, if there are 5 partitions, this method will be called 5 times.- Parameters:
executionContext
- theExecutionContext
associated with the worker's step- Returns:
- A
Map
of values to be used as environment variables
-