public abstract class AbstractLogstashIndexerDao extends Object implements LogstashIndexerDao
LogstashIndexerDao.IndexerType, LogstashIndexerDao.SyslogFormat, LogstashIndexerDao.SyslogProtocol| Modifier and Type | Field and Description |
|---|---|
protected String |
host |
protected String |
key |
protected String |
password |
protected int |
port |
protected String |
username |
| Constructor and Description |
|---|
AbstractLogstashIndexerDao(String host,
int port,
String key,
String username,
String password) |
| Modifier and Type | Method and Description |
|---|---|
net.sf.json.JSONObject |
buildPayload(BuildData buildData,
String jenkinsUrl,
List<String> logLines)
Builds a JSON payload compatible with the Logstash schema.
|
Charset |
getCharset()
Gets the configured charset used to push data to the indexer
|
String |
getDescription() |
void |
setCharset(Charset charset)
Sets the charset used to push data to the indexer
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetIndexerType, pushprotected final String host
protected final int port
protected final String key
protected final String username
protected final String password
public void setCharset(Charset charset)
setCharset in interface LogstashIndexerDaocharset - The charset to push datapublic Charset getCharset()
public net.sf.json.JSONObject buildPayload(BuildData buildData, String jenkinsUrl, List<String> logLines)
LogstashIndexerDaobuildPayload in interface LogstashIndexerDaobuildData - Metadata about the current build, not nulljenkinsUrl - The host name of the Jenkins instance, not nulllogLines - The log data to transmit, not nullpublic String getDescription()
getDescription in interface LogstashIndexerDaoCopyright © 2016–2018. All rights reserved.