public interface TaskExecutionService
Modifier and Type | Method and Description |
---|---|
LaunchResponse |
executeTask(String taskName,
Map<String,String> taskDeploymentProperties,
List<String> commandLineArgs)
Execute a task with the provided task name and optional runtime properties.
|
TaskManifest |
findTaskManifestById(Long id,
String schemaTarget)
Retrieve the TaskManifest for the execution id provided
|
Set<Long> |
getAllTaskExecutionIds(boolean onlyCompleted,
String taskName)
Returns all the task execution IDs with the option to include only the completed task executions.
|
Integer |
getAllTaskExecutionsCount(boolean onlyCompleted,
String taskName)
Returns the count of all the task execution IDs with the option to include only the completed task executions.
|
Integer |
getAllTaskExecutionsCount(boolean onlyCompleted,
String taskName,
Integer includeTasksEndedMinDaysAgo)
Returns the count of all the task execution IDs with the option to include only the completed task executions.
|
String |
getLog(String platformName,
String taskId,
String schemaTarget)
Retrieve logs for the task application.
|
void |
stopTaskExecution(Set<Long> ids,
String schemaTarget)
Request the platform to stop the task executions for the ids provided.
|
void |
stopTaskExecution(Set<Long> ids,
String schemaTarget,
String platform)
Request the platform to stop the task executions for the ids provided.
|
LaunchResponse 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, String schemaTarget)
platformName
- the name of the platformtaskId
- the ID that uniquely identifies the taskvoid stopTaskExecution(Set<Long> ids, String schemaTarget)
ids
- a set of ids for the task executions to be stopped.void stopTaskExecution(Set<Long> ids, String schemaTarget, String platform)
ids
- a set of ids for the task executions to be stopped.schemaTarget
- the schema target of the task execution.platform
- The name of the platform where the tasks are executing.TaskManifest findTaskManifestById(Long id, String schemaTarget)
id
- task exectution idschemaTarget
- the schema target of the task execution.TaskManifest
or null if not found.Set<Long> getAllTaskExecutionIds(boolean onlyCompleted, String taskName)
onlyCompleted
- filter by completed task executionstaskName
- the task name, if null then retrieve all the tasksInteger getAllTaskExecutionsCount(boolean onlyCompleted, String taskName)
onlyCompleted
- whether to include only completed task executionstaskName
- the task name, if null then retrieve all the tasksInteger getAllTaskExecutionsCount(boolean onlyCompleted, String taskName, Integer includeTasksEndedMinDaysAgo)
onlyCompleted
- whether to include only completed task executions (ignored when includeTasksEndedMinDaysAgo
is specified)taskName
- the task name, if null then retrieve all the tasksincludeTasksEndedMinDaysAgo
- only include tasks that have ended at least this many days agoCopyright © 2024 Pivotal Software, Inc.. All rights reserved.