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)
Deprecated.
|
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,
ComposedTaskRunnerConfigurationProperties composedTaskRunnerConfigurationProperties)
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,
boolean addDatabaseCredentials,
Map<String,String> previousTaskDeploymentProperties)
Create a the
TaskExecutionInformation instance for the information provided. |
@Deprecated 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 taskslauncherRepository - the launcher repositorytaskPlatforms - the task platformspublic 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,
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)
TaskExecutionInfoServiceTaskExecutionInformation instance for the information provided.findTaskExecutionInformation in interface TaskExecutionInfoServicetaskName - the name of the task definitiontaskDeploymentProperties - the deployment properties to use for the TaskExecutionInformationaddDatabaseCredentials - true if database credentials should be added to the TaskExecutionInformationpreviousTaskDeploymentProperties - the previous deployment properties to use for the TaskExecutionInformationTaskExecutionInformationpublic 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 © 2021 Pivotal Software, Inc.. All rights reserved.