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
ConstructorsConstructorDescriptionTaskLauncherHandler(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 TypeMethodDescriptionvoidlaunchWorker(org.springframework.batch.core.StepExecution workerStepExecution) Launches the partition for the StepExecution.voidrun()
-
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- TheCommandLineArgsProviderthat provides command line arguments passed to each partition's execution.taskRepository- TheTaskRepositorytask 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- TheTaskExecutionto be associated with the partition.environmentVariablesProvider-EnvironmentVariablesProviderthat provides the environmennt variables.resource- TheResourceto be launched.deploymentProperties- TheMapcontaining the deployment properties for the partition.taskLauncher-TaskLauncherthat is used to launch the partition.applicationName- The name to be associated with task.workerStepExecution- TheStepExecutionfor 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- TheCommandLineArgsProviderthat provides command line arguments passed to each partition's execution.taskRepository- TheTaskRepositorytask 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- TheTaskExecutionto be associated with the partition.environmentVariablesProvider-EnvironmentVariablesProviderthat provides the environmennt variables.resource- TheResourceto be launched.deploymentProperties- TheMapcontaining the deployment properties for the partition.taskLauncher-TaskLauncherthat is used to launch the partition.applicationName- The name to be associated with task.
-
-
Method Details