Class TaskConfiguration
java.lang.Object
org.springframework.cloud.dataflow.server.config.features.TaskConfiguration
@Configuration(proxyBeanMethods=false)
@EnableConfigurationProperties({TaskConfigurationProperties.class,CommonApplicationProperties.class,DockerValidatorProperties.class,LocalPlatformProperties.class,ComposedTaskRunnerConfigurationProperties.class})
@EnableMapRepositories(basePackages="org.springframework.cloud.dataflow.server.job")
@EnableTransactionManagement
@Import({TaskDeleteServiceConfig.class,DataflowTaskExplorerConfiguration.class,DataFlowTaskConfiguration.class})
public class TaskConfiguration
extends Object
- Author:
- Thomas Risberg, Janne Valkealahti, Glenn Renfro, Michael Minella, Ilayaperumal Gopinathan, Gunnar Hillert, Christian Tzolov, David Turanski, Corneil du Plessis
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondataflowTaskExecutionQueryDao
(DataSource dataSource) deployerConfigurationMetadataResolver
(TaskConfigurationProperties taskConfigurationProperties) launcherInitializationService
(LauncherRepository launcherRepository, List<TaskPlatform> platforms, DeployerConfigurationMetadataResolver resolver) localTaskPlatform
(LocalPlatformProperties localPlatformProperties, org.springframework.cloud.deployer.spi.scheduler.Scheduler localScheduler) The default profile is active when no other profiles are active.saveTaskService
(TaskDefinitionRepository taskDefinitionRepository, org.springframework.cloud.dataflow.audit.service.AuditRecordService auditRecordService, AppRegistryService registry) taskAppDeploymentRequestCreator
(CommonApplicationProperties commonApplicationProperties, ApplicationConfigurationMetadataResolver metadataResolver) taskDefinitionReader
(TaskDefinitionRepository taskDefinitionRepository) taskDefinitionRetriever
(AppRegistryService registry, DataflowTaskExplorer taskExplorer, TaskDefinitionRepository taskDefinitionRepository, TaskConfigurationProperties taskConfigurationProperties, LauncherRepository launcherRepository, List<TaskPlatform> taskPlatforms, ComposedTaskRunnerConfigurationProperties composedTaskRunnerConfigurationProperties) taskDeploymentReader
(TaskDeploymentRepository repository) taskExecutionRepositoryService
(org.springframework.cloud.task.repository.TaskRepository taskRepository) org.springframework.cloud.task.repository.TaskRepository
taskRepository
(DataSource dataSource)
-
Constructor Details
-
TaskConfiguration
public TaskConfiguration()
-
-
Method Details
-
taskDefinitionReader
@Bean @ConditionalOnMissingBean public TaskDefinitionReader taskDefinitionReader(TaskDefinitionRepository taskDefinitionRepository) -
taskDeploymentReader
@Bean @ConditionalOnMissingBean public TaskDeploymentReader taskDeploymentReader(TaskDeploymentRepository repository) -
deployerConfigurationMetadataResolver
@Bean public DeployerConfigurationMetadataResolver deployerConfigurationMetadataResolver(TaskConfigurationProperties taskConfigurationProperties) -
launcherInitializationService
@Bean public LauncherInitializationService launcherInitializationService(LauncherRepository launcherRepository, List<TaskPlatform> platforms, DeployerConfigurationMetadataResolver resolver) -
localTaskPlatform
@Profile({"local","default"}) @Bean public TaskPlatform localTaskPlatform(LocalPlatformProperties localPlatformProperties, @Nullable org.springframework.cloud.deployer.spi.scheduler.Scheduler localScheduler) The default profile is active when no other profiles are active. This is configured so that several tests will pass without having to explicitly enable the local profile.- Parameters:
localPlatformProperties
- the local platform propertieslocalScheduler
- the local scheduler- Returns:
- the task platform
-
taskDefinitionRetriever
@Bean public TaskExecutionInfoService taskDefinitionRetriever(AppRegistryService registry, DataflowTaskExplorer taskExplorer, TaskDefinitionRepository taskDefinitionRepository, TaskConfigurationProperties taskConfigurationProperties, LauncherRepository launcherRepository, List<TaskPlatform> taskPlatforms, ComposedTaskRunnerConfigurationProperties composedTaskRunnerConfigurationProperties) -
saveTaskService
@Bean public TaskSaveService saveTaskService(TaskDefinitionRepository taskDefinitionRepository, org.springframework.cloud.dataflow.audit.service.AuditRecordService auditRecordService, AppRegistryService registry) -
taskExecutionRepositoryService
@Bean public TaskExecutionCreationService taskExecutionRepositoryService(org.springframework.cloud.task.repository.TaskRepository taskRepository) -
taskAppDeploymentRequestCreator
@Bean public TaskAppDeploymentRequestCreator taskAppDeploymentRequestCreator(CommonApplicationProperties commonApplicationProperties, ApplicationConfigurationMetadataResolver metadataResolver) -
taskRepository
@Bean public org.springframework.cloud.task.repository.TaskRepository taskRepository(DataSource dataSource) -
dataflowTaskExecutionQueryDao
-