Package org.apache.drill.exec.store.http
Class HttpStoragePluginConfig
java.lang.Object
org.apache.drill.common.logical.StoragePluginConfig
org.apache.drill.exec.store.http.HttpStoragePluginConfig
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.drill.common.logical.StoragePluginConfig
StoragePluginConfig.AuthMode
-
Field Summary
Modifier and TypeFieldDescriptionfinal boolean
final Map<String,
HttpApiConfig> static final String
final String
final int
final String
final int
final int
Timeout inTimeUnit.SECONDS
.Fields inherited from class org.apache.drill.common.logical.StoragePluginConfig
authMode, credentialsProvider, directCredentials, enabled, oAuthConfig
-
Constructor Summary
ConstructorDescriptionHttpStoragePluginConfig
(Boolean cacheResults, Map<String, HttpApiConfig> connections, Integer timeout, Integer retryDelay, String username, String password, String proxyHost, Integer proxyPort, String proxyType, String proxyUsername, String proxyPassword, OAuthConfig oAuthConfig, CredentialsProvider credentialsProvider, String authMode) HttpStoragePluginConfig
(HttpStoragePluginConfig that, OAuthConfig oAuthConfig) Clone constructor used for updating OAuth tokens -
Method Summary
Modifier and TypeMethodDescriptionboolean
copyForPlan
(String connectionName) Create a copy of the plugin config with only the indicated connection.boolean
getConnection
(String connectionName) static Optional<OAuthTokenCredentials>
getOAuthCredentials
(CredentialsProvider credentialsProvider) getUsernamePasswordCredentials
(String username) int
hashCode()
password()
int
int
int
timeout()
toString()
updateCredentialProvider
(CredentialsProvider credentialsProvider) username()
Methods inherited from class org.apache.drill.common.logical.StoragePluginConfig
getAuthMode, getCredentialsProvider, getValue, isEnabled, isEnabledStatusPresent, oAuthConfig, setEnabled
-
Field Details
-
NAME
- See Also:
-
connections
-
cacheResults
public final boolean cacheResults -
proxyHost
-
proxyPort
public final int proxyPort -
proxyType
-
timeout
public final int timeoutTimeout inTimeUnit.SECONDS
. -
retryDelay
public final int retryDelay
-
-
Constructor Details
-
HttpStoragePluginConfig
public HttpStoragePluginConfig(Boolean cacheResults, Map<String, HttpApiConfig> connections, Integer timeout, Integer retryDelay, String username, String password, String proxyHost, Integer proxyPort, String proxyType, String proxyUsername, String proxyPassword, OAuthConfig oAuthConfig, CredentialsProvider credentialsProvider, String authMode) -
HttpStoragePluginConfig
Clone constructor used for updating OAuth tokens- Parameters:
that
- The current HTTP Plugin ConfigoAuthConfig
- The updated OAuth config
-
-
Method Details
-
copyForPlan
Create a copy of the plugin config with only the indicated connection. The copy is used in the query plan to avoid including unnecessary information. -
equals
- Specified by:
equals
in classStoragePluginConfig
-
toString
-
hashCode
public int hashCode()- Specified by:
hashCode
in classStoragePluginConfig
-
cacheResults
public boolean cacheResults() -
connections
-
timeout
public int timeout() -
retryDelay
public int retryDelay() -
proxyHost
-
proxyPort
public int proxyPort() -
username
-
password
-
proxyUsername
-
proxyPassword
-
proxyType
-
getConnection
-
getUsernamePasswordCredentials
-
getUsernamePasswordCredentials
public Optional<UsernamePasswordWithProxyCredentials> getUsernamePasswordCredentials(String username) -
getOAuthCredentials
public static Optional<OAuthTokenCredentials> getOAuthCredentials(CredentialsProvider credentialsProvider) -
updateCredentialProvider
- Overrides:
updateCredentialProvider
in classStoragePluginConfig
-