| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc (1.8.0_71) on Tue May 17 00:28:46 UTC 2016 --> |
| <title>quarks.providers.iot (Quarks v0.4.0)</title> |
| <meta name="date" content="2016-05-17"> |
| <link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style"> |
| <script type="text/javascript" src="../../../script.js"></script> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| try { |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="quarks.providers.iot (Quarks v0.4.0)"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a name="navbar.top"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.top.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../overview-summary.html">Overview</a></li> |
| <li class="navBarCell1Rev">Package</li> |
| <li>Class</li> |
| <li><a href="package-use.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> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../quarks/providers/direct/package-summary.html">Prev Package</a></li> |
| <li><a href="../../../quarks/runtime/appservice/package-summary.html">Next Package</a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../index.html?quarks/providers/iot/package-summary.html" target="_top">Frames</a></li> |
| <li><a href="package-summary.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> |
| <a name="skip.navbar.top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| <div class="header"> |
| <h1 title="Package" class="title">Package quarks.providers.iot</h1> |
| <div class="docSummary"> |
| <div class="block">Iot provider that allows multiple applications to |
| share an <code>IotDevice</code>.</div> |
| </div> |
| <p>See: <a href="#package.description">Description</a></p> |
| </div> |
| <div class="contentContainer"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <table class="typeSummary" border="0" cellpadding="3" cellspacing="0" summary="Class Summary table, listing classes, and an explanation"> |
| <caption><span>Class Summary</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Class</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| <tbody> |
| <tr class="altColor"> |
| <td class="colFirst"><a href="../../../quarks/providers/iot/IotProvider.html" title="class in quarks.providers.iot">IotProvider</a></td> |
| <td class="colLast"> |
| <div class="block">IoT provider supporting multiple topologies with a single connection to a |
| message hub.</div> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </li> |
| </ul> |
| <a name="package.description"> |
| <!-- --> |
| </a> |
| <h2 title="Package quarks.providers.iot Description">Package quarks.providers.iot Description</h2> |
| <div class="block">Iot provider that allows multiple applications to |
| share an <code>IotDevice</code>. |
| |
| <H3>IoT device</H3> |
| |
| <H3>Application registration</H3> |
| The provider includes an <a href="../../../quarks/topology/services/ApplicationService.html" title="interface in quarks.topology.services"><code>ApplicationService</code></a> that allows applications |
| to be registered by name. Once registered an application can be started (and stopped) remotely |
| through the control service using a device command. |
| |
| <H3>Supported device commands</H3> |
| This provider supports a number of system level device commands to control the applications |
| running within it. |
| <H4>Control service</H4> |
| Device commands with the command identifier '<a href="../../../quarks/connectors/iot/Commands.html#CONTROL_SERVICE"><code>quarksControl</code></a>' |
| are sent to the provider's control service, an instance of <a href="../../../quarks/runtime/jsoncontrol/JsonControlService.html" title="class in quarks.runtime.jsoncontrol"><code>JsonControlService</code></a>. |
| This allows invocation of an operation against a control mbean registered with the |
| control service, either by an application or the provider itself. |
| <BR> |
| The command's data (JSON) uniquely identifies a control MBean through its type and |
| alias, and indicates the operation to call on the MBean and the arguments to |
| pass the control MBean. |
| <BR> |
| Thus any control operation can be remotely invoked through a <code>quarksControl</code> device command, |
| including arbitrary control mbeans registered by applications. |
| |
| <H4>Provider operations</H4> |
| <TABLE border="1"> |
| <tr> |
| <th>Operation</th><th>Command identifier</th> |
| <th>Type</th><th>Alias</th><th>Method</th><th>Arguments</th> |
| <th>Control MBean</th> |
| </tr> |
| <tr> |
| <th rowspan="2">Submit (start) a registered application</th> |
| <td><code>quarksControl</code></td><td><code>appService</code></td> |
| <td><code>quarks</code></td><td><a href="../../../quarks/topology/mbeans/ApplicationServiceMXBean.html#submit-java.lang.String-java.lang.String-"><code>submit</code></a></td> |
| <td><em><code>[applicationName, config]</code></em></td> |
| <td><a href="../../../quarks/topology/mbeans/ApplicationServiceMXBean.html" title="interface in quarks.topology.mbeans"><code>ApplicationServiceMXBean</code></a></td> |
| </tr> |
| </tr> |
| <th>Sample command data</th> |
| <td colspan=5><code>{"type":"appService","alias":"quarks","op":"submit","args":["Heartbeat",{}]}</code></td> |
| </tr> |
| <tr></tr> |
| </TABLE></div> |
| </div> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a name="navbar.bottom"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.bottom.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../overview-summary.html">Overview</a></li> |
| <li class="navBarCell1Rev">Package</li> |
| <li>Class</li> |
| <li><a href="package-use.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"><a href="http://quarks.incubator.apache.org">Apache Quarks (incubating)</a></div> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../quarks/providers/direct/package-summary.html">Prev Package</a></li> |
| <li><a href="../../../quarks/runtime/appservice/package-summary.html">Next Package</a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../index.html?quarks/providers/iot/package-summary.html" target="_top">Frames</a></li> |
| <li><a href="package-summary.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> |
| <a name="skip.navbar.bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| <p class="legalCopy"><small>Copyright © 2016 The Apache Software Foundation. All Rights Reserved - d6cdfc6-20160517-0028</small></p> |
| </body> |
| </html> |