public class DefaultTaskExecutionInfoService extends Object implements TaskExecutionInfoService
DefaultTaskExecutionInfoService
interface.
Provide service methods for DefaultTaskExecutionService
about task definitions
and execution related information.Constructor and Description |
---|
DefaultTaskExecutionInfoService(org.springframework.boot.autoconfigure.jdbc.DataSourceProperties dataSourceProperties,
AppRegistryService appRegistryService,
org.springframework.cloud.task.repository.TaskExplorer taskExplorer,
TaskDefinitionRepository taskDefinitionRepository,
TaskConfigurationProperties taskConfigurationProperties,
LauncherRepository launcherRepository,
List<TaskPlatform> taskPlatforms)
Initializes the
DefaultTaskExecutionInfoService . |
Modifier and Type | Method and Description |
---|---|
List<org.springframework.cloud.deployer.spi.core.AppDeploymentRequest> |
createTaskDeploymentRequests(String taskName,
String dslText)
Creates requests for a composed task
|
AllPlatformsTaskExecutionInformation |
findAllPlatformTaskExecutionInformation() |
TaskExecutionInformation |
findTaskExecutionInformation(String taskName,
Map<String,String> taskDeploymentProperties,
String composedTaskRunnerName)
Create a the
TaskExecutionInformation instance for the information provided. |
public DefaultTaskExecutionInfoService(org.springframework.boot.autoconfigure.jdbc.DataSourceProperties dataSourceProperties, AppRegistryService appRegistryService, org.springframework.cloud.task.repository.TaskExplorer taskExplorer, TaskDefinitionRepository taskDefinitionRepository, TaskConfigurationProperties taskConfigurationProperties, LauncherRepository launcherRepository, List<TaskPlatform> taskPlatforms)
DefaultTaskExecutionInfoService
.dataSourceProperties
- the data source properties.appRegistryService
- URI registry this service will use to look up app URIs.taskExplorer
- the explorer this service will use to lookup task executionstaskDefinitionRepository
- the TaskDefinitionRepository
this service will
use for task CRUD operations.taskConfigurationProperties
- the properties used to define the behavior of taskspublic TaskExecutionInformation findTaskExecutionInformation(String taskName, Map<String,String> taskDeploymentProperties, String composedTaskRunnerName)
TaskExecutionInfoService
TaskExecutionInformation
instance for the information provided.findTaskExecutionInformation
in interface TaskExecutionInfoService
taskName
- the name of the task definitiontaskDeploymentProperties
- the deployment properties to use for the TaskExecutionInformation
composedTaskRunnerName
- user provided CTR app name to use.TaskExecutionInformation
public List<org.springframework.cloud.deployer.spi.core.AppDeploymentRequest> createTaskDeploymentRequests(String taskName, String dslText)
TaskExecutionInfoService
createTaskDeploymentRequests
in interface TaskExecutionInfoService
taskName
- name of the taskdslText
- String of the dsl textAppDeploymentRequest
based on the dsl providedpublic AllPlatformsTaskExecutionInformation findAllPlatformTaskExecutionInformation()
findAllPlatformTaskExecutionInformation
in interface TaskExecutionInfoService
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.