Package org.apache.druid.guice
Class BrokerProcessingModule
- java.lang.Object
-
- org.apache.druid.guice.BrokerProcessingModule
-
- All Implemented Interfaces:
com.google.inject.Module
public class BrokerProcessingModule extends Object implements com.google.inject.Module
This module is used to fulfill dependency injection of query processing and caching resources: buffer pools and thread pools on Broker. Broker does not need to be allocated an intermediate results pool. This is separated from DruidProcessingModule to separate the needs of the broker from the historicals
-
-
Constructor Summary
Constructors Constructor Description BrokerProcessingModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(com.google.inject.Binder binder)CachePopulatorgetCachePopulator(com.fasterxml.jackson.databind.ObjectMapper smileMapper, CachePopulatorStats cachePopulatorStats, CacheConfig cacheConfig)org.apache.druid.collections.NonBlockingPool<ByteBuffer>getIntermediateResultsPool(org.apache.druid.query.DruidProcessingConfig config)org.apache.druid.collections.BlockingPool<ByteBuffer>getMergeBufferPool(org.apache.druid.query.DruidProcessingConfig config)ForkJoinPoolgetMergeProcessingPool(org.apache.druid.guice.LifecycleForkJoinPoolProvider poolProvider)org.apache.druid.guice.LifecycleForkJoinPoolProvidergetMergeProcessingPoolProvider(BrokerParallelMergeConfig config)org.apache.druid.query.QueryProcessingPoolgetProcessingExecutorPool(org.apache.druid.query.DruidProcessingConfig config)
-
-
-
Method Detail
-
configure
public void configure(com.google.inject.Binder binder)
- Specified by:
configurein interfacecom.google.inject.Module
-
getCachePopulator
@Provides public CachePopulator getCachePopulator(com.fasterxml.jackson.databind.ObjectMapper smileMapper, CachePopulatorStats cachePopulatorStats, CacheConfig cacheConfig)
-
getProcessingExecutorPool
@Provides public org.apache.druid.query.QueryProcessingPool getProcessingExecutorPool(org.apache.druid.query.DruidProcessingConfig config)
-
getIntermediateResultsPool
@Provides public org.apache.druid.collections.NonBlockingPool<ByteBuffer> getIntermediateResultsPool(org.apache.druid.query.DruidProcessingConfig config)
-
getMergeBufferPool
@Provides public org.apache.druid.collections.BlockingPool<ByteBuffer> getMergeBufferPool(org.apache.druid.query.DruidProcessingConfig config)
-
getMergeProcessingPoolProvider
@Provides public org.apache.druid.guice.LifecycleForkJoinPoolProvider getMergeProcessingPoolProvider(BrokerParallelMergeConfig config)
-
getMergeProcessingPool
@Provides public ForkJoinPool getMergeProcessingPool(org.apache.druid.guice.LifecycleForkJoinPoolProvider poolProvider)
-
-