public class GridStreamerContextDelegate extends Object implements StreamerContext
| Constructor and Description |
|---|
GridStreamerContextDelegate(StreamerContext delegate,
String nextStageName) |
| Modifier and Type | Method and Description |
|---|---|
void |
broadcast(IgniteInClosure<StreamerContext> clo)
Queries all streamer nodes deployed within grid.
|
void |
broadcast(IgniteInClosure<StreamerContext> clo,
Collection<ClusterNode> nodes)
Queries streamer nodes deployed within grid.
|
<K,V> ConcurrentMap<K,V> |
localSpace()
Gets streamer local space.
|
String |
nextStageName()
For context passed to
StreamerStage.run(StreamerContext, Collection) this method will
return next stage name in execution pipeline. |
ClusterGroup |
projection()
Gets instance of dynamic grid projection including all nodes on which this streamer is running.
|
<R> Collection<R> |
query(IgniteClosure<StreamerContext,R> clo)
Queries all streamer nodes deployed within grid.
|
<R> Collection<R> |
query(IgniteClosure<StreamerContext,R> clo,
Collection<ClusterNode> nodes)
Queries streamer nodes deployed within grid.
|
<R1,R2> R2 |
reduce(IgniteClosure<StreamerContext,R1> clo,
IgniteReducer<R1,R2> rdc)
Queries all streamer nodes deployed within grid.
|
<R1,R2> R2 |
reduce(IgniteClosure<StreamerContext,R1> clo,
IgniteReducer<R1,R2> rdc,
Collection<ClusterNode> nodes)
Queries streamer nodes deployed within grid.
|
<E> StreamerWindow<E> |
window()
Gets default event window, i.e. window that is on the first place in streamer configuration.
|
<E> StreamerWindow<E> |
window(String winName)
Gets streamer event window by window name, if no window with such
name was configured
IllegalArgumentException will be thrown. |
public GridStreamerContextDelegate(StreamerContext delegate, @Nullable String nextStageName)
delegate - Delegate object.nextStageName - Next stage name.public ClusterGroup projection()
projection in interface StreamerContextpublic <K,V> ConcurrentMap<K,V> localSpace()
localSpace in interface StreamerContextpublic <E> StreamerWindow<E> window()
window in interface StreamerContextpublic <E> StreamerWindow<E> window(String winName)
IllegalArgumentException will be thrown.window in interface StreamerContextwinName - Window name.public String nextStageName()
StreamerStage.run(StreamerContext, Collection) this method will
return next stage name in execution pipeline. For context obtained from streamer object, this method will
return first stage name.nextStageName in interface StreamerContextpublic <R> Collection<R> query(IgniteClosure<StreamerContext,R> clo)
query in interface StreamerContextclo - Function to be executed on individual nodes.public <R> Collection<R> query(IgniteClosure<StreamerContext,R> clo, Collection<ClusterNode> nodes)
query in interface StreamerContextclo - 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.public void broadcast(IgniteInClosure<StreamerContext> clo)
broadcast in interface StreamerContextclo - Function to be executed on individual nodes.public void broadcast(IgniteInClosure<StreamerContext> clo, Collection<ClusterNode> nodes)
broadcast in interface StreamerContextclo - 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.public <R1,R2> R2 reduce(IgniteClosure<StreamerContext,R1> clo, IgniteReducer<R1,R2> rdc)
reduce in interface StreamerContextclo - Function to be executed on individual nodes.rdc - Reducer to reduce results received from remote nodes.public <R1,R2> R2 reduce(IgniteClosure<StreamerContext,R1> clo, IgniteReducer<R1,R2> rdc, Collection<ClusterNode> nodes)
reduce in interface StreamerContextclo - 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.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC3 Release Date : March 24 2015