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, onTaskFailedpublic SimpleCommandLineArgsProvider()
@Deprecated public SimpleCommandLineArgsProvider(TaskExecution taskExecution)
TaskExecutionListener
functionality to obtain the TaskExecutiontaskExecution - task executionpublic void onTaskStartup(TaskExecution taskExecution)
onTaskStartup in interface TaskExecutionListeneronTaskStartup in class TaskExecutionListenerSupportpublic void setAppendedArgs(List<String> appendedArgs)
appendedArgs - list of argumentspublic List<String> getCommandLineArgs(org.springframework.batch.item.ExecutionContext executionContext)
CommandLineArgsProviderExecutionContext.
Note: This method is called once per partition.getCommandLineArgs in interface CommandLineArgsProviderexecutionContext - the unique state for the step to be executed.Copyright © 2017 Pivotal Software, Inc.. All rights reserved.