use of com.netflix.conductor.core.config.EventModule in project conductor by Netflix.
the class TestModule method configure.
@Override
protected void configure() {
System.setProperty("workflow.system.task.worker.callback.seconds", "0");
System.setProperty("workflow.system.task.worker.queue.size", "10000");
System.setProperty("workflow.system.task.worker.thread.count", "10");
configureExecutorService();
MockConfiguration config = new MockConfiguration();
bind(Configuration.class).toInstance(config);
install(new LocalRedisModule());
bind(ShardingStrategy.class).toProvider(RedisQueuesShardingStrategyProvider.class).asEagerSingleton();
bind(RedisQueues.class).toProvider(RedisQueuesProvider.class);
bind(MetadataDAO.class).to(RedisMetadataDAO.class);
bind(ExecutionDAO.class).to(RedisExecutionDAO.class);
bind(RateLimitingDAO.class).to(RedisRateLimitingDAO.class);
bind(EventHandlerDAO.class).to(RedisEventHandlerDAO.class);
bind(PollDataDAO.class).to(RedisPollDataDAO.class);
bind(IndexDAO.class).to(MockIndexDAO.class);
configureQueueDAO();
bind(WorkflowStatusListener.class).to(WorkflowStatusListenerStub.class);
bind(MetadataService.class).to(MetadataServiceImpl.class);
install(new CoreModule());
install(new EventModule());
bind(UserTask.class).asEagerSingleton();
bind(ObjectMapper.class).toProvider(JsonMapperProvider.class);
bind(ExternalPayloadStorage.class).to(MockExternalPayloadStorage.class);
install(new LocalOnlyLockModule());
}
use of com.netflix.conductor.core.config.EventModule in project conductor by Netflix.
the class ServerModule method configure.
@Override
protected void configure() {
install(new CoreModule());
install(new ValidationModule());
install(new ArchaiusModule());
install(new JettyModule());
install(new GRPCModule());
install(new EventModule());
bindInterceptor(Matchers.any(), Matchers.annotatedWith(Service.class), new ServiceInterceptor(getProvider(Validator.class)));
bind(Configuration.class).to(SystemPropertiesConfiguration.class).in(Scopes.SINGLETON);
bind(ExecutorService.class).toProvider(ExecutorServiceProvider.class).in(Scopes.SINGLETON);
bind(WorkflowSweeper.class).asEagerSingleton();
bind(WorkflowMonitor.class).asEagerSingleton();
}
use of com.netflix.conductor.core.config.EventModule in project conductor by Netflix.
the class MySQLTestModule method configure.
@Override
protected void configure() {
bind(Configuration.class).to(SystemPropertiesMySQLConfiguration.class).in(Singleton.class);
bind(MySQLConfiguration.class).to(SystemPropertiesMySQLConfiguration.class).in(Singleton.class);
bind(DataSource.class).toProvider(MySQLDataSourceProvider.class).in(Scopes.SINGLETON);
bind(MetadataDAO.class).to(MySQLMetadataDAO.class);
bind(EventHandlerDAO.class).to(MySQLMetadataDAO.class);
bind(ExecutionDAO.class).to(MySQLExecutionDAO.class);
bind(RateLimitingDAO.class).to(MySQLExecutionDAO.class);
bind(PollDataDAO.class).to(MySQLExecutionDAO.class);
bind(QueueDAO.class).to(MySQLQueueDAO.class);
bind(IndexDAO.class).to(MockIndexDAO.class);
bind(WorkflowStatusListener.class).to(WorkflowStatusListenerStub.class);
install(new CoreModule());
install(new EventModule());
bind(UserTask.class).asEagerSingleton();
bind(ObjectMapper.class).toProvider(JsonMapperProvider.class);
bind(ExternalPayloadStorage.class).to(MockExternalPayloadStorage.class);
bind(MetadataService.class).to(MetadataServiceImpl.class);
install(new NoopLockModule());
}
Aggregations