public class GridStreamerAffinityEventRouter extends GridStreamerEventRouterAdapter
GridStreamerAffinityEventRouter.AffinityEvent.affinityKey() method. If event does not implement
GridStreamerAffinityEventRouter.AffinityEvent interface, then event itself will be used to determine affinity.| Modifier and Type | Class and Description |
|---|---|
static interface |
GridStreamerAffinityEventRouter.AffinityEvent
All events that implement this interface will be routed based on key affinity.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
REPLICA_CNT |
| Constructor and Description |
|---|
GridStreamerAffinityEventRouter() |
| Modifier and Type | Method and Description |
|---|---|
<T> GridNode |
route(GridStreamerContext ctx,
String stageName,
T evt)
Selects a node for given event that should be processed by a stage with given name.
|
routepublic static final int REPLICA_CNT
public <T> GridNode route(GridStreamerContext ctx, String stageName, T evt)
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.
Core Products
:
Data Grid ver. 6.0.2,
Streaming ver. 6.0.2
Accelerators
:
Hadoop Accelerator ver. 6.0.2
Release Date
:
March 24 2014