public class StreamRouterEngine extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
StreamRouterEngine.Factory |
static class |
StreamRouterEngine.StreamTestMatch
Contains matching results for a stream.
|
Constructor and Description |
---|
StreamRouterEngine(List<Stream> streams,
ExecutorService executorService,
StreamFaultManager streamFaultManager,
StreamMetrics streamMetrics) |
Modifier and Type | Method and Description |
---|---|
String |
getFingerprint()
Returns the fingerprint of the engine instance.
|
List<Stream> |
getStreams()
Returns the list of streams that are processed by the engine.
|
List<Stream> |
match(Message message)
Returns a list of matching streams for the given message.
|
List<StreamRouterEngine.StreamTestMatch> |
testMatch(Message message)
Returns a list of stream rule matches.
|
@Inject public StreamRouterEngine(List<Stream> streams, ExecutorService executorService, StreamFaultManager streamFaultManager, StreamMetrics streamMetrics)
public List<Stream> getStreams()
public String getFingerprint()
public List<Stream> match(Message message)
message
- the messagepublic List<StreamRouterEngine.StreamTestMatch> testMatch(Message message)
match
instead)message
- the message to match streams onCopyright © 2012-2015 Graylog, Inc.. All Rights Reserved.