Class DefaultTaskExecutionInfoService
java.lang.Object
org.springframework.cloud.dataflow.server.service.impl.DefaultTaskExecutionInfoService
- All Implemented Interfaces:
TaskExecutionInfoService
Default implementation of the
DefaultTaskExecutionInfoService
interface.
Provide service methods for DefaultTaskExecutionService
about task definitions
and execution related information.- Author:
- Michael Minella, Marius Bogoevici, Glenn Renfro, Mark Fisher, Janne Valkealahti, Gunnar Hillert, Thomas Risberg, Ilayaperumal Gopinathan, Michael Wirth, David Turanski, Daniel Serleg, Corneil du Plessis
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultTaskExecutionInfoService
(org.springframework.boot.autoconfigure.jdbc.DataSourceProperties dataSourceProperties, AppRegistryService appRegistryService, DataflowTaskExplorer taskExplorer, TaskDefinitionRepository taskDefinitionRepository, TaskConfigurationProperties taskConfigurationProperties, LauncherRepository launcherRepository, List<TaskPlatform> taskPlatforms, ComposedTaskRunnerConfigurationProperties composedTaskRunnerConfigurationProperties) Initializes theDefaultTaskExecutionInfoService
. -
Method Summary
Modifier and TypeMethodDescriptioncomposedTaskChildNames
(String taskName) List<org.springframework.cloud.deployer.spi.core.AppDeploymentRequest>
createTaskDeploymentRequests
(String taskName, String dslText) Creates requests for a composed taskfindTaskExecutionInformation
(String taskName, Map<String, String> taskDeploymentProperties, boolean addDatabaseCredentials, Map<String, String> previousTaskDeploymentProperties) Create a theTaskExecutionInformation
instance for the information provided.
-
Constructor Details
-
DefaultTaskExecutionInfoService
public DefaultTaskExecutionInfoService(org.springframework.boot.autoconfigure.jdbc.DataSourceProperties dataSourceProperties, AppRegistryService appRegistryService, DataflowTaskExplorer taskExplorer, TaskDefinitionRepository taskDefinitionRepository, TaskConfigurationProperties taskConfigurationProperties, LauncherRepository launcherRepository, List<TaskPlatform> taskPlatforms, ComposedTaskRunnerConfigurationProperties composedTaskRunnerConfigurationProperties) Initializes theDefaultTaskExecutionInfoService
.- Parameters:
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
- theTaskDefinitionRepository
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 CTR
-
-
Method Details
-
findTaskExecutionInformation
public TaskExecutionInformation findTaskExecutionInformation(String taskName, Map<String, String> taskDeploymentProperties, boolean addDatabaseCredentials, Map<String, String> previousTaskDeploymentProperties) Description copied from interface:TaskExecutionInfoService
Create a theTaskExecutionInformation
instance for the information provided.- Specified by:
findTaskExecutionInformation
in interfaceTaskExecutionInfoService
- Parameters:
taskName
- the name of the task definitiontaskDeploymentProperties
- the deployment properties to use for theTaskExecutionInformation
addDatabaseCredentials
- true if database credentials should be added to theTaskExecutionInformation
previousTaskDeploymentProperties
- the previous deployment properties to use for theTaskExecutionInformation
- Returns:
- instance of
TaskExecutionInformation
-
composedTaskChildNames
- Specified by:
composedTaskChildNames
in interfaceTaskExecutionInfoService
-
taskNames
- Specified by:
taskNames
in interfaceTaskExecutionInfoService
-
createTaskDeploymentRequests
public List<org.springframework.cloud.deployer.spi.core.AppDeploymentRequest> createTaskDeploymentRequests(String taskName, String dslText) Description copied from interface:TaskExecutionInfoService
Creates requests for a composed task- Specified by:
createTaskDeploymentRequests
in interfaceTaskExecutionInfoService
- Parameters:
taskName
- name of the taskdslText
- String of the dsl text- Returns:
- a list of
AppDeploymentRequest
based on the dsl provided
-
findAllPlatformTaskExecutionInformation
- Specified by:
findAllPlatformTaskExecutionInformation
in interfaceTaskExecutionInfoService
-