Class ServerConfiguration

  • All Implemented Interfaces:
    org.springframework.scheduling.annotation.AsyncConfigurer

    @SpringBootApplication(exclude={org.springframework.boot.autoconfigure.liquibase.LiquibaseAutoConfiguration.class,org.springframework.boot.autoconfigure.jms.activemq.ActiveMQAutoConfiguration.class,org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration.class})
    @EnableScheduling
    @EnableAsync
    public class ServerConfiguration
    extends Object
    implements org.springframework.scheduling.annotation.AsyncConfigurer
    • Constructor Detail

      • ServerConfiguration

        public ServerConfiguration()
    • Method Detail

      • getAsyncUncaughtExceptionHandler

        public org.springframework.aop.interceptor.AsyncUncaughtExceptionHandler getAsyncUncaughtExceptionHandler()
        Specified by:
        getAsyncUncaughtExceptionHandler in interface org.springframework.scheduling.annotation.AsyncConfigurer
      • taskScheduler

        @Bean
        public org.springframework.scheduling.TaskScheduler taskScheduler()
        Default task scheduler for With a default ScheduledExecutorService with a pool size of 1
      • applicationTaskExecutor

        @Bean
        public org.springframework.core.task.TaskExecutor applicationTaskExecutor​(org.springframework.boot.task.TaskExecutorBuilder builder)
        Default task executor for @Aync (used for SSE for example) With a default with default configuration: org.springframework.boot.autoconfigure.task.TaskExecutionProperties.Pool
      • scheduleCampaignsExecutor

        @Bean
        public org.springframework.core.task.TaskExecutor scheduleCampaignsExecutor()
        For com.chutneytesting.execution.domain.schedule.CampaignScheduler#executeScheduledCampaigns()
      • engineExecutor

        @Bean
        public org.springframework.core.task.TaskExecutor engineExecutor​(@Value("${chutney.engine.executor.pool-size:20}")
                                                                         Integer threadForEngine)
        For com.chutneytesting.ServerConfiguration#executionConfiguration()
      • campaignExecutor

        @Bean
        public org.springframework.core.task.TaskExecutor campaignExecutor​(@Value("${chutney.server.campaigns.executor.pool-size:20}")
                                                                           Integer threadForCampaigns)
        For com.chutneytesting.ServerConfiguration#campaignExecutionEngine()
      • scheduledCampaignsExecutor

        @Bean
        public ExecutorService scheduledCampaignsExecutor​(@Value("${chutney.server.schedule-campaigns.executor.pool-size:20}")
                                                          Integer threadForScheduledCampaigns)
        For com.chutneytesting.execution.domain.schedule.CampaignScheduler#CampaignScheduler()
      • executionConfiguration

        @Bean
        public ExecutionConfiguration executionConfiguration​(@Value("${chutney.engine.reporter.publisher.ttl:5}")
                                                             Long reporterTTL,
                                                             @Qualifier("engineExecutor")
                                                             org.springframework.core.task.TaskExecutor engineExecutor,
                                                             @Value("${chutney.actions.sql.max-logged-rows:30}")
                                                             String nbLoggedRow,
                                                             @Value("${chutney.engine.delegation.user:#{null}}")
                                                             String delegateUser,
                                                             @Value("${chutney.engine.delegation.password:#{null}}")
                                                             String delegatePassword)
      • liquibase

        @Bean
        public liquibase.integration.spring.SpringLiquibase liquibase​(DataSource dataSource)