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:
  • 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: LogstashIndexerDao
      Builds a JSON payload compatible with the Logstash schema.
      Specified by:
      buildPayload in interface LogstashIndexerDao
      Parameters:
      buildData - Metadata about the current build, not null
      jenkinsUrl - The host name of the Jenkins instance, not null
      logLines - The log data to transmit, not null
      Returns:
      The formatted JSON object, never null