Class TaskLaunchRequest
java.lang.Object
org.springframework.cloud.task.launcher.TaskLaunchRequest
- All Implemented Interfaces:
Serializable
Request that contains the maven repository and property information required by the
TaskLauncherSink to launch the task.
- Author:
- Glenn Renfro
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the name that will be associated with the launched task.Returns the properties used by aTaskLauncher.Retrieves the environment variables for the task.getUri()inthashCode()voidsetApplicationName(String applicationName) Sets the name to be applied to the launched task.toString()
-
Constructor Details
-
TaskLaunchRequest
public TaskLaunchRequest(String uri, List<String> commandlineArguments, Map<String, String> environmentProperties, Map<String, String> deploymentProperties, String applicationName) Constructor for the TaskLaunchRequest.- Parameters:
uri- the URI to the task artifact to be launched.commandlineArguments- list of commandlineArguments to be used by the taskenvironmentProperties- are the environment variables for this task.deploymentProperties- are the variables used to setup task on the platform.applicationName- name to be applied to the launched task. If set to null then the launched task name will be "Task-`hash code of the TaskLaunchRequest`.
-
TaskLaunchRequest
public TaskLaunchRequest()Constructor for the TaskLaunchRequest.- Since:
- 2.0.0
-
-
Method Details
-
getUri
- Returns:
- the current uri to the artifact for this launch request.
-
getCommandlineArguments
- Returns:
- an unmodifiable list of arguments that will be used for the task execution
-
getEnvironmentProperties
Retrieves the environment variables for the task.- Returns:
- map containing the environment variables for the task.
-
getDeploymentProperties
Returns the properties used by aTaskLauncher.- Returns:
- deployment properties
-
getApplicationName
Returns the name that will be associated with the launched task.- Returns:
- string containing the application name.
-
setApplicationName
Sets the name to be applied to the launched task. If set to null then the launched task name will be "Task-`unique id`".- Parameters:
applicationName- the name to be
-
toString
-
equals
-
hashCode
public int hashCode()
-