Package org.apache.druid.common.gcp
Class GcpModule
- java.lang.Object
-
- org.apache.druid.common.gcp.GcpModule
-
- All Implemented Interfaces:
com.google.inject.Module,org.apache.druid.initialization.DruidModule
public class GcpModule extends Object implements org.apache.druid.initialization.DruidModule
-
-
Constructor Summary
Constructors Constructor Description GcpModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(com.google.inject.Binder binder)com.google.api.client.http.HttpRequestInitializergetHttpRequestInitializer(com.google.api.client.http.HttpTransport transport, com.google.api.client.json.JsonFactory factory)com.google.api.client.http.HttpTransportgetHttpTransport()com.google.api.client.json.JsonFactorygetJsonFactory()
-
-
-
Method Detail
-
configure
public void configure(com.google.inject.Binder binder)
- Specified by:
configurein interfacecom.google.inject.Module
-
getHttpRequestInitializer
@Provides public com.google.api.client.http.HttpRequestInitializer getHttpRequestInitializer(com.google.api.client.http.HttpTransport transport, com.google.api.client.json.JsonFactory factory) throws IOException- Throws:
IOException
-
getHttpTransport
@Provides public com.google.api.client.http.HttpTransport getHttpTransport() throws GeneralSecurityException, IOException- Throws:
GeneralSecurityExceptionIOException
-
getJsonFactory
@Provides public com.google.api.client.json.JsonFactory getJsonFactory()
-
-