public class TaskLauncherTasklet extends Object implements org.springframework.batch.core.step.tasklet.Tasklet
| Constructor and Description |
|---|
TaskLauncherTasklet(org.springframework.cloud.dataflow.rest.client.TaskOperations taskOperations,
org.springframework.cloud.task.repository.TaskExplorer taskExplorer,
ComposedTaskProperties composedTaskProperties,
String taskName) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.batch.repeat.RepeatStatus |
execute(org.springframework.batch.core.StepContribution contribution,
org.springframework.batch.core.scope.context.ChunkContext chunkContext)
Executes the task as specified by the taskName with the associated
properties and arguments.
|
void |
setArguments(List<String> arguments) |
void |
setProperties(Map<String,String> properties) |
public TaskLauncherTasklet(org.springframework.cloud.dataflow.rest.client.TaskOperations taskOperations,
org.springframework.cloud.task.repository.TaskExplorer taskExplorer,
ComposedTaskProperties composedTaskProperties,
String taskName)
public org.springframework.batch.repeat.RepeatStatus execute(org.springframework.batch.core.StepContribution contribution,
org.springframework.batch.core.scope.context.ChunkContext chunkContext)
execute in interface org.springframework.batch.core.step.tasklet.Taskletcontribution - mutable state to be passed back to update the current step executionchunkContext - contains the task-execution-id used by the listener.Copyright © 2018 Pivotal Software, Inc.. All rights reserved.