You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@edgent.apache.org by ho...@apache.org on 2016/04/29 02:38:09 UTC
[05/18] incubator-quarks-website git commit: from
394ccb7aef050f37ac497c9020ca389c4c43eac2
http://git-wip-us.apache.org/repos/asf/incubator-quarks-website/blob/f6f2443d/content/recipes/recipe_adaptable_deadtime_filter.html
----------------------------------------------------------------------
diff --git a/content/recipes/recipe_adaptable_deadtime_filter.html b/content/recipes/recipe_adaptable_deadtime_filter.html
index 0c91443..f5a0566 100644
--- a/content/recipes/recipe_adaptable_deadtime_filter.html
+++ b/content/recipes/recipe_adaptable_deadtime_filter.html
@@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="keywords" content=" ">
-<title>Using an Adaptable Deadtime Filter | Apache Quarks Documentation</title>
+<title>Using an adaptable deadtime filter | Apache Quarks Documentation</title>
<link rel="stylesheet" type="text/css" href="../css/syntax.css">
<link rel="stylesheet" type="text/css" href="../css/font-awesome.min.css">
<!--<link rel="stylesheet" type="text/css" href="../css/bootstrap.min.css">-->
@@ -157,7 +157,7 @@
<script>
function SendLinkByMail(href) {
var subject= "Apache Quarks Documentation feedback";
-var body = "I have some feedback about the Using an Adaptable Deadtime Filter page: ";
+var body = "I have some feedback about the Using an adaptable deadtime filter page: ";
body += window.location.href;
body += "";
var uri = "mailto:?subject=";
@@ -184,7 +184,7 @@ window.location.href = uri;
searchInput: document.getElementById('search-input'),
resultsContainer: document.getElementById('results-container'),
dataSource: '../search.json',
- searchResultTemplate: '<li><a href="{url}" title="Using an Adaptable Deadtime Filter">{title}</a></li>',
+ searchResultTemplate: '<li><a href="{url}" title="Using an adaptable deadtime filter">{title}</a></li>',
noResultsText: 'No results found.',
limit: 10,
fuzzy: true,
@@ -374,7 +374,7 @@ window.location.href = uri;
- <li><a href="../recipes/recipe_adaptable_filter_range.html">Adaptable filter behavior</a></li>
+ <li><a href="../recipes/recipe_adaptable_filter_range.html">Changing a filter's range</a></li>
@@ -383,7 +383,7 @@ window.location.href = uri;
- <li><a href="../recipes/recipe_dynamic_analytic_control.html">Dynamically Enabling Analytic Flows</a></li>
+ <li><a href="../recipes/recipe_adaptable_polling_source.html">Changing a polled source stream's period</a></li>
@@ -392,7 +392,16 @@ window.location.href = uri;
- <li><a href="../recipes/recipe_adaptable_deadtime_filter.html">Using an Adaptable Deadtime Filter</a></li>
+ <li><a href="../recipes/recipe_adaptable_deadtime_filter.html">Using an adaptable deadtime filter</a></li>
+
+
+
+
+
+
+
+
+ <li><a href="../recipes/recipe_dynamic_analytic_control.html">Dynamically enabling analytic flows</a></li>
@@ -517,7 +526,7 @@ $('#toc').on('click', 'a', function() {
<div class="col-md-9">
<div class="post-header">
- <h1 class="post-title-main">Using an Adaptable Deadtime Filter</h1>
+ <h1 class="post-title-main">Using an adaptable deadtime filter</h1>
</div>
<div class="post-content">
@@ -561,11 +570,11 @@ $('#toc').on('click', 'a', function() {
<p>This case needs a <em>deadtime filter</em> and Quarks provides one for your use! In contrast to a <em>deadband filter</em>, which skips tuples based on a deadband value range, a deadtime filter skips tuples based on a <em>deadtime period</em> following a tuple that is allowed to pass through. E.g., if the deadtime period is 30 minutes, after allowing a tuple to pass, the filter skips any tuples received for the next 30 minutes. The next tuple received after that is allowed to pass through, and a new deadtime period is begun.</p>
-<p>See quarks.analytics.sensors.Filters.deadtime() and quarks.analytics.sensors.Deadtime.</p>
+<p>See <code>quarks.analytics.sensors.Filters.deadtime()</code> and <code>quarks.analytics.sensors.Deadtime</code>.</p>
<p>This recipe demonstrates how to use an adaptable deadtime filter.</p>
-<p>A Quarks IotProvider and IoTDevice with its command streams would be a natural way to control the application. In this recipe we will just simulate a "set deadtime period" command stream.</p>
+<p>A Quarks <code>IotProvider</code> and <code>IoTDevice</code> with its command streams would be a natural way to control the application. In this recipe we will just simulate a "set deadtime period" command stream.</p>
<h2 id="create-a-polled-sensor-readings-stream">Create a polled sensor readings stream</h2>
<div class="highlight"><pre><code class="language-java" data-lang="java"> <span class="n">Topology</span> <span class="n">top</span> <span class="o">=</span> <span class="o">...;</span>
@@ -577,7 +586,7 @@ $('#toc').on('click', 'a', function() {
<h2 id="create-a-deadtime-filtered-stream-initially-no-deadtime">Create a deadtime filtered stream - initially no deadtime</h2>
-<p>In this recipe we'll just filter the direct engineTemp sensor reading stream. In practice this filtering would be performed after some analytics stages and used as the input to <code>IotDevice.event()</code> or some other connector publish operation.</p>
+<p>In this recipe we'll just filter the direct <code>engineTemp</code> sensor reading stream. In practice this filtering would be performed after some analytics stages and used as the input to <code>IotDevice.event()</code> or some other connector publish operation.</p>
<div class="highlight"><pre><code class="language-java" data-lang="java"> <span class="n">Deadtime</span><span class="o"><</span><span class="n">Double</span><span class="o">></span> <span class="n">deadtime</span> <span class="o">=</span> <span class="k">new</span> <span class="n">Deadtime</span><span class="o"><>();</span>
<span class="n">TStream</span><span class="o"><</span><span class="n">Double</span><span class="o">></span> <span class="n">deadtimeFilteredEngineTemp</span> <span class="o">=</span> <span class="n">engineTemp</span><span class="o">.</span><span class="na">filter</span><span class="o">(</span><span class="n">deadtime</span><span class="o">)</span>
<span class="o">.</span><span class="na">tag</span><span class="o">(</span><span class="s">"deadtimeFilteredEngineTemp"</span><span class="o">);</span>
@@ -590,7 +599,7 @@ $('#toc').on('click', 'a', function() {
</code></pre></div>
<h2 id="process-the-quot-set-deadtime-period-quot-command-stream">Process the "set deadtime period" command stream</h2>
-<p>Our commands are on the "TStream<JsonObject> cmds" stream. Each JsonObject tuple is a command with the properties "period" and "unit".</p>
+<p>Our commands are on the <code>TStream<JsonObject> cmds</code> stream. Each <code>JsonObject</code> tuple is a command with the properties "period" and "unit".</p>
<div class="highlight"><pre><code class="language-java" data-lang="java"> <span class="n">cmds</span><span class="o">.</span><span class="na">sink</span><span class="o">(</span><span class="n">json</span> <span class="o">-></span> <span class="n">setDeadtimePeriod</span><span class="o">(</span><span class="n">deadtimeFilteredEngineTemp</span><span class="o">,</span>
<span class="n">json</span><span class="o">.</span><span class="na">getAsJsonPrimitive</span><span class="o">(</span><span class="s">"period"</span><span class="o">).</span><span class="na">getAsLong</span><span class="o">(),</span>
<span class="n">TimeUnit</span><span class="o">.</span><span class="na">valueOf</span><span class="o">(</span><span class="n">json</span><span class="o">.</span><span class="na">getAsJsonPrimitive</span><span class="o">(</span><span class="s">"unit"</span><span class="o">).</span><span class="na">getAsString</span><span class="o">())));</span>
@@ -719,7 +728,7 @@ $('#toc').on('click', 'a', function() {
<div class="col-lg-12 footer">
Site last
- generated: Apr 21, 2016 <br/>
+ generated: Apr 26, 2016 <br/>
</div>
</div>
http://git-wip-us.apache.org/repos/asf/incubator-quarks-website/blob/f6f2443d/content/recipes/recipe_adaptable_filter_range.html
----------------------------------------------------------------------
diff --git a/content/recipes/recipe_adaptable_filter_range.html b/content/recipes/recipe_adaptable_filter_range.html
index 10d0741..35bcac7 100644
--- a/content/recipes/recipe_adaptable_filter_range.html
+++ b/content/recipes/recipe_adaptable_filter_range.html
@@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="keywords" content=" ">
-<title>Adaptable filter behavior | Apache Quarks Documentation</title>
+<title>Changing a filter's range | Apache Quarks Documentation</title>
<link rel="stylesheet" type="text/css" href="../css/syntax.css">
<link rel="stylesheet" type="text/css" href="../css/font-awesome.min.css">
<!--<link rel="stylesheet" type="text/css" href="../css/bootstrap.min.css">-->
@@ -157,7 +157,7 @@
<script>
function SendLinkByMail(href) {
var subject= "Apache Quarks Documentation feedback";
-var body = "I have some feedback about the Adaptable filter behavior page: ";
+var body = "I have some feedback about the Changing a filter's range page: ";
body += window.location.href;
body += "";
var uri = "mailto:?subject=";
@@ -184,7 +184,7 @@ window.location.href = uri;
searchInput: document.getElementById('search-input'),
resultsContainer: document.getElementById('results-container'),
dataSource: '../search.json',
- searchResultTemplate: '<li><a href="{url}" title="Adaptable filter behavior">{title}</a></li>',
+ searchResultTemplate: '<li><a href="{url}" title="Changing a filter\s range">{title}</a></li>',
noResultsText: 'No results found.',
limit: 10,
fuzzy: true,
@@ -374,7 +374,7 @@ window.location.href = uri;
- <li><a href="../recipes/recipe_adaptable_filter_range.html">Adaptable filter behavior</a></li>
+ <li><a href="../recipes/recipe_adaptable_filter_range.html">Changing a filter's range</a></li>
@@ -383,7 +383,7 @@ window.location.href = uri;
- <li><a href="../recipes/recipe_dynamic_analytic_control.html">Dynamically Enabling Analytic Flows</a></li>
+ <li><a href="../recipes/recipe_adaptable_polling_source.html">Changing a polled source stream's period</a></li>
@@ -392,7 +392,16 @@ window.location.href = uri;
- <li><a href="../recipes/recipe_adaptable_deadtime_filter.html">Using an Adaptable Deadtime Filter</a></li>
+ <li><a href="../recipes/recipe_adaptable_deadtime_filter.html">Using an adaptable deadtime filter</a></li>
+
+
+
+
+
+
+
+
+ <li><a href="../recipes/recipe_dynamic_analytic_control.html">Dynamically enabling analytic flows</a></li>
@@ -517,7 +526,7 @@ $('#toc').on('click', 'a', function() {
<div class="col-md-9">
<div class="post-header">
- <h1 class="post-title-main">Adaptable filter behavior</h1>
+ <h1 class="post-title-main">Changing a filter's range</h1>
</div>
<div class="post-content">
@@ -555,7 +564,7 @@ $('#toc').on('click', 'a', function() {
<p>Oftentimes, a user wants a filter's behavior to be adaptable rather than static. A filter's range can be made changeable via commands from some external source or just changed as a result of some other local analytics.</p>
-<p>A Quarks IotProvider and IoTDevice with its command streams would be a natural way to control the application. In this recipe we will just simulate a "set optimal temp range" command stream.</p>
+<p>A Quarks <code>IotProvider</code> and <code>IoTDevice</code> with its command streams would be a natural way to control the application. In this recipe we will just simulate a "set optimal temp range" command stream.</p>
<p>The string form of a <code>Range</code> is natural, consise, and easy to use. As such it's a convenient form to use as external range format. The range string can easily be converted back into a <code>Range</code>.</p>
@@ -578,7 +587,7 @@ $('#toc').on('click', 'a', function() {
<h2 id="simulate-a-command-stream">Simulate a command stream</h2>
-<p>A <code>TStream<Range<Double>> setRangeCmds</code> stream is created and a new range specification tuple is generated every 10 seconds. A <code>sink</code> on the stream calls <code>setOptimalTempRange()</code> to change the range and hence the filter's bahavior.</p>
+<p>A <code>TStream<Range<Double>> setRangeCmds</code> stream is created and a new range specification tuple is generated every 10 seconds. A <code>sink()</code> on the stream calls <code>setOptimalTempRange()</code> to change the range and hence the filter's bahavior.</p>
<div class="highlight"><pre><code class="language-java" data-lang="java"> <span class="c1">// Simulate a command stream to change the optimal range.</span>
<span class="c1">// Such a stream might be from an IotDevice command.</span>
<span class="n">String</span><span class="o">[]</span> <span class="n">ranges</span> <span class="o">=</span> <span class="k">new</span> <span class="n">String</span><span class="o">[]</span> <span class="o">{</span>
@@ -692,7 +701,7 @@ $('#toc').on('click', 'a', function() {
<div class="col-lg-12 footer">
Site last
- generated: Apr 21, 2016 <br/>
+ generated: Apr 26, 2016 <br/>
</div>
</div>
http://git-wip-us.apache.org/repos/asf/incubator-quarks-website/blob/f6f2443d/content/recipes/recipe_adaptable_polling_source.html
----------------------------------------------------------------------
diff --git a/content/recipes/recipe_adaptable_polling_source.html b/content/recipes/recipe_adaptable_polling_source.html
new file mode 100644
index 0000000..bd0a43b
--- /dev/null
+++ b/content/recipes/recipe_adaptable_polling_source.html
@@ -0,0 +1,751 @@
+<!DOCTYPE html>
+ <head>
+
+ <meta charset="utf-8">
+<meta http-equiv="X-UA-Compatible" content="IE=edge">
+<meta name="viewport" content="width=device-width, initial-scale=1">
+<meta name="description" content="">
+<meta name="keywords" content=" ">
+<title>Changing a polled source stream's period | Apache Quarks Documentation</title>
+<link rel="stylesheet" type="text/css" href="../css/syntax.css">
+<link rel="stylesheet" type="text/css" href="../css/font-awesome.min.css">
+<!--<link rel="stylesheet" type="text/css" href="../css/bootstrap.min.css">-->
+<link rel="stylesheet" type="text/css" href="../css/modern-business.css">
+<link rel="stylesheet" type="text/css" href="../css/lavish-bootstrap.css">
+<link rel="stylesheet" type="text/css" href="../css/customstyles.css">
+<link rel="stylesheet" type="text/css" href="../css/theme-blue.css">
+<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
+<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.4.1/jquery.cookie.min.js"></script>
+<script src="../js/jquery.navgoco.min.js"></script>
+<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
+<script src="https://cdnjs.cloudflare.com/ajax/libs/anchor-js/2.0.0/anchor.min.js"></script>
+<script src="../js/toc.js"></script>
+<script src="../js/customscripts.js"></script>
+<link rel="shortcut icon" href="../common_images/favicon.ico" type="image/x-icon">
+<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
+<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
+<!--[if lt IE 9]>
+<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
+<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
+<![endif]-->
+
+
+
+
+
+
+
+
+
+<script>
+ $(function () {
+ $('[data-toggle="tooltip"]').tooltip()
+ })
+</script>
+
+
+
+ </head>
+
+<body>
+
+ <!-- Navigation -->
+<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
+ <div class="container topnavlinks">
+ <div class="navbar-header">
+ <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
+ <span class="sr-only">Toggle navigation</span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ </button>
+
+ <a class="fa fa-home fa-lg navbar-brand" href="../docs/home.html"> <span class="projectTitle"> Apache Quarks Documentation</span></a>
+
+ </div>
+ <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
+ <ul class="nav navbar-nav navbar-right">
+ <!-- entries without drop-downs appear here -->
+ <!-- conditional logic to control which topnav appears for the audience defined in the configuration file.-->
+
+
+
+
+
+
+
+
+
+ <li class="dropdown">
+
+
+
+ <a href="#" class="dropdown-toggle" data-toggle="dropdown">GitHub Repos<b class="caret"></b></a>
+ <ul class="dropdown-menu">
+
+
+
+ <li><a href="https://github.com/apache/incubator-quarks" target="_blank">Source code</a></li>
+
+
+
+
+
+ <li><a href="https://github.com/apache/incubator-quarks-website" target="_blank">Website/Documentation</a></li>
+
+
+
+
+
+ </ul>
+ </li>
+
+
+
+
+
+
+
+
+ <li><a href="https://quarks-edge.github.io/quarks/docs/javadoc/index.html" target="_blank">Javadoc</a></li>
+
+
+
+
+
+
+ <!-- entries with drop-downs appear here -->
+ <!-- conditional logic to control which topnav appears for the audience defined in the configuration file.-->
+
+ <li class="dropdown">
+
+
+
+ <a href="#" class="dropdown-toggle" data-toggle="dropdown">Quarks Resources<b class="caret"></b></a>
+ <ul class="dropdown-menu">
+
+
+
+ <li><a href="https://github.com/apache/incubator-quarks/releases" target="_blank">Download</a></li>
+
+
+
+
+
+ <li><a href="samples">Samples</a></li>
+
+
+
+
+
+ <li><a href="faq">FAQ</a></li>
+
+
+
+
+
+ </ul>
+ </li>
+
+
+
+
+ <!-- special insertion -->
+
+
+ <!-- Send feedback function -->
+<script>
+function SendLinkByMail(href) {
+var subject= "Apache Quarks Documentation feedback";
+var body = "I have some feedback about the Changing a polled source stream's period page: ";
+body += window.location.href;
+body += "";
+var uri = "mailto:?subject=";
+uri += encodeURIComponent(subject);
+uri += "&body=";
+uri += encodeURIComponent(body);
+window.location.href = uri;
+}
+</script>
+
+<li><a href="mailto:dev@quarks.incubator.apache.org" target="_blank"><i class="fa fa-envelope-o"></i> Feedback</a></li>
+
+
+ <!--uncomment this block if you want simple search instead of algolia-->
+ <li>
+ <!--start search-->
+ <div id="search-demo-container">
+ <input type="text" id="search-input" placeholder="search...">
+ <ul id="results-container"></ul>
+ </div>
+ <script src="../js/jekyll-search.js" type="text/javascript"></script>
+ <script type="text/javascript">
+ SimpleJekyllSearch.init({
+ searchInput: document.getElementById('search-input'),
+ resultsContainer: document.getElementById('results-container'),
+ dataSource: '../search.json',
+ searchResultTemplate: '<li><a href="{url}" title="Changing a polled source stream\s period">{title}</a></li>',
+ noResultsText: 'No results found.',
+ limit: 10,
+ fuzzy: true,
+ })
+ </script>
+ <!--end search-->
+ </li>
+
+
+ </div>
+ <!-- /.container -->
+</nav>
+
+
+
+ <!-- Page Content -->
+ <div class="container">
+ <div class="col-lg-12"> </div>
+
+
+<!-- Content Row -->
+<div class="row">
+ <!-- Sidebar Column -->
+ <div class="col-md-3">
+
+ <script>
+
+ $(document).ready(function() {
+ // Initialize navgoco with default options
+ $("#mysidebar").navgoco({
+ caretHtml: '',
+ accordion: true,
+ openClass: 'active', // open
+ save: false, // leave false or nav highlighting doesn't work right
+ cookie: {
+ name: 'navgoco',
+ expires: false,
+ path: '/'
+ },
+ slide: {
+ duration: 400,
+ easing: 'swing'
+ }
+ });
+
+ $("#collapseAll").click(function(e) {
+ e.preventDefault();
+ $("#mysidebar").navgoco('toggle', false);
+ });
+
+ $("#expandAll").click(function(e) {
+ e.preventDefault();
+ $("#mysidebar").navgoco('toggle', true);
+ });
+
+ });
+
+ </script>
+
+
+
+
+
+
+
+
+
+
+
+
+ <ul id="mysidebar" class="nav">
+
+ <span class="siteTagline">Quarks</span>
+ <span class="versionTagline">Version 0.3.0</span>
+
+
+
+
+
+
+ <li><a href="#">Overview</a>
+ <ul>
+
+
+
+ <li><a href="../docs/quarks_index.html">Introduction</a></li>
+
+
+
+
+
+
+
+
+ <li><a href="../docs/faq.html">FAQ</a></li>
+
+
+
+
+
+
+ </ul>
+
+
+
+ <li><a href="#">Get Started</a>
+ <ul>
+
+
+
+ <li><a href="../docs/quarks-getting-started.html">Getting started guide</a></li>
+
+
+
+
+
+
+
+
+ <li><a href="../docs/common-quarks-operations.html">Common operations</a></li>
+
+
+
+
+
+
+ </ul>
+
+
+
+ <li><a href="#">Quarks Cookbook</a>
+ <ul>
+
+
+
+ <li><a href="../recipes/recipe_hello_quarks.html">Hello Quarks!</a></li>
+
+
+
+
+
+
+
+
+ <li><a href="../recipes/recipe_source_function.html">Writing a source function</a></li>
+
+
+
+
+
+
+
+
+ <li><a href="../recipes/recipe_value_out_of_range.html">Detecting a sensor value out of expected range</a></li>
+
+
+
+
+
+
+
+
+ <li><a href="../recipes/recipe_different_processing_against_stream.html">Applying different processing against a single stream</a></li>
+
+
+
+
+
+
+
+
+ <li><a href="../recipes/recipe_combining_streams_processing_results.html">Splitting a stream to apply different processing and combining the results into a single stream</a></li>
+
+
+
+
+
+
+
+
+ <li><a href="../recipes/recipe_external_filter_range.html">Using an external configuration file for filter ranges</a></li>
+
+
+
+
+
+
+
+
+ <li><a href="../recipes/recipe_adaptable_filter_range.html">Changing a filter's range</a></li>
+
+
+
+
+
+
+
+
+ <li><a href="../recipes/recipe_adaptable_polling_source.html">Changing a polled source stream's period</a></li>
+
+
+
+
+
+
+
+
+ <li><a href="../recipes/recipe_adaptable_deadtime_filter.html">Using an adaptable deadtime filter</a></li>
+
+
+
+
+
+
+
+
+ <li><a href="../recipes/recipe_dynamic_analytic_control.html">Dynamically enabling analytic flows</a></li>
+
+
+
+
+
+
+ </ul>
+
+
+
+ <li><a href="#">Sample Programs</a>
+ <ul>
+
+
+
+ <li><a href="../docs/samples.html">Samples</a></li>
+
+
+
+
+
+
+
+
+ <li><a href="../docs/quickstart.html">Quickstart IBM Watson IoT Platform</a></li>
+
+
+
+
+
+
+ </ul>
+
+
+
+ <li><a href="#">Using the Console</a>
+ <ul>
+
+
+
+ <li><a href="../docs/console.html">Using the console</a></li>
+
+
+
+
+
+
+ </ul>
+
+
+
+ <li><a href="#">Get Involved</a>
+ <ul>
+
+
+
+ <li><a href="../docs/community.html">How to participate</a></li>
+
+
+
+
+
+
+
+
+ <li><a href="../docs/committers.html">Committers</a></li>
+
+
+
+
+
+
+ </ul>
+
+
+
+
+
+ <!-- if you aren't using the accordion, uncomment this block:
+
+ <p class="external">
+ <a href="#" id="collapseAll">Collapse All</a> | <a href="#" id="expandAll">Expand All</a>
+ </p>
+ -->
+ <br/>
+ </li>
+ </ul>
+ <div class="row">
+ <div class="col-md-12">
+
+<!-- this handles the automatic toc. use ## for subheads to auto-generate the on-page minitoc. if you use html tags, you must supply an ID for the heading element in order for it to appear in the minitoc. -->
+<script>
+$( document ).ready(function() {
+ // Handler for .ready() called.
+
+$('#toc').toc({ minimumHeaders: 0, listType: 'ul', showSpeed: 0, headers: 'h2,h3,h4' });
+
+/* this offset helps account for the space taken up by the floating toolbar. */
+$('#toc').on('click', 'a', function() {
+ var target = $(this.getAttribute('href'))
+ , scroll_target = target.offset().top
+
+ $(window).scrollTop(scroll_target - 10);
+ return false
+})
+
+});
+</script>
+
+
+<div id="toc"></div>
+
+ </div>
+ </div>
+ </div>
+
+ <!-- this highlights the active parent class in the navgoco sidebar. this is critical so that the parent expands when you're viewing a page. This must appear below the sidebar code above. Otherwise, if placed inside customscripts.js, the script runs before the sidebar code runs and the class never gets inserted.-->
+ <script>$("li.active").parents('li').toggleClass("active");</script>
+
+
+ <!-- Content Column -->
+ <div class="col-md-9">
+
+ <div class="post-header">
+ <h1 class="post-title-main">Changing a polled source stream's period</h1>
+</div>
+
+<div class="post-content">
+
+
+
+<!-- this handles the automatic toc. use ## for subheads to auto-generate the on-page minitoc. if you use html tags, you must supply an ID for the heading element in order for it to appear in the minitoc. -->
+<script>
+$( document ).ready(function() {
+ // Handler for .ready() called.
+
+$('#toc').toc({ minimumHeaders: 0, listType: 'ul', showSpeed: 0, headers: 'h2,h3,h4' });
+
+/* this offset helps account for the space taken up by the floating toolbar. */
+$('#toc').on('click', 'a', function() {
+ var target = $(this.getAttribute('href'))
+ , scroll_target = target.offset().top
+
+ $(window).scrollTop(scroll_target - 10);
+ return false
+})
+
+});
+</script>
+
+
+<div id="toc"></div>
+
+
+
+
+ <a target="_blank" href="https://github.com/apache/incubator-quarks-website/blob/master/site/recipes/recipe_adaptable_polling_source.md" class="btn btn-default githubEditButton" role="button"><i class="fa fa-github fa-lg"></i> Edit me</a>
+
+ <p>The <a href="recipe_source_function.html">Writing a Source Function</a> recipe introduced the basics of creating a source stream by polling a data source periodically.</p>
+
+<p>Oftentimes, a user wants the poll frequency to be adaptable rather than static. For example, an event such as a sudden rise in a temperature sensor may motivate more frequent polling of the sensor and analysis of the data until the condition subsides. A change in the poll frequency may be driven by locally performed analytics or via a command from an external source.</p>
+
+<p>A Quarks <code>IotProvider</code> and <code>IoTDevice</code> with its command streams would be a natural way to control the application. In this recipe we will just simulate a "set poll period" command stream.</p>
+
+<p>The <code>Topology.poll()</code> documentation describes how the poll period may be changed at runtime.</p>
+
+<p>The mechanism is based on a more general Quarks runtime <code>quarks.execution.services.ControlService</code> service. The runtime registers "control beans" for entities that are controllable. These controls can be retrieved at runtime via the service.</p>
+
+<p>At runtime, <code>Topology.poll()</code> registers a <code>quarks.execution.mbeans.PeriodicMXBean</code> control. <strong>Retrieving the control at runtime requires setting an alias on the poll generated stream using <code>TStream.alias()</code>.</strong></p>
+
+<h2 id="create-the-polled-stream-and-set-its-alias">Create the polled stream and set its alias</h2>
+<div class="highlight"><pre><code class="language-java" data-lang="java"> <span class="n">Topology</span> <span class="n">top</span> <span class="o">=</span> <span class="o">...;</span>
+ <span class="n">SimulatedTemperatureSensor</span> <span class="n">tempSensor</span> <span class="o">=</span> <span class="k">new</span> <span class="n">SimulatedTemperatureSensor</span><span class="o">();</span>
+ <span class="n">TStream</span><span class="o"><</span><span class="n">Double</span><span class="o">></span> <span class="n">engineTemp</span> <span class="o">=</span> <span class="n">top</span><span class="o">.</span><span class="na">poll</span><span class="o">(</span><span class="n">tempSensor</span><span class="o">,</span> <span class="mi">1</span><span class="o">,</span> <span class="n">TimeUnit</span><span class="o">.</span><span class="na">SECONDS</span><span class="o">)</span>
+ <span class="o">.</span><span class="na">alias</span><span class="o">(</span><span class="s">"engineTemp"</span><span class="o">)</span>
+ <span class="o">.</span><span class="na">tag</span><span class="o">(</span><span class="s">"engineTemp"</span><span class="o">);</span>
+</code></pre></div>
+<p>It's also a good practice to add tags to streams to improve the usability of the development mode Quarks console.</p>
+
+<h2 id="define-a-quot-set-poll-period-quot-method">Define a "set poll period" method</h2>
+<div class="highlight"><pre><code class="language-java" data-lang="java"> <span class="kd">static</span> <span class="o"><</span><span class="n">T</span><span class="o">></span> <span class="kt">void</span> <span class="n">setPollPeriod</span><span class="o">(</span><span class="n">TStream</span><span class="o"><</span><span class="n">T</span><span class="o">></span> <span class="n">pollStream</span><span class="o">,</span> <span class="kt">long</span> <span class="n">period</span><span class="o">,</span> <span class="n">TimeUnit</span> <span class="n">unit</span><span class="o">)</span> <span class="o">{</span>
+ <span class="c1">// get the topology's runtime ControlService service</span>
+ <span class="n">ControlService</span> <span class="n">cs</span> <span class="o">=</span> <span class="n">pollStream</span><span class="o">.</span><span class="na">topology</span><span class="o">().</span><span class="na">getRuntimeServiceSupplier</span><span class="o">()</span>
+ <span class="o">.</span><span class="na">get</span><span class="o">().</span><span class="na">getService</span><span class="o">(</span><span class="n">ControlService</span><span class="o">.</span><span class="na">class</span><span class="o">);</span>
+
+ <span class="c1">// using the the stream's alias, get its PeriodicMXBean control</span>
+ <span class="n">PeriodicMXBean</span> <span class="n">control</span> <span class="o">=</span> <span class="n">cs</span><span class="o">.</span><span class="na">getControl</span><span class="o">(</span><span class="s">"periodic"</span><span class="o">,</span> <span class="n">pollStream</span><span class="o">.</span><span class="na">getAlias</span><span class="o">(),</span> <span class="n">PeriodicMXBean</span><span class="o">.</span><span class="na">class</span><span class="o">);</span>
+
+ <span class="c1">// change the poll period using the control</span>
+ <span class="n">System</span><span class="o">.</span><span class="na">out</span><span class="o">.</span><span class="na">println</span><span class="o">(</span><span class="s">"Setting period="</span><span class="o">+</span><span class="n">period</span><span class="o">+</span><span class="s">" "</span><span class="o">+</span><span class="n">unit</span><span class="o">+</span><span class="s">" stream="</span><span class="o">+</span><span class="n">pollStream</span><span class="o">);</span>
+ <span class="n">control</span><span class="o">.</span><span class="na">setPeriod</span><span class="o">(</span><span class="n">period</span><span class="o">,</span> <span class="n">unit</span><span class="o">);</span>
+ <span class="o">}</span>
+</code></pre></div>
+<h2 id="process-the-quot-set-poll-period-quot-command-stream">Process the "set poll period" command stream</h2>
+
+<p>Our commands are on the <code>TStream<JsonObject> cmds</code> stream. Each <code>JsonObject</code> tuple is a command with the properties "period" and "unit".</p>
+<div class="highlight"><pre><code class="language-java" data-lang="java"> <span class="n">cmds</span><span class="o">.</span><span class="na">sink</span><span class="o">(</span><span class="n">json</span> <span class="o">-></span> <span class="n">setPollPeriod</span><span class="o">(</span><span class="n">engineTemp</span><span class="o">,</span>
+ <span class="n">json</span><span class="o">.</span><span class="na">getAsJsonPrimitive</span><span class="o">(</span><span class="s">"period"</span><span class="o">).</span><span class="na">getAsLong</span><span class="o">(),</span>
+ <span class="n">TimeUnit</span><span class="o">.</span><span class="na">valueOf</span><span class="o">(</span><span class="n">json</span><span class="o">.</span><span class="na">getAsJsonPrimitive</span><span class="o">(</span><span class="s">"unit"</span><span class="o">).</span><span class="na">getAsString</span><span class="o">())));</span>
+</code></pre></div>
+<h2 id="the-final-application">The final application</h2>
+<div class="highlight"><pre><code class="language-java" data-lang="java"><span class="kn">import</span> <span class="nn">java.util.Date</span><span class="o">;</span>
+<span class="kn">import</span> <span class="nn">java.util.concurrent.TimeUnit</span><span class="o">;</span>
+<span class="kn">import</span> <span class="nn">java.util.concurrent.atomic.AtomicInteger</span><span class="o">;</span>
+
+<span class="kn">import</span> <span class="nn">com.google.gson.JsonObject</span><span class="o">;</span>
+
+<span class="kn">import</span> <span class="nn">quarks.execution.mbeans.PeriodicMXBean</span><span class="o">;</span>
+<span class="kn">import</span> <span class="nn">quarks.execution.services.ControlService</span><span class="o">;</span>
+<span class="kn">import</span> <span class="nn">quarks.providers.development.DevelopmentProvider</span><span class="o">;</span>
+<span class="kn">import</span> <span class="nn">quarks.providers.direct.DirectProvider</span><span class="o">;</span>
+<span class="kn">import</span> <span class="nn">quarks.samples.utils.sensor.SimulatedTemperatureSensor</span><span class="o">;</span>
+<span class="kn">import</span> <span class="nn">quarks.topology.TStream</span><span class="o">;</span>
+<span class="kn">import</span> <span class="nn">quarks.topology.Topology</span><span class="o">;</span>
+
+<span class="cm">/**
+ * A recipe for a polled source stream with an adaptable poll period.
+ */</span>
+<span class="kd">public</span> <span class="kd">class</span> <span class="nc">AdaptablePolledSource</span> <span class="o">{</span>
+
+ <span class="cm">/**
+ * Poll a temperature sensor to periodically obtain temperature readings.
+ * Respond to a simulated command stream to change the poll period.
+ */</span>
+ <span class="kd">public</span> <span class="kd">static</span> <span class="kt">void</span> <span class="n">main</span><span class="o">(</span><span class="n">String</span><span class="o">[]</span> <span class="n">args</span><span class="o">)</span> <span class="kd">throws</span> <span class="n">Exception</span> <span class="o">{</span>
+
+ <span class="n">DirectProvider</span> <span class="n">dp</span> <span class="o">=</span> <span class="k">new</span> <span class="n">DirectProvider</span><span class="o">();</span>
+
+ <span class="n">Topology</span> <span class="n">top</span> <span class="o">=</span> <span class="n">dp</span><span class="o">.</span><span class="na">newTopology</span><span class="o">(</span><span class="s">"TemperatureSensor"</span><span class="o">);</span>
+
+ <span class="c1">// Generate a polled temperature sensor stream and set its alias</span>
+ <span class="n">SimulatedTemperatureSensor</span> <span class="n">tempSensor</span> <span class="o">=</span> <span class="k">new</span> <span class="n">SimulatedTemperatureSensor</span><span class="o">();</span>
+ <span class="n">TStream</span><span class="o"><</span><span class="n">Double</span><span class="o">></span> <span class="n">engineTemp</span> <span class="o">=</span> <span class="n">top</span><span class="o">.</span><span class="na">poll</span><span class="o">(</span><span class="n">tempSensor</span><span class="o">,</span> <span class="mi">1</span><span class="o">,</span> <span class="n">TimeUnit</span><span class="o">.</span><span class="na">SECONDS</span><span class="o">)</span>
+ <span class="o">.</span><span class="na">alias</span><span class="o">(</span><span class="s">"engineTemp"</span><span class="o">)</span>
+ <span class="o">.</span><span class="na">tag</span><span class="o">(</span><span class="s">"engineTemp"</span><span class="o">);</span>
+
+ <span class="c1">// Report the time each temperature reading arrives and the value</span>
+ <span class="n">engineTemp</span><span class="o">.</span><span class="na">peek</span><span class="o">(</span><span class="n">tuple</span> <span class="o">-></span> <span class="n">System</span><span class="o">.</span><span class="na">out</span><span class="o">.</span><span class="na">println</span><span class="o">(</span><span class="k">new</span> <span class="n">Date</span><span class="o">()</span> <span class="o">+</span> <span class="s">" temp="</span> <span class="o">+</span> <span class="n">tuple</span><span class="o">));</span>
+
+ <span class="c1">// Generate a simulated "set poll period" command stream</span>
+ <span class="n">TStream</span><span class="o"><</span><span class="n">JsonObject</span><span class="o">></span> <span class="n">cmds</span> <span class="o">=</span> <span class="n">simulatedSetPollPeriodCmds</span><span class="o">(</span><span class="n">top</span><span class="o">);</span>
+
+ <span class="c1">// Process the commands to change the poll period</span>
+ <span class="n">cmds</span><span class="o">.</span><span class="na">sink</span><span class="o">(</span><span class="n">json</span> <span class="o">-></span> <span class="n">setPollPeriod</span><span class="o">(</span><span class="n">engineTemp</span><span class="o">,</span>
+ <span class="n">json</span><span class="o">.</span><span class="na">getAsJsonPrimitive</span><span class="o">(</span><span class="s">"period"</span><span class="o">).</span><span class="na">getAsLong</span><span class="o">(),</span>
+ <span class="n">TimeUnit</span><span class="o">.</span><span class="na">valueOf</span><span class="o">(</span><span class="n">json</span><span class="o">.</span><span class="na">getAsJsonPrimitive</span><span class="o">(</span><span class="s">"unit"</span><span class="o">).</span><span class="na">getAsString</span><span class="o">())));</span>
+
+ <span class="n">dp</span><span class="o">.</span><span class="na">submit</span><span class="o">(</span><span class="n">top</span><span class="o">);</span>
+ <span class="o">}</span>
+
+ <span class="kd">static</span> <span class="o"><</span><span class="n">T</span><span class="o">></span> <span class="kt">void</span> <span class="n">setPollPeriod</span><span class="o">(</span><span class="n">TStream</span><span class="o"><</span><span class="n">T</span><span class="o">></span> <span class="n">pollStream</span><span class="o">,</span> <span class="kt">long</span> <span class="n">period</span><span class="o">,</span> <span class="n">TimeUnit</span> <span class="n">unit</span><span class="o">)</span> <span class="o">{</span>
+ <span class="c1">// get the topology's runtime ControlService service</span>
+ <span class="n">ControlService</span> <span class="n">cs</span> <span class="o">=</span> <span class="n">pollStream</span><span class="o">.</span><span class="na">topology</span><span class="o">().</span><span class="na">getRuntimeServiceSupplier</span><span class="o">()</span>
+ <span class="o">.</span><span class="na">get</span><span class="o">().</span><span class="na">getService</span><span class="o">(</span><span class="n">ControlService</span><span class="o">.</span><span class="na">class</span><span class="o">);</span>
+
+ <span class="c1">// using the the stream's alias, get its PeriodicMXBean control</span>
+ <span class="n">PeriodicMXBean</span> <span class="n">control</span> <span class="o">=</span> <span class="n">cs</span><span class="o">.</span><span class="na">getControl</span><span class="o">(</span><span class="s">"periodic"</span><span class="o">,</span> <span class="n">pollStream</span><span class="o">.</span><span class="na">getAlias</span><span class="o">(),</span> <span class="n">PeriodicMXBean</span><span class="o">.</span><span class="na">class</span><span class="o">);</span>
+
+ <span class="c1">// change the poll period using the control</span>
+ <span class="n">System</span><span class="o">.</span><span class="na">out</span><span class="o">.</span><span class="na">println</span><span class="o">(</span><span class="s">"Setting period="</span><span class="o">+</span><span class="n">period</span><span class="o">+</span><span class="s">" "</span><span class="o">+</span><span class="n">unit</span><span class="o">+</span><span class="s">" stream="</span><span class="o">+</span><span class="n">pollStream</span><span class="o">);</span>
+ <span class="n">control</span><span class="o">.</span><span class="na">setPeriod</span><span class="o">(</span><span class="n">period</span><span class="o">,</span> <span class="n">unit</span><span class="o">);</span>
+ <span class="o">}</span>
+
+ <span class="kd">static</span> <span class="n">TStream</span><span class="o"><</span><span class="n">JsonObject</span><span class="o">></span> <span class="n">simulatedSetPollPeriodCmds</span><span class="o">(</span><span class="n">Topology</span> <span class="n">top</span><span class="o">)</span> <span class="o">{</span>
+ <span class="n">AtomicInteger</span> <span class="n">lastPeriod</span> <span class="o">=</span> <span class="k">new</span> <span class="n">AtomicInteger</span><span class="o">(</span><span class="mi">1</span><span class="o">);</span>
+ <span class="n">TStream</span><span class="o"><</span><span class="n">JsonObject</span><span class="o">></span> <span class="n">cmds</span> <span class="o">=</span> <span class="n">top</span><span class="o">.</span><span class="na">poll</span><span class="o">(()</span> <span class="o">-></span> <span class="o">{</span>
+ <span class="c1">// toggle between 1 and 2 sec period</span>
+ <span class="kt">int</span> <span class="n">newPeriod</span> <span class="o">=</span> <span class="n">lastPeriod</span><span class="o">.</span><span class="na">get</span><span class="o">()</span> <span class="o">==</span> <span class="mi">1</span> <span class="o">?</span> <span class="mi">2</span> <span class="o">:</span> <span class="mi">1</span><span class="o">;</span>
+ <span class="n">lastPeriod</span><span class="o">.</span><span class="na">set</span><span class="o">(</span><span class="n">newPeriod</span><span class="o">);</span>
+ <span class="n">JsonObject</span> <span class="n">jo</span> <span class="o">=</span> <span class="k">new</span> <span class="n">JsonObject</span><span class="o">();</span>
+ <span class="n">jo</span><span class="o">.</span><span class="na">addProperty</span><span class="o">(</span><span class="s">"period"</span><span class="o">,</span> <span class="n">newPeriod</span><span class="o">);</span>
+ <span class="n">jo</span><span class="o">.</span><span class="na">addProperty</span><span class="o">(</span><span class="s">"unit"</span><span class="o">,</span> <span class="n">TimeUnit</span><span class="o">.</span><span class="na">SECONDS</span><span class="o">.</span><span class="na">toString</span><span class="o">());</span>
+ <span class="k">return</span> <span class="n">jo</span><span class="o">;</span>
+ <span class="o">},</span> <span class="mi">5</span><span class="o">,</span> <span class="n">TimeUnit</span><span class="o">.</span><span class="na">SECONDS</span><span class="o">)</span>
+ <span class="o">.</span><span class="na">tag</span><span class="o">(</span><span class="s">"cmds"</span><span class="o">);</span>
+ <span class="k">return</span> <span class="n">cmds</span><span class="o">;</span>
+ <span class="o">}</span>
+
+<span class="o">}</span>
+
+</code></pre></div>
+
+<div class="tags">
+
+</div>
+
+<!--
+
+ <div id="disqus_thread"></div>
+ <script type="text/javascript">
+ /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
+ var disqus_shortname = 'idrbwjekyll'; // required: replace example with your forum shortname
+
+ /* * * DON'T EDIT BELOW THIS LINE * * */
+ (function() {
+ var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
+ dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
+ (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
+ })();
+ </script>
+ <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
+ -->
+
+</div>
+
+
+
+<footer>
+ <div class="row">
+ <div class="col-lg-12 footer">
+
+ Site last
+ generated: Apr 26, 2016 <br/>
+
+ </div>
+ </div>
+ <br/>
+ <div class="row">
+ <div class="col-md-12">
+ <p class="small">Apache Quarks is an effort undergoing Incubation at The Apache Software
+ Foundation (ASF), sponsored by the Incubator. Incubation is required of all newly accepted projects
+ until a further review indicates that the infrastructure, communications, and decision making process
+ have stabilized in a manner consistent with other successful ASF projects. While incubation status is
+ not necessarily a reflection of the completeness or stability of the code, it does indicate that the
+ project has yet to be fully endorsed by the ASF.</p>
+ </div>
+ </div>
+ <div class="row">
+ <div class="col-md-12">
+ <p class="small">Copyright © 2016 The Apache Software Foundation. Licensed under the Apache
+ License, Version 2.0.
+ Apache, the Apache Feather logo, and the Apache Incubator project logo are trademarks of The Apache
+ Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their
+ respective owners.</p>
+ </div>
+ </div>
+</footer>
+
+ </div><!-- /.row -->
+
+ </div> <!-- /.container -->
+
+</body>
+
+
+</html>
+
http://git-wip-us.apache.org/repos/asf/incubator-quarks-website/blob/f6f2443d/content/recipes/recipe_combining_streams_processing_results.html
----------------------------------------------------------------------
diff --git a/content/recipes/recipe_combining_streams_processing_results.html b/content/recipes/recipe_combining_streams_processing_results.html
index 48ef02e..f9b49c5 100644
--- a/content/recipes/recipe_combining_streams_processing_results.html
+++ b/content/recipes/recipe_combining_streams_processing_results.html
@@ -374,7 +374,7 @@ window.location.href = uri;
- <li><a href="../recipes/recipe_adaptable_filter_range.html">Adaptable filter behavior</a></li>
+ <li><a href="../recipes/recipe_adaptable_filter_range.html">Changing a filter's range</a></li>
@@ -383,7 +383,7 @@ window.location.href = uri;
- <li><a href="../recipes/recipe_dynamic_analytic_control.html">Dynamically Enabling Analytic Flows</a></li>
+ <li><a href="../recipes/recipe_adaptable_polling_source.html">Changing a polled source stream's period</a></li>
@@ -392,7 +392,16 @@ window.location.href = uri;
- <li><a href="../recipes/recipe_adaptable_deadtime_filter.html">Using an Adaptable Deadtime Filter</a></li>
+ <li><a href="../recipes/recipe_adaptable_deadtime_filter.html">Using an adaptable deadtime filter</a></li>
+
+
+
+
+
+
+
+
+ <li><a href="../recipes/recipe_dynamic_analytic_control.html">Dynamically enabling analytic flows</a></li>
@@ -823,7 +832,7 @@ $('#toc').on('click', 'a', function() {
<div class="col-lg-12 footer">
Site last
- generated: Apr 21, 2016 <br/>
+ generated: Apr 26, 2016 <br/>
</div>
</div>
http://git-wip-us.apache.org/repos/asf/incubator-quarks-website/blob/f6f2443d/content/recipes/recipe_different_processing_against_stream.html
----------------------------------------------------------------------
diff --git a/content/recipes/recipe_different_processing_against_stream.html b/content/recipes/recipe_different_processing_against_stream.html
index 0cc25d6..1682066 100644
--- a/content/recipes/recipe_different_processing_against_stream.html
+++ b/content/recipes/recipe_different_processing_against_stream.html
@@ -374,7 +374,7 @@ window.location.href = uri;
- <li><a href="../recipes/recipe_adaptable_filter_range.html">Adaptable filter behavior</a></li>
+ <li><a href="../recipes/recipe_adaptable_filter_range.html">Changing a filter's range</a></li>
@@ -383,7 +383,7 @@ window.location.href = uri;
- <li><a href="../recipes/recipe_dynamic_analytic_control.html">Dynamically Enabling Analytic Flows</a></li>
+ <li><a href="../recipes/recipe_adaptable_polling_source.html">Changing a polled source stream's period</a></li>
@@ -392,7 +392,16 @@ window.location.href = uri;
- <li><a href="../recipes/recipe_adaptable_deadtime_filter.html">Using an Adaptable Deadtime Filter</a></li>
+ <li><a href="../recipes/recipe_adaptable_deadtime_filter.html">Using an adaptable deadtime filter</a></li>
+
+
+
+
+
+
+
+
+ <li><a href="../recipes/recipe_dynamic_analytic_control.html">Dynamically enabling analytic flows</a></li>
@@ -772,7 +781,7 @@ $('#toc').on('click', 'a', function() {
<div class="col-lg-12 footer">
Site last
- generated: Apr 21, 2016 <br/>
+ generated: Apr 26, 2016 <br/>
</div>
</div>
http://git-wip-us.apache.org/repos/asf/incubator-quarks-website/blob/f6f2443d/content/recipes/recipe_dynamic_analytic_control.html
----------------------------------------------------------------------
diff --git a/content/recipes/recipe_dynamic_analytic_control.html b/content/recipes/recipe_dynamic_analytic_control.html
index 136420c..915cd17 100644
--- a/content/recipes/recipe_dynamic_analytic_control.html
+++ b/content/recipes/recipe_dynamic_analytic_control.html
@@ -374,7 +374,7 @@ window.location.href = uri;
- <li><a href="../recipes/recipe_adaptable_filter_range.html">Adaptable filter behavior</a></li>
+ <li><a href="../recipes/recipe_adaptable_filter_range.html">Changing a filter's range</a></li>
@@ -383,7 +383,7 @@ window.location.href = uri;
- <li><a href="../recipes/recipe_dynamic_analytic_control.html">Dynamically Enabling Analytic Flows</a></li>
+ <li><a href="../recipes/recipe_adaptable_polling_source.html">Changing a polled source stream's period</a></li>
@@ -392,7 +392,16 @@ window.location.href = uri;
- <li><a href="../recipes/recipe_adaptable_deadtime_filter.html">Using an Adaptable Deadtime Filter</a></li>
+ <li><a href="../recipes/recipe_adaptable_deadtime_filter.html">Using an adaptable deadtime filter</a></li>
+
+
+
+
+
+
+
+
+ <li><a href="../recipes/recipe_dynamic_analytic_control.html">Dynamically enabling analytic flows</a></li>
@@ -624,7 +633,7 @@ $('#toc').on('click', 'a', function() {
<div class="col-lg-12 footer">
Site last
- generated: Apr 21, 2016 <br/>
+ generated: Apr 26, 2016 <br/>
</div>
</div>
http://git-wip-us.apache.org/repos/asf/incubator-quarks-website/blob/f6f2443d/content/recipes/recipe_external_filter_range.html
----------------------------------------------------------------------
diff --git a/content/recipes/recipe_external_filter_range.html b/content/recipes/recipe_external_filter_range.html
index be7dab8..a815630 100644
--- a/content/recipes/recipe_external_filter_range.html
+++ b/content/recipes/recipe_external_filter_range.html
@@ -374,7 +374,7 @@ window.location.href = uri;
- <li><a href="../recipes/recipe_adaptable_filter_range.html">Adaptable filter behavior</a></li>
+ <li><a href="../recipes/recipe_adaptable_filter_range.html">Changing a filter's range</a></li>
@@ -383,7 +383,7 @@ window.location.href = uri;
- <li><a href="../recipes/recipe_dynamic_analytic_control.html">Dynamically Enabling Analytic Flows</a></li>
+ <li><a href="../recipes/recipe_adaptable_polling_source.html">Changing a polled source stream's period</a></li>
@@ -392,7 +392,16 @@ window.location.href = uri;
- <li><a href="../recipes/recipe_adaptable_deadtime_filter.html">Using an Adaptable Deadtime Filter</a></li>
+ <li><a href="../recipes/recipe_adaptable_deadtime_filter.html">Using an adaptable deadtime filter</a></li>
+
+
+
+
+
+
+
+
+ <li><a href="../recipes/recipe_dynamic_analytic_control.html">Dynamically enabling analytic flows</a></li>
@@ -688,7 +697,7 @@ and it is easy to load the properties from a file.</p>
<div class="col-lg-12 footer">
Site last
- generated: Apr 21, 2016 <br/>
+ generated: Apr 26, 2016 <br/>
</div>
</div>
http://git-wip-us.apache.org/repos/asf/incubator-quarks-website/blob/f6f2443d/content/recipes/recipe_hello_quarks.html
----------------------------------------------------------------------
diff --git a/content/recipes/recipe_hello_quarks.html b/content/recipes/recipe_hello_quarks.html
index 77362d4..952c6c6 100644
--- a/content/recipes/recipe_hello_quarks.html
+++ b/content/recipes/recipe_hello_quarks.html
@@ -374,7 +374,7 @@ window.location.href = uri;
- <li><a href="../recipes/recipe_adaptable_filter_range.html">Adaptable filter behavior</a></li>
+ <li><a href="../recipes/recipe_adaptable_filter_range.html">Changing a filter's range</a></li>
@@ -383,7 +383,7 @@ window.location.href = uri;
- <li><a href="../recipes/recipe_dynamic_analytic_control.html">Dynamically Enabling Analytic Flows</a></li>
+ <li><a href="../recipes/recipe_adaptable_polling_source.html">Changing a polled source stream's period</a></li>
@@ -392,7 +392,16 @@ window.location.href = uri;
- <li><a href="../recipes/recipe_adaptable_deadtime_filter.html">Using an Adaptable Deadtime Filter</a></li>
+ <li><a href="../recipes/recipe_adaptable_deadtime_filter.html">Using an adaptable deadtime filter</a></li>
+
+
+
+
+
+
+
+
+ <li><a href="../recipes/recipe_dynamic_analytic_control.html">Dynamically enabling analytic flows</a></li>
@@ -640,7 +649,7 @@ Quarks!
<div class="col-lg-12 footer">
Site last
- generated: Apr 21, 2016 <br/>
+ generated: Apr 26, 2016 <br/>
</div>
</div>
http://git-wip-us.apache.org/repos/asf/incubator-quarks-website/blob/f6f2443d/content/recipes/recipe_source_function.html
----------------------------------------------------------------------
diff --git a/content/recipes/recipe_source_function.html b/content/recipes/recipe_source_function.html
index edae7c7..e8af098 100644
--- a/content/recipes/recipe_source_function.html
+++ b/content/recipes/recipe_source_function.html
@@ -374,7 +374,7 @@ window.location.href = uri;
- <li><a href="../recipes/recipe_adaptable_filter_range.html">Adaptable filter behavior</a></li>
+ <li><a href="../recipes/recipe_adaptable_filter_range.html">Changing a filter's range</a></li>
@@ -383,7 +383,7 @@ window.location.href = uri;
- <li><a href="../recipes/recipe_dynamic_analytic_control.html">Dynamically Enabling Analytic Flows</a></li>
+ <li><a href="../recipes/recipe_adaptable_polling_source.html">Changing a polled source stream's period</a></li>
@@ -392,7 +392,16 @@ window.location.href = uri;
- <li><a href="../recipes/recipe_adaptable_deadtime_filter.html">Using an Adaptable Deadtime Filter</a></li>
+ <li><a href="../recipes/recipe_adaptable_deadtime_filter.html">Using an adaptable deadtime filter</a></li>
+
+
+
+
+
+
+
+
+ <li><a href="../recipes/recipe_dynamic_analytic_control.html">Dynamically enabling analytic flows</a></li>
@@ -653,7 +662,7 @@ $('#toc').on('click', 'a', function() {
<div class="col-lg-12 footer">
Site last
- generated: Apr 21, 2016 <br/>
+ generated: Apr 26, 2016 <br/>
</div>
</div>
http://git-wip-us.apache.org/repos/asf/incubator-quarks-website/blob/f6f2443d/content/recipes/recipe_value_out_of_range.html
----------------------------------------------------------------------
diff --git a/content/recipes/recipe_value_out_of_range.html b/content/recipes/recipe_value_out_of_range.html
index 41ab8ae..f3c01fc 100644
--- a/content/recipes/recipe_value_out_of_range.html
+++ b/content/recipes/recipe_value_out_of_range.html
@@ -374,7 +374,7 @@ window.location.href = uri;
- <li><a href="../recipes/recipe_adaptable_filter_range.html">Adaptable filter behavior</a></li>
+ <li><a href="../recipes/recipe_adaptable_filter_range.html">Changing a filter's range</a></li>
@@ -383,7 +383,7 @@ window.location.href = uri;
- <li><a href="../recipes/recipe_dynamic_analytic_control.html">Dynamically Enabling Analytic Flows</a></li>
+ <li><a href="../recipes/recipe_adaptable_polling_source.html">Changing a polled source stream's period</a></li>
@@ -392,7 +392,16 @@ window.location.href = uri;
- <li><a href="../recipes/recipe_adaptable_deadtime_filter.html">Using an Adaptable Deadtime Filter</a></li>
+ <li><a href="../recipes/recipe_adaptable_deadtime_filter.html">Using an adaptable deadtime filter</a></li>
+
+
+
+
+
+
+
+
+ <li><a href="../recipes/recipe_dynamic_analytic_control.html">Dynamically enabling analytic flows</a></li>
@@ -769,7 +778,7 @@ Though not covered in this recipe, Ranges offer additional conveniences for crea
<div class="col-lg-12 footer">
Site last
- generated: Apr 21, 2016 <br/>
+ generated: Apr 26, 2016 <br/>
</div>
</div>
http://git-wip-us.apache.org/repos/asf/incubator-quarks-website/blob/f6f2443d/content/search.json
----------------------------------------------------------------------
diff --git a/content/search.json b/content/search.json
index e437bb4..1b55854 100644
--- a/content/search.json
+++ b/content/search.json
@@ -132,7 +132,7 @@
{
-"title": "Using an Adaptable Deadtime Filter",
+"title": "Using an adaptable deadtime filter",
"tags": "",
"keywords": "",
"url": "../recipes/recipe_adaptable_deadtime_filter",
@@ -143,7 +143,7 @@
{
-"title": "Adaptable filter behavior",
+"title": "Changing a filter's range",
"tags": "",
"keywords": "",
"url": "../recipes/recipe_adaptable_filter_range",
@@ -154,6 +154,17 @@
{
+"title": "Changing a polled source stream's period",
+"tags": "",
+"keywords": "",
+"url": "../recipes/recipe_adaptable_polling_source",
+"summary": ""
+},
+
+
+
+
+{
"title": "Splitting a stream to apply different processing and combining the results into a single stream",
"tags": "",
"keywords": "",
http://git-wip-us.apache.org/repos/asf/incubator-quarks-website/blob/f6f2443d/content/title-checker.html
----------------------------------------------------------------------
diff --git a/content/title-checker.html b/content/title-checker.html
index c1daaec..a01a9c0 100644
--- a/content/title-checker.html
+++ b/content/title-checker.html
@@ -1915,5 +1915,136 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
</body>
</html>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-quarks-website/blob/f6f2443d/content/titlepage.html
----------------------------------------------------------------------
diff --git a/content/titlepage.html b/content/titlepage.html
index b59e65e..820f774 100644
--- a/content/titlepage.html
+++ b/content/titlepage.html
@@ -374,7 +374,7 @@ window.location.href = uri;
- <li><a href="../recipes/recipe_adaptable_filter_range.html">Adaptable filter behavior</a></li>
+ <li><a href="../recipes/recipe_adaptable_filter_range.html">Changing a filter's range</a></li>
@@ -383,7 +383,7 @@ window.location.href = uri;
- <li><a href="../recipes/recipe_dynamic_analytic_control.html">Dynamically Enabling Analytic Flows</a></li>
+ <li><a href="../recipes/recipe_adaptable_polling_source.html">Changing a polled source stream's period</a></li>
@@ -392,7 +392,16 @@ window.location.href = uri;
- <li><a href="../recipes/recipe_adaptable_deadtime_filter.html">Using an Adaptable Deadtime Filter</a></li>
+ <li><a href="../recipes/recipe_adaptable_deadtime_filter.html">Using an adaptable deadtime filter</a></li>
+
+
+
+
+
+
+
+
+ <li><a href="../recipes/recipe_dynamic_analytic_control.html">Dynamically enabling analytic flows</a></li>
@@ -554,7 +563,7 @@ $('#toc').on('click', 'a', function() {
<div class="printTitleArea">
<div class="printTitle"></div>
<div class="printSubtitle"></div>
- <div class="lastGeneratedDate">Last generated: April 21, 2016</div>
+ <div class="lastGeneratedDate">Last generated: April 26, 2016</div>
<hr />
<div class="printTitleImage">
@@ -601,7 +610,7 @@ $('#toc').on('click', 'a', function() {
<div class="col-lg-12 footer">
Site last
- generated: Apr 21, 2016 <br/>
+ generated: Apr 26, 2016 <br/>
</div>
</div>
http://git-wip-us.apache.org/repos/asf/incubator-quarks-website/blob/f6f2443d/content/tocpage.html
----------------------------------------------------------------------
diff --git a/content/tocpage.html b/content/tocpage.html
index c1de8f2..d107e29 100644
--- a/content/tocpage.html
+++ b/content/tocpage.html
@@ -374,7 +374,7 @@ window.location.href = uri;
- <li><a href="../recipes/recipe_adaptable_filter_range.html">Adaptable filter behavior</a></li>
+ <li><a href="../recipes/recipe_adaptable_filter_range.html">Changing a filter's range</a></li>
@@ -383,7 +383,7 @@ window.location.href = uri;
- <li><a href="../recipes/recipe_dynamic_analytic_control.html">Dynamically Enabling Analytic Flows</a></li>
+ <li><a href="../recipes/recipe_adaptable_polling_source.html">Changing a polled source stream's period</a></li>
@@ -392,7 +392,16 @@ window.location.href = uri;
- <li><a href="../recipes/recipe_adaptable_deadtime_filter.html">Using an Adaptable Deadtime Filter</a></li>
+ <li><a href="../recipes/recipe_adaptable_deadtime_filter.html">Using an adaptable deadtime filter</a></li>
+
+
+
+
+
+
+
+
+ <li><a href="../recipes/recipe_dynamic_analytic_control.html">Dynamically enabling analytic flows</a></li>
@@ -650,19 +659,25 @@ $('#toc').on('click', 'a', function() {
- <li><a href="/recipes/recipe_adaptable_filter_range.html">Adaptable filter behavior</a>
+ <li><a href="/recipes/recipe_adaptable_filter_range.html">Changing a filter's range</a>
+
+ </li>
+
+
+
+ <li><a href="/recipes/recipe_adaptable_polling_source.html">Changing a polled source stream's period</a>
</li>
- <li><a href="/recipes/recipe_dynamic_analytic_control.html">Dynamically Enabling Analytic Flows</a>
+ <li><a href="/recipes/recipe_adaptable_deadtime_filter.html">Using an adaptable deadtime filter</a>
</li>
- <li><a href="/recipes/recipe_adaptable_deadtime_filter.html">Using an Adaptable Deadtime Filter</a>
+ <li><a href="/recipes/recipe_dynamic_analytic_control.html">Dynamically enabling analytic flows</a>
</li>
@@ -759,7 +774,7 @@ $('#toc').on('click', 'a', function() {
<div class="col-lg-12 footer">
Site last
- generated: Apr 21, 2016 <br/>
+ generated: Apr 26, 2016 <br/>
</div>
</div>
http://git-wip-us.apache.org/repos/asf/incubator-quarks-website/blob/f6f2443d/content/urls_mydoc.txt
----------------------------------------------------------------------
diff --git a/content/urls_mydoc.txt b/content/urls_mydoc.txt
index d0f4e8c..0442cff 100644
--- a/content/urls_mydoc.txt
+++ b/content/urls_mydoc.txt
@@ -93,23 +93,30 @@
/recipes/recipe_adaptable_filter_range:
- title: "Adaptable filter behavior"
+ title: "Changing a filter's range"
url: "../recipes/recipe_adaptable_filter_range.html"
- link: "<a href='../recipes/recipe_adaptable_filter_range.html'>Adaptable filter behavior</a>"
+ link: "<a href='../recipes/recipe_adaptable_filter_range.html'>Changing a filter's range</a>"
-/recipes/recipe_dynamic_analytic_control:
- title: "Dynamically Enabling Analytic Flows"
- url: "../recipes/recipe_dynamic_analytic_control.html"
- link: "<a href='../recipes/recipe_dynamic_analytic_control.html'>Dynamically Enabling Analytic Flows</a>"
+/recipes/recipe_adaptable_polling_source:
+ title: "Changing a polled source stream's period"
+ url: "../recipes/recipe_adaptable_polling_source.html"
+ link: "<a href='../recipes/recipe_adaptable_polling_source.html'>Changing a polled source stream's period</a>"
/recipes/recipe_adaptable_deadtime_filter:
- title: "Using an Adaptable Deadtime Filter"
+ title: "Using an adaptable deadtime filter"
url: "../recipes/recipe_adaptable_deadtime_filter.html"
- link: "<a href='../recipes/recipe_adaptable_deadtime_filter.html'>Using an Adaptable Deadtime Filter</a>"
+ link: "<a href='../recipes/recipe_adaptable_deadtime_filter.html'>Using an adaptable deadtime filter</a>"
+
+
+
+/recipes/recipe_dynamic_analytic_control:
+ title: "Dynamically enabling analytic flows"
+ url: "../recipes/recipe_dynamic_analytic_control.html"
+ link: "<a href='../recipes/recipe_dynamic_analytic_control.html'>Dynamically enabling analytic flows</a>"