| <!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:44 UTC 2016 --> |
| <title>JobMXBean (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="JobMXBean (Quarks v0.4.0)"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var methods = {"i0":6,"i1":6,"i2":6,"i3":6,"i4":6,"i5":6,"i6":6,"i7":6}; |
| var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"]}; |
| var altColor = "altColor"; |
| var rowColor = "rowColor"; |
| var tableTab = "tableTab"; |
| var activeTableTab = "activeTableTab"; |
| </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><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/JobMXBean.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>Prev Class</li> |
| <li><a href="../../../quarks/execution/mbeans/PeriodMXBean.html" title="interface in quarks.execution.mbeans"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../index.html?quarks/execution/mbeans/JobMXBean.html" target="_top">Frames</a></li> |
| <li><a href="JobMXBean.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><a href="#field.summary">Field</a> | </li> |
| <li>Constr | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li><a href="#field.detail">Field</a> | </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">quarks.execution.mbeans</div> |
| <h2 title="Interface JobMXBean" class="title">Interface JobMXBean</h2> |
| </div> |
| <div class="contentContainer"> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <dl> |
| <dt>All Known Implementing Classes:</dt> |
| <dd><a href="../../../quarks/runtime/etiao/mbeans/EtiaoJobBean.html" title="class in quarks.runtime.etiao.mbeans">EtiaoJobBean</a></dd> |
| </dl> |
| <hr> |
| <br> |
| <pre>public interface <span class="typeNameLabel">JobMXBean</span></pre> |
| <div class="block">Control interface for a job.</div> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- =========== FIELD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="field.summary"> |
| <!-- --> |
| </a> |
| <h3>Field Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> |
| <caption><span>Fields</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Field and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static java.lang.String</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../quarks/execution/mbeans/JobMXBean.html#TYPE">TYPE</a></span></code> |
| <div class="block">TYPE is used to identify this bean as a job bean when building the bean's <code>ObjectName</code>.</div> |
| </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> |
| <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd"> </span></span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Method and Description</th> |
| </tr> |
| <tr id="i0" class="altColor"> |
| <td class="colFirst"><code><a href="../../../quarks/execution/Job.State.html" title="enum in quarks.execution">Job.State</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../quarks/execution/mbeans/JobMXBean.html#getCurrentState--">getCurrentState</a></span>()</code> |
| <div class="block">Retrieves the current state of the job.</div> |
| </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../quarks/execution/Job.Health.html" title="enum in quarks.execution">Job.Health</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../quarks/execution/mbeans/JobMXBean.html#getHealth--">getHealth</a></span>()</code> |
| <div class="block">Returns the summarized health indicator of the job.</div> |
| </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <td class="colFirst"><code>java.lang.String</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../quarks/execution/mbeans/JobMXBean.html#getId--">getId</a></span>()</code> |
| <div class="block">Returns the identifier of the job.</div> |
| </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code>java.lang.String</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../quarks/execution/mbeans/JobMXBean.html#getLastError--">getLastError</a></span>()</code> |
| <div class="block">Returns the last error message caught by the current job execution.</div> |
| </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code>java.lang.String</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../quarks/execution/mbeans/JobMXBean.html#getName--">getName</a></span>()</code> |
| <div class="block">Returns the name of the job.</div> |
| </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../quarks/execution/Job.State.html" title="enum in quarks.execution">Job.State</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../quarks/execution/mbeans/JobMXBean.html#getNextState--">getNextState</a></span>()</code> |
| <div class="block">Retrieves the next execution state when the job makes a state |
| transition.</div> |
| </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code>java.lang.String</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../quarks/execution/mbeans/JobMXBean.html#graphSnapshot--">graphSnapshot</a></span>()</code> |
| <div class="block">Takes a current snapshot of the running graph and returns it in JSON format.</div> |
| </td> |
| </tr> |
| <tr id="i7" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../quarks/execution/mbeans/JobMXBean.html#stateChange-quarks.execution.Job.Action-">stateChange</a></span>(<a href="../../../quarks/execution/Job.Action.html" title="enum in quarks.execution">Job.Action</a> action)</code> |
| <div class="block">Initiates an execution state change.</div> |
| </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ============ FIELD DETAIL =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="field.detail"> |
| <!-- --> |
| </a> |
| <h3>Field Detail</h3> |
| <a name="TYPE"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>TYPE</h4> |
| <pre>static final java.lang.String TYPE</pre> |
| <div class="block">TYPE is used to identify this bean as a job bean when building the bean's <code>ObjectName</code>. |
| The value is "job"</div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../constant-values.html#quarks.execution.mbeans.JobMXBean.TYPE">Constant Field Values</a></dd> |
| </dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="getId--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getId</h4> |
| <pre>java.lang.String getId()</pre> |
| <div class="block">Returns the identifier of the job.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the job identifier.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getName--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getName</h4> |
| <pre>java.lang.String getName()</pre> |
| <div class="block">Returns the name of the job.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the job name.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getCurrentState--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getCurrentState</h4> |
| <pre><a href="../../../quarks/execution/Job.State.html" title="enum in quarks.execution">Job.State</a> getCurrentState()</pre> |
| <div class="block">Retrieves the current state of the job.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the current state.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getNextState--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getNextState</h4> |
| <pre><a href="../../../quarks/execution/Job.State.html" title="enum in quarks.execution">Job.State</a> getNextState()</pre> |
| <div class="block">Retrieves the next execution state when the job makes a state |
| transition.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the destination state while in a state transition.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getHealth--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getHealth</h4> |
| <pre><a href="../../../quarks/execution/Job.Health.html" title="enum in quarks.execution">Job.Health</a> getHealth()</pre> |
| <div class="block">Returns the summarized health indicator of the job.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the summarized Job health.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getLastError--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getLastError</h4> |
| <pre>java.lang.String getLastError()</pre> |
| <div class="block">Returns the last error message caught by the current job execution.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the last error message or an empty string if no error has |
| been caught.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="graphSnapshot--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>graphSnapshot</h4> |
| <pre>java.lang.String graphSnapshot()</pre> |
| <div class="block">Takes a current snapshot of the running graph and returns it in JSON format. |
| <p> |
| <b>The graph snapshot JSON format</b> |
| <p> |
| The top-level object contains two properties: |
| <ul> |
| <li><code>vertices</code>: Array of JSON objects representing the graph vertices.</li> |
| <li><code>edges</code>: Array of JSON objects representing the graph edges (an edge joins two vertices).</li> |
| </ul> |
| The vertex object contains the following properties: |
| <ul> |
| <li><code>id</code>: Unique identifier within a graph's JSON representation.</li> |
| <li><code>instance</code>: The oplet instance from the vertex.</li> |
| </ul> |
| The edge object contains the following properties: |
| <ul> |
| <li><code>sourceId</code>: The identifier of the source vertex.</li> |
| <li><code>sourceOutputPort</code>: The identifier of the source oplet output port connected to the edge.</li> |
| <li><code>targetId</code>: The identifier of the target vertex.</li> |
| <li><code>targetInputPort</code>: The identifier of the target oplet input port connected to the edge.</li> |
| </ul></div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a JSON-formatted string representing the running graph.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="stateChange-quarks.execution.Job.Action-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>stateChange</h4> |
| <pre>void stateChange(<a href="../../../quarks/execution/Job.Action.html" title="enum in quarks.execution">Job.Action</a> action)</pre> |
| <div class="block">Initiates an execution state change.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>action</code> - which triggers the state change.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.IllegalArgumentException</code> - if the job is not in an appropriate |
| state for the requested action, or the action is not supported.</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> |
| <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><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/JobMXBean.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>Prev Class</li> |
| <li><a href="../../../quarks/execution/mbeans/PeriodMXBean.html" title="interface in quarks.execution.mbeans"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../index.html?quarks/execution/mbeans/JobMXBean.html" target="_top">Frames</a></li> |
| <li><a href="JobMXBean.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><a href="#field.summary">Field</a> | </li> |
| <li>Constr | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li><a href="#field.detail">Field</a> | </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>Copyright © 2016 The Apache Software Foundation. All Rights Reserved - d6cdfc6-20160517-0028</small></p> |
| </body> |
| </html> |