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:
-
Nested Class Summary
Nested classes/interfaces inherited from interface jenkins.plugins.logstash.persistence.LogstashIndexerDao
LogstashIndexerDao.IndexerType, LogstashIndexerDao.SyslogFormat, LogstashIndexerDao.SyslogProtocol -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.sf.json.JSONObjectbuildPayload(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, waitMethods inherited from interface jenkins.plugins.logstash.persistence.LogstashIndexerDao
getDescription, push
-
Constructor Details
-
AbstractLogstashIndexerDao
public AbstractLogstashIndexerDao()
-
-
Method Details
-
buildPayload
public net.sf.json.JSONObject buildPayload(BuildData buildData, String jenkinsUrl, List<String> logLines) Description copied from interface:LogstashIndexerDaoBuilds a JSON payload compatible with the Logstash schema.- Specified by:
buildPayloadin 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
-