Class SplunkPluginConfig
java.lang.Object
org.apache.drill.common.logical.StoragePluginConfig
org.apache.drill.exec.store.splunk.SplunkPluginConfig
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.drill.common.logical.StoragePluginConfig
StoragePluginConfig.AuthMode -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final StringFields inherited from class org.apache.drill.common.logical.StoragePluginConfig
authMode, credentialsProvider, directCredentials, enabled, oAuthConfig -
Constructor Summary
ConstructorsConstructorDescriptionSplunkPluginConfig(String username, String password, String scheme, String hostname, Integer port, String app, String owner, String token, String cookie, boolean validateCertificates, boolean validateHostname, String earliestTime, String latestTime, CredentialsProvider credentialsProvider, Integer reconnectRetries, String authMode, boolean writable, Integer writerBatchSize, Integer maxColumns, Integer maxCacheSize, Integer cacheExpiration) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetApp()intintintgetOwner()intgetPort()intgetToken()Gets the credentials.getUsernamePasswordCredentials(String username) Gets the credentials.booleanbooleanintinthashCode()toString()updateCredentialProvider(CredentialsProvider credentialsProvider) Methods inherited from class org.apache.drill.common.logical.StoragePluginConfig
getAuthMode, getCredentialsProvider, getValue, isEnabled, isEnabledStatusPresent, oAuthConfig, setEnabled
-
Field Details
-
NAME
- See Also:
-
DISABLED_RECONNECT_RETRIES
public static final int DISABLED_RECONNECT_RETRIES- See Also:
-
DEFAULT_WRITER_BATCH_SIZE
public static final int DEFAULT_WRITER_BATCH_SIZE- See Also:
-
DEFAULT_MAX_READER_COLUMNS
public static final int DEFAULT_MAX_READER_COLUMNS- See Also:
-
DEFAULT_MAX_CACHE_SIZE
public static final int DEFAULT_MAX_CACHE_SIZE- See Also:
-
DEFAULT_CACHE_EXPIRATION
public static final int DEFAULT_CACHE_EXPIRATION- See Also:
-
-
Constructor Details
-
SplunkPluginConfig
public SplunkPluginConfig(String username, String password, String scheme, String hostname, Integer port, String app, String owner, String token, String cookie, boolean validateCertificates, boolean validateHostname, String earliestTime, String latestTime, CredentialsProvider credentialsProvider, Integer reconnectRetries, String authMode, boolean writable, Integer writerBatchSize, Integer maxColumns, Integer maxCacheSize, Integer cacheExpiration)
-
-
Method Details
-
getUsernamePasswordCredentials
Gets the credentials. This method is used when user translation is not enabled.- Returns:
- An
OptionalcontainingUsernamePasswordCredentialsfrom the config.
-
getUsernamePasswordCredentials
Gets the credentials. This method is used when user translation is enabled.- Returns:
- An
OptionalcontainingUsernamePasswordCredentialsfrom the config.
-
getUsername
-
getPassword
-
getScheme
-
getHostname
-
getPort
public int getPort() -
isWritable
-
getApp
-
getOwner
-
getToken
-
getCookie
-
getValidateCertificates
public boolean getValidateCertificates() -
getValidateHostname
public boolean getValidateHostname() -
getEarliestTime
-
getLatestTime
-
getReconnectRetries
public int getReconnectRetries() -
getWriterBatchSize
public int getWriterBatchSize() -
getMaxColumns
public int getMaxColumns() -
getMaxCacheSize
public int getMaxCacheSize() -
getCacheExpiration
public int getCacheExpiration() -
equals
- Specified by:
equalsin classStoragePluginConfig
-
hashCode
public int hashCode()- Specified by:
hashCodein classStoragePluginConfig
-
toString
-
updateCredentialProvider
- Overrides:
updateCredentialProviderin classStoragePluginConfig
-