Class PassThroughCommandLineArgsProvider
java.lang.Object
org.springframework.cloud.task.batch.partition.PassThroughCommandLineArgsProvider
- All Implemented Interfaces:
CommandLineArgsProvider
Returns the
List<String> provided.- Since:
- 1.1.0
- Author:
- Michael Minella
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCommandLineArgs(org.springframework.batch.item.ExecutionContext executionContext) Returns a unique list of command line arguements to be passed to the partition's worker for the specifiedExecutionContext.
-
Constructor Details
-
PassThroughCommandLineArgsProvider
-
-
Method Details
-
getCommandLineArgs
public List<String> getCommandLineArgs(org.springframework.batch.item.ExecutionContext executionContext) Description copied from interface:CommandLineArgsProviderReturns a unique list of command line arguements to be passed to the partition's worker for the specifiedExecutionContext. Note: This method is called once per partition.- Specified by:
getCommandLineArgsin interfaceCommandLineArgsProvider- Parameters:
executionContext- the unique state for the step to be executed.- Returns:
- a list of formatted command line arguments to be passed to the worker (the list will be joined via spaces).
-