Search in sources :

Example 1 with GRPCModule

use of com.netflix.conductor.grpc.server.GRPCModule 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();
}
Also used : GRPCModule(com.netflix.conductor.grpc.server.GRPCModule) EventModule(com.netflix.conductor.core.config.EventModule) WorkflowSweeper(com.netflix.conductor.core.execution.WorkflowSweeper) ArchaiusModule(com.netflix.archaius.guice.ArchaiusModule) JettyModule(com.netflix.conductor.jetty.server.JettyModule) Service(com.netflix.conductor.annotations.Service) ExecutorService(java.util.concurrent.ExecutorService) ServiceInterceptor(com.netflix.conductor.interceptors.ServiceInterceptor) SystemPropertiesConfiguration(com.netflix.conductor.core.config.SystemPropertiesConfiguration) CoreModule(com.netflix.conductor.core.config.CoreModule) WorkflowMonitor(com.netflix.conductor.service.WorkflowMonitor) ValidationModule(com.netflix.conductor.core.config.ValidationModule)

Aggregations

ArchaiusModule (com.netflix.archaius.guice.ArchaiusModule)1 Service (com.netflix.conductor.annotations.Service)1 CoreModule (com.netflix.conductor.core.config.CoreModule)1 EventModule (com.netflix.conductor.core.config.EventModule)1 SystemPropertiesConfiguration (com.netflix.conductor.core.config.SystemPropertiesConfiguration)1 ValidationModule (com.netflix.conductor.core.config.ValidationModule)1 WorkflowSweeper (com.netflix.conductor.core.execution.WorkflowSweeper)1 GRPCModule (com.netflix.conductor.grpc.server.GRPCModule)1 ServiceInterceptor (com.netflix.conductor.interceptors.ServiceInterceptor)1 JettyModule (com.netflix.conductor.jetty.server.JettyModule)1 WorkflowMonitor (com.netflix.conductor.service.WorkflowMonitor)1 ExecutorService (java.util.concurrent.ExecutorService)1