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 int
static final int
static final int
static final int
static final int
static final String
Fields 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 TypeMethodDescriptionboolean
getApp()
int
int
int
getOwner()
int
getPort()
int
getToken()
Gets the credentials.getUsernamePasswordCredentials
(String username) Gets the credentials.boolean
boolean
int
int
hashCode()
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
Optional
containingUsernamePasswordCredentials
from the config.
-
getUsernamePasswordCredentials
Gets the credentials. This method is used when user translation is enabled.- Returns:
- An
Optional
containingUsernamePasswordCredentials
from 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:
equals
in classStoragePluginConfig
-
hashCode
public int hashCode()- Specified by:
hashCode
in classStoragePluginConfig
-
toString
-
updateCredentialProvider
- Overrides:
updateCredentialProvider
in classStoragePluginConfig
-