Package org.apache.drill.common.logical
Class StoragePluginConfig
java.lang.Object
org.apache.drill.common.logical.StoragePluginConfig
- Direct Known Subclasses:
CassandraStorageConfig
,DrillStoragePluginConfig
,DruidStoragePluginConfig
,ElasticsearchStorageConfig
,FileSystemConfig
,GoogleSheetsStoragePluginConfig
,HBaseStoragePluginConfig
,HiveStoragePluginConfig
,HttpStoragePluginConfig
,InfoSchemaConfig
,JdbcStorageConfig
,KafkaStoragePluginConfig
,KuduStoragePluginConfig
,MockStorageEngineConfig
,MongoStoragePluginConfig
,OpenTSDBStoragePluginConfig
,PhoenixStoragePluginConfig
,SplunkPluginConfig
,SystemTablePluginConfig
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The standardised authentication modes that storage plugins may offer. -
Field Summary
Modifier and TypeFieldDescriptionprotected final StoragePluginConfig.AuthMode
protected final CredentialsProvider
protected final boolean
protected Boolean
protected OAuthConfig
-
Constructor Summary
ConstructorDescriptionStoragePluginConfig
(CredentialsProvider credentialsProvider, boolean directCredentials) StoragePluginConfig
(CredentialsProvider credentialsProvider, boolean directCredentials, StoragePluginConfig.AuthMode authMode) StoragePluginConfig
(CredentialsProvider credentialsProvider, boolean directCredentials, StoragePluginConfig.AuthMode authMode, OAuthConfig oAuthConfig) -
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
abstract int
hashCode()
boolean
Check for enabled status of the pluginboolean
Allows to check whether the enabled status is present in configvoid
setEnabled
(Boolean enabled) updateCredentialProvider
(CredentialsProvider credentialsProvider)
-
Field Details
-
enabled
-
directCredentials
protected final boolean directCredentials -
credentialsProvider
-
authMode
-
oAuthConfig
-
-
Constructor Details
-
StoragePluginConfig
public StoragePluginConfig() -
StoragePluginConfig
-
StoragePluginConfig
public StoragePluginConfig(CredentialsProvider credentialsProvider, boolean directCredentials, StoragePluginConfig.AuthMode authMode) -
StoragePluginConfig
public StoragePluginConfig(CredentialsProvider credentialsProvider, boolean directCredentials, StoragePluginConfig.AuthMode authMode, OAuthConfig oAuthConfig)
-
-
Method Details
-
isEnabled
public boolean isEnabled()Check for enabled status of the plugin- Returns:
- true, when enabled. False, when disabled or status is absent
-
setEnabled
-
isEnabledStatusPresent
public boolean isEnabledStatusPresent()Allows to check whether the enabled status is present in config- Returns:
- true if enabled status is present, false otherwise
-
getValue
-
getCredentialsProvider
-
updateCredentialProvider
-
getAuthMode
-
oAuthConfig
-
equals
-
hashCode
public abstract int hashCode()
-