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)
TaskExecutionInfoServiceTaskExecutionInformation instance for the information provided.findTaskExecutionInformation in interface TaskExecutionInfoServicetaskName - the name of the task definitiontaskDeploymentProperties - the deployment properties to use for the TaskExecutionInformationcomposedTaskRunnerName - user provided CTR app name to use.TaskExecutionInformationpublic List<org.springframework.cloud.deployer.spi.core.AppDeploymentRequest> createTaskDeploymentRequests(String taskName, String dslText)
TaskExecutionInfoServicecreateTaskDeploymentRequests in interface TaskExecutionInfoServicetaskName - name of the taskdslText - String of the dsl textAppDeploymentRequest based on the dsl providedpublic AllPlatformsTaskExecutionInformation findAllPlatformTaskExecutionInformation()
findAllPlatformTaskExecutionInformation in interface TaskExecutionInfoServiceCopyright © 2020 Pivotal Software, Inc.. All rights reserved.