public interface TaskService
Modifier and Type | Method and Description |
---|---|
void |
cleanupExecution(long id)
Cleanup the resources that resulted from running the task with the given execution id.
|
void |
deleteTaskDefinition(String name)
Destroy the task definition.
|
long |
executeTask(String taskName,
Map<String,String> taskDeploymentProperties,
List<String> commandLineArgs)
Execute a task with the provided task name and optional runtime properties.
|
long |
getMaximumConcurrentTasks()
Provide the maximum number of concurrent tasks.
|
boolean |
isComposedDefinition(String dsl)
Determines if the DSL is a composed DSL definition.
|
void |
saveTaskDefinition(String name,
String dsl)
Saves the task definition.
|
ValidationStatus |
validateTask(String name)
Verifies that all apps in the task are valid.
|
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 argumentsvoid cleanupExecution(long id)
id
- the execution idvoid saveTaskDefinition(String name, String dsl)
name
- The name of the task.dsl
- The dsl that comprises the task.void deleteTaskDefinition(String name)
name
- The name of the task.boolean isComposedDefinition(String dsl)
dsl
- the Task DSL to evaluatelong getMaximumConcurrentTasks()
ValidationStatus validateTask(String name)
name
- the name of the definitionValidationStatus
for a task.Copyright © 2018 Pivotal Software, Inc.. All rights reserved.