Class TaskLauncherHandler
java.lang.Object
org.springframework.cloud.task.batch.partition.TaskLauncherHandler
- All Implemented Interfaces:
Runnable
Supports the launching of partitions.
- Author:
- Glenn Renfro
-
Constructor Summary
ConstructorDescriptionTaskLauncherHandler
(CommandLineArgsProvider commandLineArgsProvider, TaskRepository taskRepository, boolean defaultArgsAsEnvironmentVars, String stepName, TaskExecution taskExecution, EnvironmentVariablesProvider environmentVariablesProvider, org.springframework.core.io.Resource resource, Map<String, String> deploymentProperties, org.springframework.cloud.deployer.spi.task.TaskLauncher taskLauncher, String applicationName) TaskLauncherHandler
(CommandLineArgsProvider commandLineArgsProvider, TaskRepository taskRepository, boolean defaultArgsAsEnvironmentVars, String stepName, TaskExecution taskExecution, EnvironmentVariablesProvider environmentVariablesProvider, org.springframework.core.io.Resource resource, Map<String, String> deploymentProperties, org.springframework.cloud.deployer.spi.task.TaskLauncher taskLauncher, String applicationName, org.springframework.batch.core.StepExecution workerStepExecution) -
Method Summary
Modifier and TypeMethodDescriptionvoid
launchWorker
(org.springframework.batch.core.StepExecution workerStepExecution) Launches the partition for the StepExecution.void
run()
-
Constructor Details
-
TaskLauncherHandler
public TaskLauncherHandler(CommandLineArgsProvider commandLineArgsProvider, TaskRepository taskRepository, boolean defaultArgsAsEnvironmentVars, String stepName, TaskExecution taskExecution, EnvironmentVariablesProvider environmentVariablesProvider, org.springframework.core.io.Resource resource, Map<String, String> deploymentProperties, org.springframework.cloud.deployer.spi.task.TaskLauncher taskLauncher, String applicationName, org.springframework.batch.core.StepExecution workerStepExecution) - Parameters:
commandLineArgsProvider
- TheCommandLineArgsProvider
that provides command line arguments passed to each partition's execution.taskRepository
- TheTaskRepository
task repository for launching the partition.defaultArgsAsEnvironmentVars
- - If set to true, the default args that are used internally by Spring Cloud Task and Spring Batch are passed as environment variables instead of command line arguments.stepName
- The name of the step.taskExecution
- TheTaskExecution
to be associated with the partition.environmentVariablesProvider
-EnvironmentVariablesProvider
that provides the environmennt variables.resource
- TheResource
to be launched.deploymentProperties
- TheMap
containing the deployment properties for the partition.taskLauncher
-TaskLauncher
that is used to launch the partition.applicationName
- The name to be associated with task.workerStepExecution
- TheStepExecution
for the paritition.
-
TaskLauncherHandler
public TaskLauncherHandler(CommandLineArgsProvider commandLineArgsProvider, TaskRepository taskRepository, boolean defaultArgsAsEnvironmentVars, String stepName, TaskExecution taskExecution, EnvironmentVariablesProvider environmentVariablesProvider, org.springframework.core.io.Resource resource, Map<String, String> deploymentProperties, org.springframework.cloud.deployer.spi.task.TaskLauncher taskLauncher, String applicationName) - Parameters:
commandLineArgsProvider
- TheCommandLineArgsProvider
that provides command line arguments passed to each partition's execution.taskRepository
- TheTaskRepository
task repository for launching the partition.defaultArgsAsEnvironmentVars
- - If set to true, the default args that are used internally by Spring Cloud Task and Spring Batch are passed as environment variables instead of command line arguments.stepName
- The name of the step.taskExecution
- TheTaskExecution
to be associated with the partition.environmentVariablesProvider
-EnvironmentVariablesProvider
that provides the environmennt variables.resource
- TheResource
to be launched.deploymentProperties
- TheMap
containing the deployment properties for the partition.taskLauncher
-TaskLauncher
that is used to launch the partition.applicationName
- The name to be associated with task.
-
-
Method Details