public class StreamerLocalEventRouter extends Object implements StreamerEventRouter
Constructor and Description |
---|
StreamerLocalEventRouter() |
Modifier and Type | Method and Description |
---|---|
<T> Map<ClusterNode,Collection<T>> |
route(StreamerContext ctx,
String stageName,
Collection<T> evts)
Selects a node for given events that should be processed by a stage with given name.
|
<T> ClusterNode |
route(StreamerContext ctx,
String stageName,
T evt)
Selects a node for given event that should be processed by a stage with given name.
|
public <T> ClusterNode route(StreamerContext ctx, String stageName, T evt)
route
in interface StreamerEventRouter
ctx
- Streamer context.stageName
- Stage name.evt
- Event to route.null
then the whole pipeline execution
will be terminated. All running and ongoing stages for pipeline execution will be
cancelled.public <T> Map<ClusterNode,Collection<T>> route(StreamerContext ctx, String stageName, Collection<T> evts)
route
in interface StreamerEventRouter
ctx
- Streamer context.stageName
- Stage name to route events.evts
- Events.null
then the whole pipeline execution
will be terminated. All running and ongoing stages for pipeline execution will be
cancelled.
Follow @ApacheIgnite
Apache Ignite Fabric : ver. 1.0.0-RC3 Release Date : March 24 2015