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.dataflow.aggregate.task.AggregateTaskExplorer taskExplorer,
TaskDefinitionRepository taskDefinitionRepository,
TaskConfigurationProperties taskConfigurationProperties,
LauncherRepository launcherRepository,
List<TaskPlatform> taskPlatforms)
Deprecated.
|
DefaultTaskExecutionInfoService(org.springframework.boot.autoconfigure.jdbc.DataSourceProperties dataSourceProperties,
AppRegistryService appRegistryService,
org.springframework.cloud.dataflow.aggregate.task.AggregateTaskExplorer taskExplorer,
TaskDefinitionRepository taskDefinitionRepository,
TaskConfigurationProperties taskConfigurationProperties,
LauncherRepository launcherRepository,
List<TaskPlatform> taskPlatforms,
ComposedTaskRunnerConfigurationProperties composedTaskRunnerConfigurationProperties)
Initializes the
DefaultTaskExecutionInfoService . |
Modifier and Type | Method and Description |
---|---|
Set<String> |
composedTaskChildNames(String taskName) |
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,
boolean addDatabaseCredentials,
Map<String,String> previousTaskDeploymentProperties)
Create a the
TaskExecutionInformation instance for the information provided. |
Set<String> |
taskNames(String taskName) |
@Deprecated public DefaultTaskExecutionInfoService(org.springframework.boot.autoconfigure.jdbc.DataSourceProperties dataSourceProperties, AppRegistryService appRegistryService, org.springframework.cloud.dataflow.aggregate.task.AggregateTaskExplorer 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 taskslauncherRepository
- the launcher repositorytaskPlatforms
- the task platformspublic DefaultTaskExecutionInfoService(org.springframework.boot.autoconfigure.jdbc.DataSourceProperties dataSourceProperties, AppRegistryService appRegistryService, org.springframework.cloud.dataflow.aggregate.task.AggregateTaskExplorer taskExplorer, TaskDefinitionRepository taskDefinitionRepository, TaskConfigurationProperties taskConfigurationProperties, LauncherRepository launcherRepository, List<TaskPlatform> taskPlatforms, ComposedTaskRunnerConfigurationProperties composedTaskRunnerConfigurationProperties)
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 taskslauncherRepository
- the launcher repositorytaskPlatforms
- the task platformscomposedTaskRunnerConfigurationProperties
- the properties used to define the behavior of CTRpublic TaskExecutionInformation findTaskExecutionInformation(String taskName, Map<String,String> taskDeploymentProperties, boolean addDatabaseCredentials, Map<String,String> previousTaskDeploymentProperties)
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
addDatabaseCredentials
- true if database credentials should be added to the TaskExecutionInformation
previousTaskDeploymentProperties
- the previous deployment properties to use for the TaskExecutionInformation
TaskExecutionInformation
public Set<String> composedTaskChildNames(String taskName)
composedTaskChildNames
in interface TaskExecutionInfoService
public Set<String> taskNames(String taskName)
taskNames
in interface TaskExecutionInfoService
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 © 2023 Pivotal Software, Inc.. All rights reserved.