public class LogstashSubmitter extends Object
ElasTestSubmitter.SubmitterType| Modifier and Type | Field and Description |
|---|---|
protected String |
host |
protected String |
key |
protected String |
password |
protected int |
port |
protected String |
username |
| Constructor and Description |
|---|
LogstashSubmitter(String host,
int port,
String key,
String username,
String password) |
| Modifier and Type | Method and Description |
|---|---|
String |
buildPayload(List<String> logLines,
ExternalJob externalJob)
Bulds a String playload compatible with the Logstash input.
|
String |
getDescription() |
ElasTestSubmitter.SubmitterType |
getSubmitterType() |
void |
push(String data)
Sends the log data to ElasTest.
|
protected final String host
protected final int port
protected final String key
protected final String username
protected final String password
public void push(String data) throws IOException
ElasTestSubmitterdata - The serialized data, not nullIOException - The data is not written to the serverpublic ElasTestSubmitter.SubmitterType getSubmitterType()
public String buildPayload(List<String> logLines, ExternalJob externalJob)
ElasTestSubmitterbuildPayload in interface ElasTestSubmitterpublic String getDescription()
getDescription in interface ElasTestSubmitterCopyright © 2016–2018. All rights reserved.