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 theTaskExecutionInformationinstance 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- theTaskDefinitionRepositorythis 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:TaskExecutionInfoServiceCreate a theTaskExecutionInformationinstance for the information provided.- Specified by:
findTaskExecutionInformationin interfaceTaskExecutionInfoService- Parameters:
taskName- the name of the task definitiontaskDeploymentProperties- the deployment properties to use for theTaskExecutionInformationaddDatabaseCredentials- true if database credentials should be added to theTaskExecutionInformationpreviousTaskDeploymentProperties- the previous deployment properties to use for theTaskExecutionInformation- Returns:
- instance of
TaskExecutionInformation
-
composedTaskChildNames
- Specified by:
composedTaskChildNamesin interfaceTaskExecutionInfoService
-
taskNames
- Specified by:
taskNamesin interfaceTaskExecutionInfoService
-
createTaskDeploymentRequests
public List<org.springframework.cloud.deployer.spi.core.AppDeploymentRequest> createTaskDeploymentRequests(String taskName, String dslText) Description copied from interface:TaskExecutionInfoServiceCreates requests for a composed task- Specified by:
createTaskDeploymentRequestsin interfaceTaskExecutionInfoService- Parameters:
taskName- name of the taskdslText- String of the dsl text- Returns:
- a list of
AppDeploymentRequestbased on the dsl provided
-
findAllPlatformTaskExecutionInformation
- Specified by:
findAllPlatformTaskExecutionInformationin interfaceTaskExecutionInfoService
-