Package com.splunk.splunkjenkins.utils
Class SplunkLogService
java.lang.Object
com.splunk.splunkjenkins.utils.SplunkLogService
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanenqueue(EventRecord record) shaded.splk.org.apache.http.client.HttpClientstatic SplunkLogServicelonglonggetStats()voidbooleanbooleanbooleanbooleanbooleansendBatch(Collection<? extends Object> messages, EventType eventType) void
-
Field Details
-
LOG
-
-
Method Details
-
getInstance
-
send
- Parameters:
message- the message to send- Returns:
- true if enqueue successfully, false if the message is discarded
-
send
- Parameters:
message- the message to sendsourceName- the source for splunk metadata- Returns:
- true if enqueue successfully, false if the message is discarded
-
send
- Parameters:
message- the message to send, will use CONSOLE_LOG's configeventType- the type of event, @see EventType- Returns:
- true if enqueue successfully, false if the message is discarded
-
sendBatch
- Parameters:
messages- the messages to sendeventType- the type of event, @see EventType- Returns:
- true if enqueue successfully, false if some message are discarded
-
send
- Parameters:
message- the message to sendeventType- the type of event, @see EventTypesourceName- the source for splunk metadata- Returns:
- true if enqueue successfully, false if the message is discarded
-
enqueue
-
stopWorker
public void stopWorker() -
releaseConnection
public void releaseConnection() -
getSentCount
public long getSentCount() -
getQueueSize
public long getQueueSize() -
getClient
public shaded.splk.org.apache.http.client.HttpClient getClient() -
getStats
-