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
Fields inherited from class org.apache.drill.common.logical.StoragePluginConfig
authMode, credentialsProvider, directCredentials, enabled, oAuthConfig
-
Constructor Summary
ConstructorDescriptionSplunkPluginConfig
(String username, String password, String scheme, String hostname, Integer port, String app, String owner, String token, String cookie, boolean validateCertificates, String earliestTime, String latestTime, CredentialsProvider credentialsProvider, Integer reconnectRetries, String authMode, boolean writable, Integer writerBatchSize) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getApp()
getOwner()
int
getPort()
int
getToken()
Gets the credentials.getUsernamePasswordCredentials
(String username) Gets the credentials.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:
-
-
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, String earliestTime, String latestTime, CredentialsProvider credentialsProvider, Integer reconnectRetries, String authMode, boolean writable, Integer writerBatchSize)
-
-
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() -
getEarliestTime
-
getLatestTime
-
getReconnectRetries
public int getReconnectRetries() -
getWriterBatchSize
public int getWriterBatchSize() -
equals
- Specified by:
equals
in classStoragePluginConfig
-
hashCode
public int hashCode()- Specified by:
hashCode
in classStoragePluginConfig
-
toString
-
updateCredentialProvider
- Overrides:
updateCredentialProvider
in classStoragePluginConfig
-