Package org.apache.druid.guice
Class StorageNodeModule
- java.lang.Object
-
- org.apache.druid.guice.StorageNodeModule
-
- All Implemented Interfaces:
com.google.inject.Module
public class StorageNodeModule extends Object implements com.google.inject.Module
-
-
Constructor Summary
Constructors Constructor Description StorageNodeModule()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidbindLocationSelectorStrategy(com.google.inject.Binder binder)a helper method for both storage module and independent unit test casesvoidconfigure(com.google.inject.Binder binder)DataNodeServicegetDataNodeService(ServerTypeConfig serverTypeConfig, DruidServerConfig config, Boolean isSegmentCacheConfigured)DruidServerMetadatagetMetadata(DruidNode node, ServerTypeConfig serverTypeConfig, DruidServerConfig config)BooleanisSegmentCacheConfigured(SegmentLoaderConfig segmentLoaderConfig)List<StorageLocation>provideStorageLocation(SegmentLoaderConfig config)provide a list of StorageLocation so that it can be injected into objects such as implementations ofStorageLocationSelectorStrategy
-
-
-
Method Detail
-
configure
public void configure(com.google.inject.Binder binder)
- Specified by:
configurein interfacecom.google.inject.Module
-
getMetadata
@Provides public DruidServerMetadata getMetadata(DruidNode node, @Nullable ServerTypeConfig serverTypeConfig, DruidServerConfig config)
-
getDataNodeService
@Provides public DataNodeService getDataNodeService(@Nullable ServerTypeConfig serverTypeConfig, DruidServerConfig config, Boolean isSegmentCacheConfigured)
-
isSegmentCacheConfigured
@Provides public Boolean isSegmentCacheConfigured(SegmentLoaderConfig segmentLoaderConfig)
-
provideStorageLocation
@Provides public List<StorageLocation> provideStorageLocation(SegmentLoaderConfig config)
provide a list of StorageLocation so that it can be injected into objects such as implementations ofStorageLocationSelectorStrategy
-
bindLocationSelectorStrategy
public static void bindLocationSelectorStrategy(com.google.inject.Binder binder)
a helper method for both storage module and independent unit test cases
-
-