public abstract class Stage extends Object implements Comparable<Stage>
| Modifier and Type | Class and Description |
|---|---|
static class |
Stage.Builder |
| Constructor and Description |
|---|
Stage() |
| Modifier and Type | Method and Description |
|---|---|
static Stage.Builder |
builder() |
int |
compareTo(Stage other) |
Pipeline |
getPipeline() |
List<Rule> |
getRules() |
void |
markExecution() |
abstract boolean |
matchAll() |
com.codahale.metrics.MetricFilter |
metricsFilter()
The metric filter matching all metrics that have been registered by this pipeline.
|
void |
registerMetrics(com.codahale.metrics.MetricRegistry metricRegistry,
String pipelineId)
Register the metrics attached to this stage.
|
abstract List<String> |
ruleReferences() |
void |
setPipeline(Pipeline pipeline) |
void |
setRules(List<Rule> rules) |
abstract int |
stage() |
abstract Stage.Builder |
toBuilder() |
String |
toString() |
public abstract int stage()
public abstract boolean matchAll()
public static Stage.Builder builder()
public abstract Stage.Builder toBuilder()
public int compareTo(Stage other)
compareTo in interface Comparable<Stage>public void registerMetrics(com.codahale.metrics.MetricRegistry metricRegistry,
String pipelineId)
metricRegistry - the registry to add the metrics topublic com.codahale.metrics.MetricFilter metricsFilter()
public void markExecution()
public Pipeline getPipeline()
public void setPipeline(Pipeline pipeline)
Copyright © 2012–2021 Graylog, Inc.. All rights reserved.