public class GridStreamerStageWrapper extends Object implements GridStreamerStage<Object>
| Constructor and Description |
|---|
GridStreamerStageWrapper(GridStreamerStage<Object> delegate,
int idx) |
| Modifier and Type | Method and Description |
|---|---|
int |
index() |
String |
name()
Gets streamer stage name.
|
String |
nextStageName() |
void |
nextStageName(String nextStageName) |
Map<String,Collection<?>> |
run(GridStreamerContext ctx,
Collection<Object> evts)
Stage execution routine.
|
String |
toString() |
GridStreamerStage |
unwrap() |
public GridStreamerStageWrapper(GridStreamerStage<Object> delegate, int idx)
delegate - Delegate stage.idx - Index.public int index()
@Nullable public String nextStageName()
null if this is the last stage.public void nextStageName(String nextStageName)
nextStageName - Next stage name in pipeline.public String name()
name in interface GridStreamerStage<Object>public Map<String,Collection<?>> run(GridStreamerContext ctx, Collection<Object> 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.
run in interface GridStreamerStage<Object>ctx - Streamer context.evts - Input events.GridException - If failed.public GridStreamerStage unwrap()
Copyright © 2014. All rights reserved.