public interface TaskExecutionService
Modifier and Type | Method and Description |
---|---|
long |
executeTask(String taskName,
Map<String,String> taskDeploymentProperties,
List<String> commandLineArgs)
Execute a task with the provided task name and optional runtime properties.
|
long |
executeTask(String taskName,
Map<String,String> taskDeploymentProperties,
List<String> commandLineArgs,
String composedTaskRunnerName)
Execute a task with the provided task name and optional runtime properties.
|
TaskManifest |
findTaskManifestById(Long id)
Retrieve the TaskManifest for the execution id provided
|
String |
getLog(String platformName,
String taskId)
Retrieve logs for the task application.
|
void |
stopTaskExecution(Set<Long> ids)
Request the platform to stop the task executions for the ids provided.
|
void |
stopTaskExecution(Set<Long> ids,
String platform)
Request the platform to stop the task executions for the ids provided.
|
long executeTask(String taskName, Map<String,String> taskDeploymentProperties, List<String> commandLineArgs, String composedTaskRunnerName)
taskName
- Name of the task. Must not be null or empty.taskDeploymentProperties
- Optional deployment properties. Must not be null.commandLineArgs
- Optional runtime commandline argumentcomposedTaskRunnerName
- the name of the app the user would like to use if they don't want the default. If null default will be used.long executeTask(String taskName, Map<String,String> taskDeploymentProperties, List<String> commandLineArgs)
taskName
- Name of the task. Must not be null or empty.taskDeploymentProperties
- Optional deployment properties. Must not be null.commandLineArgs
- Optional runtime commandline argumentString getLog(String platformName, String taskId)
platformName
- the name of the platformtaskId
- the ID that uniquely identifies the taskvoid stopTaskExecution(Set<Long> ids)
ids
- a set of ids for the task executions to be stopped.void stopTaskExecution(Set<Long> ids, String platform)
ids
- a set of ids for the task executions to be stopped.platform
- The name of the platform where the tasks are executing.TaskManifest findTaskManifestById(Long id)
id
- task exectution idTaskManifest
or null if not found.Copyright © 2020 Pivotal Software, Inc.. All rights reserved.