Class SplunkConnection
java.lang.Object
org.apache.drill.exec.store.splunk.SplunkConnection
This class wraps the functionality of the Splunk connection for Drill.
-
Constructor Summary
ConstructorDescriptionSplunkConnection
(SplunkPluginConfig config, com.splunk.Service service, String queryUserName) This constructor is used for testing onlySplunkConnection
(SplunkPluginConfig config, String queryUserName) -
Method Summary
Modifier and TypeMethodDescriptioncom.splunk.Service
connect()
Connects to Splunk instancecom.splunk.EntityCollection<com.splunk.Index>
Gets the available indexes from Splunk.
-
Constructor Details
-
SplunkConnection
-
SplunkConnection
public SplunkConnection(SplunkPluginConfig config, com.splunk.Service service, String queryUserName) This constructor is used for testing only
-
-
Method Details
-
connect
public com.splunk.Service connect()Connects to Splunk instance- Returns:
- an active Splunk
Service
connection.
-
getIndexes
public com.splunk.EntityCollection<com.splunk.Index> getIndexes()Gets the available indexes from Splunk. Drill treats these as a table.- Returns:
- A collection of Splunk indexes
-