Package org.apache.druid.storage.azure
Class AzureStorageDruidModule
- java.lang.Object
-
- org.apache.druid.storage.azure.AzureStorageDruidModule
-
- All Implemented Interfaces:
com.google.inject.Module,org.apache.druid.initialization.DruidModule
public class AzureStorageDruidModule extends Object implements org.apache.druid.initialization.DruidModule
Binds objects related to dealing with the Azure file system.
-
-
Field Summary
Fields Modifier and Type Field Description static StringINDEX_ZIP_FILE_NAMEstatic StringSTORAGE_CONNECTION_STRING_WITH_KEYstatic StringSTORAGE_CONNECTION_STRING_WITH_TOKEN
-
Constructor Summary
Constructors Constructor Description AzureStorageDruidModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(com.google.inject.Binder binder)AzureStoragegetAzureStorageContainer(com.google.common.base.Supplier<com.microsoft.azure.storage.blob.CloudBlobClient> cloudBlobClient)AzureUtilsgetAzureUtils(AzureAccountConfig config)Creates a supplier that lazily initializeAzureUtils.com.google.common.base.Supplier<com.microsoft.azure.storage.blob.CloudBlobClient>getCloudBlobClient(AzureAccountConfig config)Creates a supplier that lazily initializeCloudBlobClient.List<? extends com.fasterxml.jackson.databind.Module>getJacksonModules()
-
-
-
Field Detail
-
STORAGE_CONNECTION_STRING_WITH_KEY
public static final String STORAGE_CONNECTION_STRING_WITH_KEY
- See Also:
- Constant Field Values
-
STORAGE_CONNECTION_STRING_WITH_TOKEN
public static final String STORAGE_CONNECTION_STRING_WITH_TOKEN
- See Also:
- Constant Field Values
-
INDEX_ZIP_FILE_NAME
public static final String INDEX_ZIP_FILE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getJacksonModules
public List<? extends com.fasterxml.jackson.databind.Module> getJacksonModules()
- Specified by:
getJacksonModulesin interfaceorg.apache.druid.initialization.DruidModule
-
configure
public void configure(com.google.inject.Binder binder)
- Specified by:
configurein interfacecom.google.inject.Module
-
getAzureUtils
@Provides public AzureUtils getAzureUtils(AzureAccountConfig config)
Creates a supplier that lazily initializeAzureUtils. It is used to inject an endpoint suffix into theAzureUtilsconstructor.
-
getCloudBlobClient
@Provides public com.google.common.base.Supplier<com.microsoft.azure.storage.blob.CloudBlobClient> getCloudBlobClient(AzureAccountConfig config)
Creates a supplier that lazily initializeCloudBlobClient. This is to avoid immediate config validation but defer it until you actually use the client.
-
getAzureStorageContainer
@Provides public AzureStorage getAzureStorageContainer(com.google.common.base.Supplier<com.microsoft.azure.storage.blob.CloudBlobClient> cloudBlobClient)
-
-