blob: 1fcdf6c1d4f8e124709d210dc05cb00ca2249091 [file] [log] [blame]
<!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_162) on Thu Feb 01 21:39:10 KST 2018 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JobStateManager (Coral Project 0.1-SNAPSHOT API)</title>
<meta name="date" content="2018-02-01">
<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="JobStateManager (Coral Project 0.1-SNAPSHOT API)";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete 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/JobStateManager.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="../../../../../edu/snu/coral/runtime/master/BlockManagerMaster.PartitionManagerMasterControlMessageReceiver.html" title="class in edu.snu.coral.runtime.master"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../edu/snu/coral/runtime/master/MetricManagerMaster.html" title="class in edu.snu.coral.runtime.master"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?edu/snu/coral/runtime/master/JobStateManager.html" target="_top">Frames</a></li>
<li><a href="JobStateManager.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All&nbsp;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:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</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">edu.snu.coral.runtime.master</div>
<h2 title="Class JobStateManager" class="title">Class JobStateManager</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>edu.snu.coral.runtime.master.JobStateManager</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public final class <span class="typeNameLabel">JobStateManager</span>
extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre>
<div class="block">Manages the states related to a job.
This class can be used to track a job's execution status to task level in the future.
The methods of this class are synchronized.</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../edu/snu/coral/runtime/master/JobStateManager.html#JobStateManager-edu.snu.coral.runtime.common.plan.physical.PhysicalPlan-edu.snu.coral.runtime.master.BlockManagerMaster-edu.snu.coral.runtime.master.MetricMessageHandler-int-">JobStateManager</a></span>(<a href="../../../../../edu/snu/coral/runtime/common/plan/physical/PhysicalPlan.html" title="class in edu.snu.coral.runtime.common.plan.physical">PhysicalPlan</a>&nbsp;physicalPlan,
<a href="../../../../../edu/snu/coral/runtime/master/BlockManagerMaster.html" title="class in edu.snu.coral.runtime.master">BlockManagerMaster</a>&nbsp;blockManagerMaster,
<a href="../../../../../edu/snu/coral/runtime/master/MetricMessageHandler.html" title="interface in edu.snu.coral.runtime.master">MetricMessageHandler</a>&nbsp;metricMessageHandler,
int&nbsp;maxScheduleAttempt)</code>&nbsp;</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">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</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>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../edu/snu/coral/runtime/master/JobStateManager.html#checkJobTermination--">checkJobTermination</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../edu/snu/coral/runtime/master/JobStateManager.html#checkStageCompletion-java.lang.String-">checkStageCompletion</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;stageId)</code>&nbsp;</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../edu/snu/coral/runtime/master/JobStateManager.html#getAttemptCountForStage-java.lang.String-">getAttemptCountForStage</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;stageId)</code>&nbsp;</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="../../../../../edu/snu/coral/runtime/common/state/StageState.html" title="class in edu.snu.coral.runtime.common.state">StageState</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../edu/snu/coral/runtime/master/JobStateManager.html#getIdToStageStates--">getIdToStageStates</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="../../../../../edu/snu/coral/runtime/common/state/TaskGroupState.html" title="class in edu.snu.coral.runtime.common.state">TaskGroupState</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../edu/snu/coral/runtime/master/JobStateManager.html#getIdToTaskGroupStates--">getIdToTaskGroupStates</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../edu/snu/coral/runtime/master/JobStateManager.html#getJobId--">getJobId</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code><a href="../../../../../edu/snu/coral/runtime/common/state/JobState.html" title="class in edu.snu.coral.runtime.common.state">JobState</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../edu/snu/coral/runtime/master/JobStateManager.html#getJobState--">getJobState</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code><a href="../../../../../edu/snu/coral/runtime/common/state/StageState.html" title="class in edu.snu.coral.runtime.common.state">StageState</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../edu/snu/coral/runtime/master/JobStateManager.html#getStageState-java.lang.String-">getStageState</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;stageId)</code>&nbsp;</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code><a href="../../../../../edu/snu/coral/runtime/common/state/TaskGroupState.html" title="class in edu.snu.coral.runtime.common.state">TaskGroupState</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../edu/snu/coral/runtime/master/JobStateManager.html#getTaskGroupState-java.lang.String-">getTaskGroupState</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;taskGroupId)</code>&nbsp;</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../edu/snu/coral/runtime/master/JobStateManager.html#onJobStateChanged-edu.snu.coral.runtime.common.state.JobState.State-">onJobStateChanged</a></span>(<a href="../../../../../edu/snu/coral/runtime/common/state/JobState.State.html" title="enum in edu.snu.coral.runtime.common.state">JobState.State</a>&nbsp;newState)</code>
<div class="block">Updates the state of the job.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../edu/snu/coral/runtime/master/JobStateManager.html#onStageStateChanged-java.lang.String-edu.snu.coral.runtime.common.state.StageState.State-">onStageStateChanged</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;stageId,
<a href="../../../../../edu/snu/coral/runtime/common/state/StageState.State.html" title="enum in edu.snu.coral.runtime.common.state">StageState.State</a>&nbsp;newState)</code>
<div class="block">Updates the state of a stage.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../edu/snu/coral/runtime/master/JobStateManager.html#onTaskGroupStateChanged-java.lang.String-edu.snu.coral.runtime.common.state.TaskGroupState.State-">onTaskGroupStateChanged</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;taskGroupId,
<a href="../../../../../edu/snu/coral/runtime/common/state/TaskGroupState.State.html" title="enum in edu.snu.coral.runtime.common.state">TaskGroupState.State</a>&nbsp;newState)</code>
<div class="block">Updates the state of a task group.</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../edu/snu/coral/runtime/master/JobStateManager.html#storeJSON-java.lang.String-java.lang.String-">storeJSON</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;directory,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;suffix)</code>
<div class="block">Stores JSON representation of job state into a file.</div>
</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../edu/snu/coral/runtime/master/JobStateManager.html#toString--">toString</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../edu/snu/coral/runtime/master/JobStateManager.html#toStringWithPhysicalPlan--">toStringWithPhysicalPlan</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code><a href="../../../../../edu/snu/coral/runtime/common/state/JobState.html" title="class in edu.snu.coral.runtime.common.state">JobState</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../edu/snu/coral/runtime/master/JobStateManager.html#waitUntilFinish--">waitUntilFinish</a></span>()</code>
<div class="block">Wait for this job to be finished and return the final state.</div>
</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code><a href="../../../../../edu/snu/coral/runtime/common/state/JobState.html" title="class in edu.snu.coral.runtime.common.state">JobState</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../edu/snu/coral/runtime/master/JobStateManager.html#waitUntilFinish-long-java.util.concurrent.TimeUnit-">waitUntilFinish</a></span>(long&nbsp;timeout,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/TimeUnit.html?is-external=true" title="class or interface in java.util.concurrent">TimeUnit</a>&nbsp;unit)</code>
<div class="block">Wait for this job to be finished and return the final state.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="JobStateManager-edu.snu.coral.runtime.common.plan.physical.PhysicalPlan-edu.snu.coral.runtime.master.BlockManagerMaster-edu.snu.coral.runtime.master.MetricMessageHandler-int-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>JobStateManager</h4>
<pre>public&nbsp;JobStateManager(<a href="../../../../../edu/snu/coral/runtime/common/plan/physical/PhysicalPlan.html" title="class in edu.snu.coral.runtime.common.plan.physical">PhysicalPlan</a>&nbsp;physicalPlan,
<a href="../../../../../edu/snu/coral/runtime/master/BlockManagerMaster.html" title="class in edu.snu.coral.runtime.master">BlockManagerMaster</a>&nbsp;blockManagerMaster,
<a href="../../../../../edu/snu/coral/runtime/master/MetricMessageHandler.html" title="interface in edu.snu.coral.runtime.master">MetricMessageHandler</a>&nbsp;metricMessageHandler,
int&nbsp;maxScheduleAttempt)</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="onJobStateChanged-edu.snu.coral.runtime.common.state.JobState.State-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>onJobStateChanged</h4>
<pre>public&nbsp;void&nbsp;onJobStateChanged(<a href="../../../../../edu/snu/coral/runtime/common/state/JobState.State.html" title="enum in edu.snu.coral.runtime.common.state">JobState.State</a>&nbsp;newState)</pre>
<div class="block">Updates the state of the job.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>newState</code> - of the job.</dd>
</dl>
</li>
</ul>
<a name="onStageStateChanged-java.lang.String-edu.snu.coral.runtime.common.state.StageState.State-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>onStageStateChanged</h4>
<pre>public&nbsp;void&nbsp;onStageStateChanged(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;stageId,
<a href="../../../../../edu/snu/coral/runtime/common/state/StageState.State.html" title="enum in edu.snu.coral.runtime.common.state">StageState.State</a>&nbsp;newState)</pre>
<div class="block">Updates the state of a stage.
Stage state changes only occur in master.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>stageId</code> - of the stage.</dd>
<dd><code>newState</code> - of the stage.</dd>
</dl>
</li>
</ul>
<a name="onTaskGroupStateChanged-java.lang.String-edu.snu.coral.runtime.common.state.TaskGroupState.State-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>onTaskGroupStateChanged</h4>
<pre>public&nbsp;void&nbsp;onTaskGroupStateChanged(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;taskGroupId,
<a href="../../../../../edu/snu/coral/runtime/common/state/TaskGroupState.State.html" title="enum in edu.snu.coral.runtime.common.state">TaskGroupState.State</a>&nbsp;newState)</pre>
<div class="block">Updates the state of a task group.
Task group state changes can occur both in master and executor.
State changes that occur in master are
initiated in <a href="../../../../../edu/snu/coral/runtime/master/scheduler/BatchSingleJobScheduler.html" title="class in edu.snu.coral.runtime.master.scheduler"><code>BatchSingleJobScheduler</code></a>.
State changes that occur in executors are sent to master as a control message,
and the call to this method is initiated in <a href="../../../../../edu/snu/coral/runtime/master/scheduler/BatchSingleJobScheduler.html" title="class in edu.snu.coral.runtime.master.scheduler"><code>BatchSingleJobScheduler</code></a>
when the message/event is received.
A task group completion implies completion of all its tasks.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>taskGroupId</code> - the ID of the task group.</dd>
<dd><code>newState</code> - the new state of the task group.</dd>
</dl>
</li>
</ul>
<a name="checkStageCompletion-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>checkStageCompletion</h4>
<pre>public&nbsp;boolean&nbsp;checkStageCompletion(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;stageId)</pre>
</li>
</ul>
<a name="checkJobTermination--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>checkJobTermination</h4>
<pre>public&nbsp;boolean&nbsp;checkJobTermination()</pre>
</li>
</ul>
<a name="getAttemptCountForStage-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getAttemptCountForStage</h4>
<pre>public&nbsp;int&nbsp;getAttemptCountForStage(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;stageId)</pre>
</li>
</ul>
<a name="waitUntilFinish--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>waitUntilFinish</h4>
<pre>public&nbsp;<a href="../../../../../edu/snu/coral/runtime/common/state/JobState.html" title="class in edu.snu.coral.runtime.common.state">JobState</a>&nbsp;waitUntilFinish()</pre>
<div class="block">Wait for this job to be finished and return the final state.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the final state of this job.</dd>
</dl>
</li>
</ul>
<a name="waitUntilFinish-long-java.util.concurrent.TimeUnit-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>waitUntilFinish</h4>
<pre>public&nbsp;<a href="../../../../../edu/snu/coral/runtime/common/state/JobState.html" title="class in edu.snu.coral.runtime.common.state">JobState</a>&nbsp;waitUntilFinish(long&nbsp;timeout,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/TimeUnit.html?is-external=true" title="class or interface in java.util.concurrent">TimeUnit</a>&nbsp;unit)</pre>
<div class="block">Wait for this job to be finished and return the final state.
It wait for at most the given time.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>timeout</code> - of waiting.</dd>
<dd><code>unit</code> - of the timeout.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the final state of this job.</dd>
</dl>
</li>
</ul>
<a name="getJobId--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getJobId</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;getJobId()</pre>
</li>
</ul>
<a name="getJobState--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getJobState</h4>
<pre>public&nbsp;<a href="../../../../../edu/snu/coral/runtime/common/state/JobState.html" title="class in edu.snu.coral.runtime.common.state">JobState</a>&nbsp;getJobState()</pre>
</li>
</ul>
<a name="getStageState-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getStageState</h4>
<pre>public&nbsp;<a href="../../../../../edu/snu/coral/runtime/common/state/StageState.html" title="class in edu.snu.coral.runtime.common.state">StageState</a>&nbsp;getStageState(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;stageId)</pre>
</li>
</ul>
<a name="getIdToStageStates--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getIdToStageStates</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="../../../../../edu/snu/coral/runtime/common/state/StageState.html" title="class in edu.snu.coral.runtime.common.state">StageState</a>&gt;&nbsp;getIdToStageStates()</pre>
</li>
</ul>
<a name="getTaskGroupState-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTaskGroupState</h4>
<pre>public&nbsp;<a href="../../../../../edu/snu/coral/runtime/common/state/TaskGroupState.html" title="class in edu.snu.coral.runtime.common.state">TaskGroupState</a>&nbsp;getTaskGroupState(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;taskGroupId)</pre>
</li>
</ul>
<a name="getIdToTaskGroupStates--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getIdToTaskGroupStates</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="../../../../../edu/snu/coral/runtime/common/state/TaskGroupState.html" title="class in edu.snu.coral.runtime.common.state">TaskGroupState</a>&gt;&nbsp;getIdToTaskGroupStates()</pre>
</li>
</ul>
<a name="storeJSON-java.lang.String-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>storeJSON</h4>
<pre>public&nbsp;void&nbsp;storeJSON(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;directory,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;suffix)</pre>
<div class="block">Stores JSON representation of job state into a file.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>directory</code> - the directory which JSON representation is saved to</dd>
<dd><code>suffix</code> - suffix for file name</dd>
</dl>
</li>
</ul>
<a name="toStringWithPhysicalPlan--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toStringWithPhysicalPlan</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;toStringWithPhysicalPlan()</pre>
</li>
</ul>
<a name="toString--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>toString</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;toString()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a></code>&nbsp;in class&nbsp;<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></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/JobStateManager.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="../../../../../edu/snu/coral/runtime/master/BlockManagerMaster.PartitionManagerMasterControlMessageReceiver.html" title="class in edu.snu.coral.runtime.master"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../edu/snu/coral/runtime/master/MetricManagerMaster.html" title="class in edu.snu.coral.runtime.master"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?edu/snu/coral/runtime/master/JobStateManager.html" target="_top">Frames</a></li>
<li><a href="JobStateManager.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All&nbsp;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:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</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 &#169; 2018. All rights reserved.</small></p>
</body>
</html>