| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <META NAME="ROBOTS" CONTENT="NOINDEX"> |
| <link rel="canonical" href="https://ignite.apache.org/releases/1.0.0-rc3/javadoc/org/apache/ignite/streamer/StreamerContext.html" /> |
| <!-- Generated by javadoc (version 1.7.0_21) on Tue Mar 24 10:27:31 MSK 2015 --> |
| <meta http-equiv="Content-Type" content="text/html" charset="UTF-8"> |
| <title>StreamerContext (Ignite 1.0.0-RC3)</title> |
| <meta name="date" content="2015-03-24"> |
| <link rel="stylesheet" type="text/css" href="../../../../javadoc.css" title="Style"> |
| <link rel='shortcut icon' href='http://gridgain.com/wp-content/uploads/2014/09/favicon.ico'/> |
| <link type='text/css' rel='stylesheet' href='http://gridgain.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter3/styles/shCore.css'/> |
| <link type='text/css' rel='stylesheet' href='http://gridgain.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter3/styles/shThemeDefault.css'/> |
| <script type='text/javascript' src='http://gridgain.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter3/scripts/shCore.js'></script> |
| <script type='text/javascript' src='http://gridgain.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter3/scripts/shLegacy.js'></script> |
| <script type='text/javascript' src='http://gridgain.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter3/scripts/shBrushJava.js'></script> |
| <script type='text/javascript' src='http://gridgain.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter3/scripts/shBrushPlain.js'></script> |
| <script type='text/javascript' src='http://gridgain.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter3/scripts/shBrushJScript.js'></script> |
| <script type='text/javascript' src='http://gridgain.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter3/scripts/shBrushBash.js'></script> |
| <script type='text/javascript' src='http://gridgain.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter3/scripts/shBrushXml.js'></script> |
| <script type='text/javascript' src='http://gridgain.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter3/scripts/shBrushScala.js'></script> |
| <script type='text/javascript' src='http://gridgain.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter3/scripts/shBrushGroovy.js'></script> |
| |
| <script> |
| (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ |
| (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), |
| m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) |
| })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); |
| |
| ga('create', 'UA-61232409-1', 'auto'); |
| ga('send', 'pageview'); |
| |
| </script></head> |
| |
| <body> |
| <script type="text/javascript"><!-- |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="StreamerContext (Ignite 1.0.0-RC3)"; |
| } |
| //--> |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a name="navbar_top"> |
| <!-- --> |
| </a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/StreamerContext.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../help-doc.html">Help</a></li> |
| </ul> |
| <div class="aboutLanguage"><em>Apache Ignite - In-Memory Data Fabric</em></div> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../org/apache/ignite/streamer/StreamerConfiguration.html" title="class in org.apache.ignite.streamer"><span class="strong">Prev Class</span></a></li> |
| <li><a href="../../../../org/apache/ignite/streamer/StreamerEventRouter.html" title="interface in org.apache.ignite.streamer"><span class="strong">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../index.html?org/apache/ignite/streamer/StreamerContext.html" target="_top">Frames</a></li> |
| <li><a href="StreamerContext.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_top"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method_summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method_detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip-navbar_top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <div class="header"> |
| <div class="subTitle">org.apache.ignite.streamer</div> |
| <h2 title="Interface StreamerContext" class="title">Interface StreamerContext</h2> |
| </div> |
| <div class="contentContainer"> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <hr> |
| <br> |
| <pre>public interface <span class="strong">StreamerContext</span></pre> |
| <div class="block">Streamer context. Provides access to streamer local store, configured windows and various methods |
| to run streamer queries.</div> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method_summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> |
| <caption><span>Methods</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Method and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/ignite/streamer/StreamerContext.html#broadcast(org.apache.ignite.lang.IgniteInClosure)">broadcast</a></strong>(<a href="../../../../org/apache/ignite/lang/IgniteInClosure.html" title="interface in org.apache.ignite.lang">IgniteInClosure</a><span class='angle_bracket'><</span><a href="../../../../org/apache/ignite/streamer/StreamerContext.html" title="interface in org.apache.ignite.streamer">StreamerContext</a><span class='angle_bracket'>></span> clo)</code> |
| <div class="block">Queries all streamer nodes deployed within grid.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/ignite/streamer/StreamerContext.html#broadcast(org.apache.ignite.lang.IgniteInClosure, java.util.Collection)">broadcast</a></strong>(<a href="../../../../org/apache/ignite/lang/IgniteInClosure.html" title="interface in org.apache.ignite.lang">IgniteInClosure</a><span class='angle_bracket'><</span><a href="../../../../org/apache/ignite/streamer/StreamerContext.html" title="interface in org.apache.ignite.streamer">StreamerContext</a><span class='angle_bracket'>></span> clo, |
| <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><span class='angle_bracket'><</span><a href="../../../../org/apache/ignite/cluster/ClusterNode.html" title="interface in org.apache.ignite.cluster">ClusterNode</a><span class='angle_bracket'>></span> nodes)</code> |
| <div class="block">Queries streamer nodes deployed within grid.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><span class='angle_bracket'><</span>K,V<span class='angle_bracket'>></span> <a href="http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/ConcurrentMap.html?is-external=true" title="class or interface in java.util.concurrent">ConcurrentMap</a><span class='angle_bracket'><</span>K,V<span class='angle_bracket'>></span></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/ignite/streamer/StreamerContext.html#localSpace()">localSpace</a></strong>()</code> |
| <div class="block">Gets streamer local space.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/ignite/streamer/StreamerContext.html#nextStageName()">nextStageName</a></strong>()</code> |
| <div class="block">For context passed to <a href="../../../../org/apache/ignite/streamer/StreamerStage.html#run(org.apache.ignite.streamer.StreamerContext, java.util.Collection)"><code>StreamerStage.run(StreamerContext, Collection)</code></a> this method will |
| return next stage name in execution pipeline.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/ignite/cluster/ClusterGroup.html" title="interface in org.apache.ignite.cluster">ClusterGroup</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/ignite/streamer/StreamerContext.html#projection()">projection</a></strong>()</code> |
| <div class="block">Gets instance of dynamic grid projection including all nodes on which this streamer is running.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><span class='angle_bracket'><</span>R<span class='angle_bracket'>></span> <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><span class='angle_bracket'><</span>R<span class='angle_bracket'>></span></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/ignite/streamer/StreamerContext.html#query(org.apache.ignite.lang.IgniteClosure)">query</a></strong>(<a href="../../../../org/apache/ignite/lang/IgniteClosure.html" title="interface in org.apache.ignite.lang">IgniteClosure</a><span class='angle_bracket'><</span><a href="../../../../org/apache/ignite/streamer/StreamerContext.html" title="interface in org.apache.ignite.streamer">StreamerContext</a>,R<span class='angle_bracket'>></span> clo)</code> |
| <div class="block">Queries all streamer nodes deployed within grid.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><span class='angle_bracket'><</span>R<span class='angle_bracket'>></span> <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><span class='angle_bracket'><</span>R<span class='angle_bracket'>></span></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/ignite/streamer/StreamerContext.html#query(org.apache.ignite.lang.IgniteClosure, java.util.Collection)">query</a></strong>(<a href="../../../../org/apache/ignite/lang/IgniteClosure.html" title="interface in org.apache.ignite.lang">IgniteClosure</a><span class='angle_bracket'><</span><a href="../../../../org/apache/ignite/streamer/StreamerContext.html" title="interface in org.apache.ignite.streamer">StreamerContext</a>,R<span class='angle_bracket'>></span> clo, |
| <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><span class='angle_bracket'><</span><a href="../../../../org/apache/ignite/cluster/ClusterNode.html" title="interface in org.apache.ignite.cluster">ClusterNode</a><span class='angle_bracket'>></span> nodes)</code> |
| <div class="block">Queries streamer nodes deployed within grid.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><span class='angle_bracket'><</span>R1,R2<span class='angle_bracket'>></span> R2</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/ignite/streamer/StreamerContext.html#reduce(org.apache.ignite.lang.IgniteClosure, org.apache.ignite.lang.IgniteReducer)">reduce</a></strong>(<a href="../../../../org/apache/ignite/lang/IgniteClosure.html" title="interface in org.apache.ignite.lang">IgniteClosure</a><span class='angle_bracket'><</span><a href="../../../../org/apache/ignite/streamer/StreamerContext.html" title="interface in org.apache.ignite.streamer">StreamerContext</a>,R1<span class='angle_bracket'>></span> clo, |
| <a href="../../../../org/apache/ignite/lang/IgniteReducer.html" title="interface in org.apache.ignite.lang">IgniteReducer</a><span class='angle_bracket'><</span>R1,R2<span class='angle_bracket'>></span> rdc)</code> |
| <div class="block">Queries all streamer nodes deployed within grid.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><span class='angle_bracket'><</span>R1,R2<span class='angle_bracket'>></span> R2</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/ignite/streamer/StreamerContext.html#reduce(org.apache.ignite.lang.IgniteClosure, org.apache.ignite.lang.IgniteReducer, java.util.Collection)">reduce</a></strong>(<a href="../../../../org/apache/ignite/lang/IgniteClosure.html" title="interface in org.apache.ignite.lang">IgniteClosure</a><span class='angle_bracket'><</span><a href="../../../../org/apache/ignite/streamer/StreamerContext.html" title="interface in org.apache.ignite.streamer">StreamerContext</a>,R1<span class='angle_bracket'>></span> clo, |
| <a href="../../../../org/apache/ignite/lang/IgniteReducer.html" title="interface in org.apache.ignite.lang">IgniteReducer</a><span class='angle_bracket'><</span>R1,R2<span class='angle_bracket'>></span> rdc, |
| <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><span class='angle_bracket'><</span><a href="../../../../org/apache/ignite/cluster/ClusterNode.html" title="interface in org.apache.ignite.cluster">ClusterNode</a><span class='angle_bracket'>></span> nodes)</code> |
| <div class="block">Queries streamer nodes deployed within grid.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><span class='angle_bracket'><</span>E<span class='angle_bracket'>></span> <a href="../../../../org/apache/ignite/streamer/StreamerWindow.html" title="interface in org.apache.ignite.streamer">StreamerWindow</a><span class='angle_bracket'><</span>E<span class='angle_bracket'>></span></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/ignite/streamer/StreamerContext.html#window()">window</a></strong>()</code> |
| <div class="block">Gets default event window, i.e. window that is on the first place in streamer configuration.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><span class='angle_bracket'><</span>E<span class='angle_bracket'>></span> <a href="../../../../org/apache/ignite/streamer/StreamerWindow.html" title="interface in org.apache.ignite.streamer">StreamerWindow</a><span class='angle_bracket'><</span>E<span class='angle_bracket'>></span></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/ignite/streamer/StreamerContext.html#window(java.lang.String)">window</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> winName)</code> |
| <div class="block">Gets streamer event window by window name, if no window with such |
| name was configured <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang"><code>IllegalArgumentException</code></a> will be thrown.</div> |
| </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method_detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="projection()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>projection</h4> |
| <pre><a href="../../../../org/apache/ignite/cluster/ClusterGroup.html" title="interface in org.apache.ignite.cluster">ClusterGroup</a> projection()</pre> |
| <div class="block">Gets instance of dynamic grid projection including all nodes on which this streamer is running.</div> |
| <dl><dt><span class="strong">Returns:</span></dt><dd>Projection with all nodes on which streamer is configured.</dd></dl> |
| </li> |
| </ul> |
| <a name="localSpace()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>localSpace</h4> |
| <pre><span class='angle_bracket'><</span>K,V<span class='angle_bracket'>></span> <a href="http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/ConcurrentMap.html?is-external=true" title="class or interface in java.util.concurrent">ConcurrentMap</a><span class='angle_bracket'><</span>K,V<span class='angle_bracket'>></span> localSpace()</pre> |
| <div class="block">Gets streamer local space. Note that all updates to this space will be local.</div> |
| <dl><dt><span class="strong">Returns:</span></dt><dd>Streamer local space.</dd></dl> |
| </li> |
| </ul> |
| <a name="window()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>window</h4> |
| <pre><span class='angle_bracket'><</span>E<span class='angle_bracket'>></span> <a href="../../../../org/apache/ignite/streamer/StreamerWindow.html" title="interface in org.apache.ignite.streamer">StreamerWindow</a><span class='angle_bracket'><</span>E<span class='angle_bracket'>></span> window()</pre> |
| <div class="block">Gets default event window, i.e. window that is on the first place in streamer configuration.</div> |
| <dl><dt><span class="strong">Returns:</span></dt><dd>Default window.</dd></dl> |
| </li> |
| </ul> |
| <a name="window(java.lang.String)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>window</h4> |
| <pre><span class='angle_bracket'><</span>E<span class='angle_bracket'>></span> <a href="../../../../org/apache/ignite/streamer/StreamerWindow.html" title="interface in org.apache.ignite.streamer">StreamerWindow</a><span class='angle_bracket'><</span>E<span class='angle_bracket'>></span> window(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> winName)</pre> |
| <div class="block">Gets streamer event window by window name, if no window with such |
| name was configured <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang"><code>IllegalArgumentException</code></a> will be thrown.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>winName</code> - Window name.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>Window instance.</dd></dl> |
| </li> |
| </ul> |
| <a name="nextStageName()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>nextStageName</h4> |
| <pre><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> nextStageName()</pre> |
| <div class="block">For context passed to <a href="../../../../org/apache/ignite/streamer/StreamerStage.html#run(org.apache.ignite.streamer.StreamerContext, java.util.Collection)"><code>StreamerStage.run(StreamerContext, Collection)</code></a> this method will |
| return next stage name in execution pipeline. For context obtained from streamer object, this method will |
| return first stage name.</div> |
| <dl><dt><span class="strong">Returns:</span></dt><dd>Next stage name depending on invocation context.</dd></dl> |
| </li> |
| </ul> |
| <a name="query(org.apache.ignite.lang.IgniteClosure)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>query</h4> |
| <pre><span class='angle_bracket'><</span>R<span class='angle_bracket'>></span> <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><span class='angle_bracket'><</span>R<span class='angle_bracket'>></span> query(<a href="../../../../org/apache/ignite/lang/IgniteClosure.html" title="interface in org.apache.ignite.lang">IgniteClosure</a><span class='angle_bracket'><</span><a href="../../../../org/apache/ignite/streamer/StreamerContext.html" title="interface in org.apache.ignite.streamer">StreamerContext</a>,R<span class='angle_bracket'>></span> clo) |
| throws <a href="../../../../org/apache/ignite/IgniteException.html" title="class in org.apache.ignite">IgniteException</a></pre> |
| <div class="block">Queries all streamer nodes deployed within grid. Given closure will be executed on each node on which streamer |
| is configured. Streamer context local for that node will be passed to closure during execution. All results |
| returned by closure will be added to result collection.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>clo</code> - Function to be executed on individual nodes.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>Result received from all streamers.</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="../../../../org/apache/ignite/IgniteException.html" title="class in org.apache.ignite">IgniteException</a></code> - If query execution failed.</dd></dl> |
| </li> |
| </ul> |
| <a name="query(org.apache.ignite.lang.IgniteClosure, java.util.Collection)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>query</h4> |
| <pre><span class='angle_bracket'><</span>R<span class='angle_bracket'>></span> <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><span class='angle_bracket'><</span>R<span class='angle_bracket'>></span> query(<a href="../../../../org/apache/ignite/lang/IgniteClosure.html" title="interface in org.apache.ignite.lang">IgniteClosure</a><span class='angle_bracket'><</span><a href="../../../../org/apache/ignite/streamer/StreamerContext.html" title="interface in org.apache.ignite.streamer">StreamerContext</a>,R<span class='angle_bracket'>></span> clo, |
| <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><span class='angle_bracket'><</span><a href="../../../../org/apache/ignite/cluster/ClusterNode.html" title="interface in org.apache.ignite.cluster">ClusterNode</a><span class='angle_bracket'>></span> nodes) |
| throws <a href="../../../../org/apache/ignite/IgniteException.html" title="class in org.apache.ignite">IgniteException</a></pre> |
| <div class="block">Queries streamer nodes deployed within grid. Given closure will be executed on those of passed nodes |
| on which streamer is configured. Streamer context local for that node will be passed to closure during |
| execution. All results returned by closure will be added to result collection.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>clo</code> - Function to be executed on individual nodes.</dd><dd><code>nodes</code> - Optional list of nodes to execute query on, if empty, then all nodes on |
| which this streamer is running will be queried.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>Result received from all streamers.</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="../../../../org/apache/ignite/IgniteException.html" title="class in org.apache.ignite">IgniteException</a></code> - If query execution failed.</dd></dl> |
| </li> |
| </ul> |
| <a name="broadcast(org.apache.ignite.lang.IgniteInClosure)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>broadcast</h4> |
| <pre>void broadcast(<a href="../../../../org/apache/ignite/lang/IgniteInClosure.html" title="interface in org.apache.ignite.lang">IgniteInClosure</a><span class='angle_bracket'><</span><a href="../../../../org/apache/ignite/streamer/StreamerContext.html" title="interface in org.apache.ignite.streamer">StreamerContext</a><span class='angle_bracket'>></span> clo) |
| throws <a href="../../../../org/apache/ignite/IgniteException.html" title="class in org.apache.ignite">IgniteException</a></pre> |
| <div class="block">Queries all streamer nodes deployed within grid. Given closure will be executed on each streamer node |
| in the grid. No result is collected.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>clo</code> - Function to be executed on individual nodes.</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="../../../../org/apache/ignite/IgniteException.html" title="class in org.apache.ignite">IgniteException</a></code> - If closure execution failed.</dd></dl> |
| </li> |
| </ul> |
| <a name="broadcast(org.apache.ignite.lang.IgniteInClosure, java.util.Collection)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>broadcast</h4> |
| <pre>void broadcast(<a href="../../../../org/apache/ignite/lang/IgniteInClosure.html" title="interface in org.apache.ignite.lang">IgniteInClosure</a><span class='angle_bracket'><</span><a href="../../../../org/apache/ignite/streamer/StreamerContext.html" title="interface in org.apache.ignite.streamer">StreamerContext</a><span class='angle_bracket'>></span> clo, |
| <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><span class='angle_bracket'><</span><a href="../../../../org/apache/ignite/cluster/ClusterNode.html" title="interface in org.apache.ignite.cluster">ClusterNode</a><span class='angle_bracket'>></span> nodes) |
| throws <a href="../../../../org/apache/ignite/IgniteException.html" title="class in org.apache.ignite">IgniteException</a></pre> |
| <div class="block">Queries streamer nodes deployed within grid. Given closure will be executed on those of passed nodes on |
| which streamer is configured. No result is collected.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>clo</code> - Function to be executed on individual nodes.</dd><dd><code>nodes</code> - Optional list of nodes to execute query on, if empty, then all nodes on |
| which this streamer is running will be queried.</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="../../../../org/apache/ignite/IgniteException.html" title="class in org.apache.ignite">IgniteException</a></code> - If closure execution failed.</dd></dl> |
| </li> |
| </ul> |
| <a name="reduce(org.apache.ignite.lang.IgniteClosure, org.apache.ignite.lang.IgniteReducer)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>reduce</h4> |
| <pre><span class='angle_bracket'><</span>R1,R2<span class='angle_bracket'>></span> R2 reduce(<a href="../../../../org/apache/ignite/lang/IgniteClosure.html" title="interface in org.apache.ignite.lang">IgniteClosure</a><span class='angle_bracket'><</span><a href="../../../../org/apache/ignite/streamer/StreamerContext.html" title="interface in org.apache.ignite.streamer">StreamerContext</a>,R1<span class='angle_bracket'>></span> clo, |
| <a href="../../../../org/apache/ignite/lang/IgniteReducer.html" title="interface in org.apache.ignite.lang">IgniteReducer</a><span class='angle_bracket'><</span>R1,R2<span class='angle_bracket'>></span> rdc) |
| throws <a href="../../../../org/apache/ignite/IgniteException.html" title="class in org.apache.ignite">IgniteException</a></pre> |
| <div class="block">Queries all streamer nodes deployed within grid. Given closure will be executed on each streamer node in |
| the grid. Streamer context local for that node will be passed to closure during execution. Results returned |
| by closure will be passed to given reducer.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>clo</code> - Function to be executed on individual nodes.</dd><dd><code>rdc</code> - Reducer to reduce results received from remote nodes.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>Reducer result.</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="../../../../org/apache/ignite/IgniteException.html" title="class in org.apache.ignite">IgniteException</a></code> - If query execution failed.</dd></dl> |
| </li> |
| </ul> |
| <a name="reduce(org.apache.ignite.lang.IgniteClosure, org.apache.ignite.lang.IgniteReducer, java.util.Collection)"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>reduce</h4> |
| <pre><span class='angle_bracket'><</span>R1,R2<span class='angle_bracket'>></span> R2 reduce(<a href="../../../../org/apache/ignite/lang/IgniteClosure.html" title="interface in org.apache.ignite.lang">IgniteClosure</a><span class='angle_bracket'><</span><a href="../../../../org/apache/ignite/streamer/StreamerContext.html" title="interface in org.apache.ignite.streamer">StreamerContext</a>,R1<span class='angle_bracket'>></span> clo, |
| <a href="../../../../org/apache/ignite/lang/IgniteReducer.html" title="interface in org.apache.ignite.lang">IgniteReducer</a><span class='angle_bracket'><</span>R1,R2<span class='angle_bracket'>></span> rdc, |
| <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><span class='angle_bracket'><</span><a href="../../../../org/apache/ignite/cluster/ClusterNode.html" title="interface in org.apache.ignite.cluster">ClusterNode</a><span class='angle_bracket'>></span> nodes) |
| throws <a href="../../../../org/apache/ignite/IgniteException.html" title="class in org.apache.ignite">IgniteException</a></pre> |
| <div class="block">Queries streamer nodes deployed within grid. Given closure will be executed on those of passed nodes on which |
| streamer is configured. Streamer context local for that node will be passed to closure during execution. |
| Results returned by closure will be passed to given reducer.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>clo</code> - Function to be executed on individual nodes.</dd><dd><code>rdc</code> - Reducer to reduce results received from remote nodes.</dd><dd><code>nodes</code> - Optional list of nodes to execute query on, if empty, then all nodes on |
| which this streamer is running will be queried.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>Reducer result.</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="../../../../org/apache/ignite/IgniteException.html" title="class in org.apache.ignite">IgniteException</a></code> - If query execution failed.</dd></dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| </div> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a name="navbar_bottom"> |
| <!-- --> |
| </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/StreamerContext.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../help-doc.html">Help</a></li> |
| </ul> |
| <div class="aboutLanguage"><em>Apache Ignite - In-Memory Data Fabric</em></div> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../org/apache/ignite/streamer/StreamerConfiguration.html" title="class in org.apache.ignite.streamer"><span class="strong">Prev Class</span></a></li> |
| <li><a href="../../../../org/apache/ignite/streamer/StreamerEventRouter.html" title="interface in org.apache.ignite.streamer"><span class="strong">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../index.html?org/apache/ignite/streamer/StreamerContext.html" target="_top">Frames</a></li> |
| <li><a href="StreamerContext.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method_summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method_detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip-navbar_bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| <p class="legalCopy"><small><table width="100%" border="0" cellspacing=0 cellpadding=0 style="padding: 5px"> <tr> <td> <table style="padding-left: 0; margin: 0"> <tbody style="padding: 0; margin: 0"> <tr style="padding: 0; margin: 0"> <td> <a target=_blank href="https://incubator.apache.org/projects/ignite.html"><nobr>2015 Copyright © Apache Software Foundation</nobr></a> </td> </tr> </tbody> </table> </td> <td width="100%" align="right" valign="center"> <a href="https://twitter.com/ApacheIgnite" class="twitter-follow-button" data-show-count="false" data-size="large">Follow @ApacheIgnite</a> <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script> </td> </tr> <tr> <td colspan="2" valign="top" align="left"> <table style="padding-left: 0; margin: 0"> <tbody style="padding: 0; margin: 0"> <tr style="padding: 0; margin: 0"> <td> <b>Apache Ignite Fabric</b> </td> <td>: ver. <strong>1.0.0-RC3</strong> </td> </tr> <tr style="padding: 0; margin: 0"> <td> <b>Release Date</b> </td> <td>: March 24 2015 </td> </tr> </tbody> </table> </td> </tr> </table></small></p> |
| <!--FOOTER--><script type='text/javascript'>SyntaxHighlighter.all();dp.SyntaxHighlighter.HighlightAll('code');</script> |
| </body> |
| |
| </html> |