public class PipelineInterpreter extends Object implements MessageProcessor
| Modifier and Type | Class and Description |
|---|---|
static class |
PipelineInterpreter.Descriptor |
static class |
PipelineInterpreter.State |
| Constructor and Description |
|---|
PipelineInterpreter(MessageQueueAcknowledger messageQueueAcknowledger,
com.codahale.metrics.MetricRegistry metricRegistry,
ConfigurationStateUpdater stateUpdater) |
| Modifier and Type | Method and Description |
|---|---|
Messages |
process(Messages messages) |
Messages |
process(Messages messages,
InterpreterListener interpreterListener,
PipelineInterpreter.State state)
Evaluates all pipelines that apply to the given messages, based on the current stream routing
of the messages.
|
List<Message> |
processForPipelines(Message message,
Set<String> pipelineIds,
InterpreterListener interpreterListener,
PipelineInterpreter.State state)
Given a set of pipeline ids, process the given message according to the passed state.
|
@Inject public PipelineInterpreter(MessageQueueAcknowledger messageQueueAcknowledger, com.codahale.metrics.MetricRegistry metricRegistry, ConfigurationStateUpdater stateUpdater)
public Messages process(Messages messages)
process in interface MessageProcessormessages - messages to processpublic Messages process(Messages messages, InterpreterListener interpreterListener, PipelineInterpreter.State state)
messages - the messages to process through the pipelinesinterpreterListener - a listener which gets called for each processing stage (e.g. to
trace execution)state - the pipeline/stage/rule/stream connection state to use during
processingpublic List<Message> processForPipelines(Message message, Set<String> pipelineIds, InterpreterListener interpreterListener, PipelineInterpreter.State state)
message - the message to processpipelineIds - the ids of the pipelines to resolve and run the message throughinterpreterListener - the listener tracing the executionstate - the pipeline/stage/rule state to interpretCopyright © 2012–2021 Graylog, Inc.. All rights reserved.