public class DefaultTaskService extends Object implements TaskService
TaskService
interface. Provide service
methods for Task
s.
Several properties in this class are annotated with Value
annotations:
null
if not set.Constructor and Description |
---|
DefaultTaskService(TaskDefinitionRepository repository,
DeploymentIdRepository deploymentIdRepository,
org.springframework.cloud.deployer.resource.registry.UriRegistry registry,
ResourceLoader resourceLoader,
org.springframework.cloud.deployer.spi.task.TaskLauncher taskLauncher)
Initializes the
DefaultTaskService . |
public DefaultTaskService(TaskDefinitionRepository repository, DeploymentIdRepository deploymentIdRepository, org.springframework.cloud.deployer.resource.registry.UriRegistry registry, ResourceLoader resourceLoader, org.springframework.cloud.deployer.spi.task.TaskLauncher taskLauncher)
DefaultTaskService
.repository
- the TaskDefinitionRepository
this service will use for task CRUD operations.deploymentIdRepository
- the repository this service will use for deployment IDsregistry
- URI registry this service will use to look up app URIs.resourceLoader
- the ResourceLoader
that will resolve URIs to Resource
s.taskLauncher
- the launcher this service will use to launch task apps.public void executeTask(String taskName, Map<String,String> runtimeProperties, List<String> runtimeParams)
TaskService
executeTask
in interface TaskService
taskName
- Name of the task. Must not be null or empty.runtimeProperties
- Optional runtime properties. Must not be null.runtimeParams
- Optional runtime commandline argumentsCopyright © 2016 Pivotal Software, Inc.. All rights reserved.