java.lang.Object
org.graylog.plugins.pipelineprocessor.ast.Stage
All Implemented Interfaces:
Comparable<Stage>

public abstract class Stage extends Object implements Comparable<Stage>
  • Constructor Details

    • Stage

      public Stage()
  • Method Details

    • stage

      public abstract int stage()
    • match

      public abstract Stage.Match match()
    • ruleReferences

      public abstract List<String> ruleReferences()
    • getRules

      public List<Rule> getRules()
    • setRules

      public void setRules(List<Rule> rules)
    • builder

      public static Stage.Builder builder()
    • toBuilder

      public abstract Stage.Builder toBuilder()
    • compareTo

      public int compareTo(Stage other)
      Specified by:
      compareTo in interface Comparable<Stage>
    • registerMetrics

      public void registerMetrics(com.codahale.metrics.MetricRegistry metricRegistry, String pipelineId)
      Register the metrics attached to this stage.
      Parameters:
      metricRegistry - the registry to add the metrics to
    • metricsFilter

      public com.codahale.metrics.MetricFilter metricsFilter()
      The metric filter matching all metrics that have been registered by this pipeline. Commonly used to remove the relevant metrics from the registry upon deletion of the pipeline.
      Returns:
      the filter matching this pipeline's metrics
    • markExecution

      public void markExecution()
    • getPipeline

      public Pipeline getPipeline()
    • setPipeline

      public void setPipeline(Pipeline pipeline)
    • toString

      public String toString()
      Overrides:
      toString in class Object