Search in sources :

Example 6 with DruidProcessingModule

use of org.apache.druid.guice.DruidProcessingModule in project druid by druid-io.

the class DruidJsonValidator method getModules.

@Override
protected List<? extends com.google.inject.Module> getModules() {
    return ImmutableList.of(// See https://github.com/apache/druid/pull/4429#discussion_r123603498
    new DruidProcessingModule(), new QueryableModule(), new QueryRunnerFactoryModule(), binder -> {
        binder.bindConstant().annotatedWith(Names.named("serviceName")).to("druid/validator");
        binder.bindConstant().annotatedWith(Names.named("servicePort")).to(0);
        binder.bindConstant().annotatedWith(Names.named("tlsServicePort")).to(-1);
    });
}
Also used : QueryableModule(org.apache.druid.guice.QueryableModule) DruidProcessingModule(org.apache.druid.guice.DruidProcessingModule) QueryRunnerFactoryModule(org.apache.druid.guice.QueryRunnerFactoryModule)

Aggregations

DruidProcessingModule (org.apache.druid.guice.DruidProcessingModule)6 QueryRunnerFactoryModule (org.apache.druid.guice.QueryRunnerFactoryModule)6 QueryableModule (org.apache.druid.guice.QueryableModule)6 Self (org.apache.druid.guice.annotations.Self)3 DruidNode (org.apache.druid.server.DruidNode)3 MetadataStorageConnectorConfig (org.apache.druid.metadata.MetadataStorageConnectorConfig)2 MetadataStorageTablesConfig (org.apache.druid.metadata.MetadataStorageTablesConfig)2 Module (com.google.inject.Module)1 ArrayList (java.util.ArrayList)1 CacheModule (org.apache.druid.guice.CacheModule)1 HistoricalServiceModule (org.apache.druid.guice.HistoricalServiceModule)1 IndexingServiceTaskLogsModule (org.apache.druid.guice.IndexingServiceTaskLogsModule)1 JoinableFactoryModule (org.apache.druid.guice.JoinableFactoryModule)1 ServerTypeConfig (org.apache.druid.guice.ServerTypeConfig)1 LookupModule (org.apache.druid.query.lookup.LookupModule)1 ResponseContextConfig (org.apache.druid.server.ResponseContextConfig)1 SegmentManager (org.apache.druid.server.SegmentManager)1 ServerManager (org.apache.druid.server.coordination.ServerManager)1 ZkCoordinator (org.apache.druid.server.coordination.ZkCoordinator)1 SelfDiscoveryResource (org.apache.druid.server.http.SelfDiscoveryResource)1