java.lang.Object
org.graylog.plugins.pipelineprocessor.ast.Pipeline

public abstract class Pipeline extends Object
  • Constructor Details

    • Pipeline

      public Pipeline()
  • Method Details

    • id

      @Nullable public abstract String id()
    • name

      public abstract String name()
    • stages

      public abstract SortedSet<Stage> stages()
    • builder

      public static Pipeline.Builder builder()
    • empty

      public static Pipeline empty(String name)
    • toBuilder

      public abstract Pipeline.Builder toBuilder()
    • withId

      public Pipeline withId(String id)
    • hashCode

      @Memoized public abstract int hashCode()
      Overrides:
      hashCode in class Object
    • registerMetrics

      public void registerMetrics(com.codahale.metrics.MetricRegistry metricRegistry)
      Register the metrics attached to this pipeline.
      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()
    • containsRule

      public boolean containsRule(@Nonnull String ruleName)
    • toString

      public String toString()
      Overrides:
      toString in class Object