public class SplunkConnectionImpl extends Object implements SplunkConnection
SplunkConnection based on Splunk's REST API.| Modifier and Type | Class and Description |
|---|---|
static class |
SplunkConnectionImpl.CountingSearchResultListener
Implementation of
SearchResultListener
interface that just counts the results. |
static class |
SplunkConnectionImpl.SplunkResultEnumerator
Implementation of
Enumerator that parses
results from a Splunk REST call. |
| Constructor and Description |
|---|
SplunkConnectionImpl(String url,
String username,
String password) |
SplunkConnectionImpl(URL url,
String username,
String password) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.calcite.linq4j.Enumerator<Object> |
getSearchResultEnumerator(String search,
Map<String,String> otherArgs,
List<String> fieldList) |
void |
getSearchResults(String search,
Map<String,String> otherArgs,
List<String> fieldList,
SearchResultListener srl) |
static void |
main(String[] args) |
static void |
parseArgs(String[] args,
Map<String,String> map) |
static void |
printUsage(String errorMsg) |
public SplunkConnectionImpl(String url, String username, String password) throws MalformedURLException
MalformedURLExceptionpublic void getSearchResults(String search, Map<String,String> otherArgs, List<String> fieldList, SearchResultListener srl)
getSearchResults in interface SplunkConnectionpublic org.apache.calcite.linq4j.Enumerator<Object> getSearchResultEnumerator(String search, Map<String,String> otherArgs, List<String> fieldList)
getSearchResultEnumerator in interface SplunkConnectionpublic static void printUsage(String errorMsg)
public static void main(String[] args) throws MalformedURLException
MalformedURLExceptionCopyright © 2012-2022 Apache Software Foundation. All Rights Reserved.