public interface GridStreamerContext
| Modifier and Type | Method and Description |
|---|---|
void |
broadcast(GridInClosure<GridStreamerContext> clo)
Queries all streamer nodes deployed within grid.
|
void |
broadcast(GridInClosure<GridStreamerContext> clo,
Collection<GridNode> nodes)
Queries streamer nodes deployed within grid.
|
<K,V> ConcurrentMap<K,V> |
localSpace()
Gets streamer local space.
|
String |
nextStageName()
For context passed to
GridStreamerStage.run(GridStreamerContext, Collection) this method will
return next stage name in execution pipeline. |
GridProjection |
projection()
Gets instance of dynamic grid projection including all nodes on which this streamer is running.
|
<R> Collection<R> |
query(GridClosure<GridStreamerContext,R> clo)
Queries all streamer nodes deployed within grid.
|
<R> Collection<R> |
query(GridClosure<GridStreamerContext,R> clo,
Collection<GridNode> nodes)
Queries streamer nodes deployed within grid.
|
<R1,R2> R2 |
reduce(GridClosure<GridStreamerContext,R1> clo,
GridReducer<R1,R2> rdc)
Queries all streamer nodes deployed within grid.
|
<R1,R2> R2 |
reduce(GridClosure<GridStreamerContext,R1> clo,
GridReducer<R1,R2> rdc,
Collection<GridNode> nodes)
Queries streamer nodes deployed within grid.
|
<E> GridStreamerWindow<E> |
window()
Gets default event window, i.e.
|
<E> GridStreamerWindow<E> |
window(String winName)
Gets streamer event window by window name, if no window with such
name was configured
IllegalArgumentException will be thrown. |
GridProjection projection()
<K,V> ConcurrentMap<K,V> localSpace()
<E> GridStreamerWindow<E> window()
<E> GridStreamerWindow<E> window(String winName)
IllegalArgumentException will be thrown.winName - Window name.String nextStageName()
GridStreamerStage.run(GridStreamerContext, Collection) this method will
return next stage name in execution pipeline. For context obtained from streamer object, this method will
return first stage name.<R> Collection<R> query(GridClosure<GridStreamerContext,R> clo) throws GridException
clo - Function to be executed on individual nodes.GridException - If query execution failed.<R> Collection<R> query(GridClosure<GridStreamerContext,R> clo, Collection<GridNode> nodes) throws GridException
clo - Function to be executed on individual nodes.nodes - Optional list of nodes to execute query on, if empty, then all nodes on
which this streamer is running will be queried.GridException - If query execution failed.void broadcast(GridInClosure<GridStreamerContext> clo) throws GridException
clo - Function to be executed on individual nodes.GridException - If closure execution failed.void broadcast(GridInClosure<GridStreamerContext> clo, Collection<GridNode> nodes) throws GridException
clo - Function to be executed on individual nodes.nodes - Optional list of nodes to execute query on, if empty, then all nodes on
which this streamer is running will be queried.GridException - If closure execution failed.<R1,R2> R2 reduce(GridClosure<GridStreamerContext,R1> clo, GridReducer<R1,R2> rdc) throws GridException
clo - Function to be executed on individual nodes.rdc - Reducer to reduce results received from remote nodes.GridException - If query execution failed.<R1,R2> R2 reduce(GridClosure<GridStreamerContext,R1> clo, GridReducer<R1,R2> rdc, Collection<GridNode> nodes) throws GridException
clo - Function to be executed on individual nodes.rdc - Reducer to reduce results received from remote nodes.nodes - Optional list of nodes to execute query on, if empty, then all nodes on
which this streamer is running will be queried.GridException - If query execution failed.Copyright © 2014. All rights reserved.