public interface GridStreamerStage<IN>
GridStreamerEventRouter which will determine
on which node the stage should be executed.
Generally, event stage execution graph if fully controlled by return values of
this method, while node execution graph is controlled by
GridStreamerEventRouter.route(GridStreamerContext, String, Object) method.
| Modifier and Type | Method and Description |
|---|---|
String |
name()
Gets streamer stage name.
|
Map<String,Collection<?>> |
run(GridStreamerContext ctx,
Collection<IN> evts)
Stage execution routine.
|
String name()
@Nullable Map<String,Collection<?>> run(GridStreamerContext ctx, Collection<IN> evts) throws GridException
GridStreamerEventRouter
which will determine on which node the stage should be executed.
Generally, event stage execution graph if fully controlled by return values of
this method, while node execution graph is controlled by
GridStreamerEventRouter.route(GridStreamerContext, String, Object) method.
ctx - Streamer context.evts - Input events.GridException - If failed.Copyright © 2014. All rights reserved.