public class SimpleCommandLineArgsProvider extends TaskExecutionListenerSupport implements CommandLineArgsProvider
TaskExecution
provided
appended with any additional arguments configured.Constructor and Description |
---|
SimpleCommandLineArgsProvider() |
SimpleCommandLineArgsProvider(TaskExecution taskExecution)
Deprecated.
use the
TaskExecutionListener
functionality to obtain the TaskExecution |
Modifier and Type | Method and Description |
---|---|
List<String> |
getCommandLineArgs(org.springframework.batch.item.ExecutionContext executionContext)
Returns a unique list of command line arguements to be passed to the partition's
worker for the specified
ExecutionContext . |
void |
onTaskStartup(TaskExecution taskExecution) |
void |
setAppendedArgs(List<String> appendedArgs)
Additional command line args to be appended.
|
onTaskEnd, onTaskFailed
public SimpleCommandLineArgsProvider()
@Deprecated public SimpleCommandLineArgsProvider(TaskExecution taskExecution)
TaskExecutionListener
functionality to obtain the TaskExecution
taskExecution
- task executionpublic void onTaskStartup(TaskExecution taskExecution)
onTaskStartup
in interface TaskExecutionListener
onTaskStartup
in class TaskExecutionListenerSupport
public void setAppendedArgs(List<String> appendedArgs)
appendedArgs
- list of argumentspublic List<String> getCommandLineArgs(org.springframework.batch.item.ExecutionContext executionContext)
CommandLineArgsProvider
ExecutionContext
.
Note: This method is called once per partition.getCommandLineArgs
in interface CommandLineArgsProvider
executionContext
- the unique state for the step to be executed.Copyright © 2021 Pivotal Software, Inc.. All rights reserved.