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
FieldsModifier and TypeFieldDescriptionfinal booleanfinal Map<String, HttpApiConfig> final booleanstatic final Stringfinal Stringfinal intfinal Stringfinal intfinal intTimeout inTimeUnit.SECONDS.Fields inherited from class org.apache.drill.common.logical.StoragePluginConfig
authMode, credentialsProvider, directCredentials, enabled, oAuthConfig -
Constructor Summary
ConstructorsConstructorDescriptionHttpStoragePluginConfig(Boolean cacheResults, Boolean enableEnhancedParamSyntax, 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 TypeMethodDescriptionbooleancopyForPlan(String connectionName) Create a copy of the plugin config with only the indicated connection.booleanbooleangetConnection(String connectionName) static Optional<OAuthTokenCredentials> getOAuthCredentials(CredentialsProvider credentialsProvider) getUsernamePasswordCredentials(String username) inthashCode()password()intintinttimeout()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
-
enableEnhancedParamSyntax
public final boolean enableEnhancedParamSyntax -
timeout
public final int timeoutTimeout inTimeUnit.SECONDS. -
retryDelay
public final int retryDelay
-
-
Constructor Details
-
HttpStoragePluginConfig
public HttpStoragePluginConfig(Boolean cacheResults, Boolean enableEnhancedParamSyntax, 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:
equalsin classStoragePluginConfig
-
toString
-
hashCode
public int hashCode()- Specified by:
hashCodein classStoragePluginConfig
-
cacheResults
public boolean cacheResults() -
enableEnhancedParamSyntax
public boolean enableEnhancedParamSyntax() -
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:
updateCredentialProviderin classStoragePluginConfig
-