Class AbstractLogstashIndexerDao
- java.lang.Object
-
- jenkins.plugins.logstash.persistence.AbstractLogstashIndexerDao
-
- All Implemented Interfaces:
Serializable
,LogstashIndexerDao
- Direct Known Subclasses:
ElasticSearchDao
,HostBasedLogstashIndexerDao
public abstract class AbstractLogstashIndexerDao extends Object implements LogstashIndexerDao, Serializable
Abstract data access object for Logstash indexers.- Since:
- 1.0.0
- Author:
- Rusty Gerard
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jenkins.plugins.logstash.persistence.LogstashIndexerDao
LogstashIndexerDao.IndexerType, LogstashIndexerDao.SyslogFormat, LogstashIndexerDao.SyslogProtocol
-
-
Constructor Summary
Constructors Constructor Description AbstractLogstashIndexerDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description net.sf.json.JSONObject
buildPayload(BuildData buildData, String jenkinsUrl, List<String> logLines)
Builds a JSON payload compatible with the Logstash schema.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jenkins.plugins.logstash.persistence.LogstashIndexerDao
getDescription, push
-
-
-
-
Method Detail
-
buildPayload
public net.sf.json.JSONObject buildPayload(BuildData buildData, String jenkinsUrl, List<String> logLines)
Description copied from interface:LogstashIndexerDao
Builds a JSON payload compatible with the Logstash schema.- Specified by:
buildPayload
in interfaceLogstashIndexerDao
- Parameters:
buildData
- Metadata about the current build, not nulljenkinsUrl
- The host name of the Jenkins instance, not nulllogLines
- The log data to transmit, not null- Returns:
- The formatted JSON object, never null
-
-