Class TaskLaunchRequest
java.lang.Object
org.springframework.cloud.task.launcher.TaskLaunchRequest
- All Implemented Interfaces:
Serializable
Deprecated.
This feature is now end-of-life and will be removed in a future release. No
replacement is planned. Please migrate away from using this functionality.
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 TypeMethodDescriptionbooleanDeprecated.Deprecated.Returns the name that will be associated with the launched task.Deprecated.Deprecated.Returns the properties used by aTaskLauncher.Deprecated.Retrieves the environment variables for the task.getUri()Deprecated.inthashCode()Deprecated.voidsetApplicationName(String applicationName) Deprecated.Sets the name to be applied to the launched task.toString()Deprecated.
-
Constructor Details
-
TaskLaunchRequest
public TaskLaunchRequest(String uri, List<String> commandlineArguments, Map<String, String> environmentProperties, Map<String, String> deploymentProperties, String applicationName) Deprecated.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()Deprecated.Constructor for the TaskLaunchRequest.- Since:
- 2.0.0
-
-
Method Details
-
getUri
Deprecated.- Returns:
- the current uri to the artifact for this launch request.
-
getCommandlineArguments
Deprecated.- Returns:
- an unmodifiable list of arguments that will be used for the task execution
-
getEnvironmentProperties
Deprecated.Retrieves the environment variables for the task.- Returns:
- map containing the environment variables for the task.
-
getDeploymentProperties
Deprecated.Returns the properties used by aTaskLauncher.- Returns:
- deployment properties
-
getApplicationName
Deprecated.Returns the name that will be associated with the launched task.- Returns:
- string containing the application name.
-
setApplicationName
Deprecated.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
Deprecated. -
equals
Deprecated. -
hashCode
public int hashCode()Deprecated.
-