| <!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_102) on Mon Dec 18 16:13:31 KST 2017 --> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <title>BlockManagerMaster (Onyx Project 0.1-SNAPSHOT API)</title> |
| <meta name="date" content="2017-12-18"> |
| <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="BlockManagerMaster (Onyx 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}; |
| 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/BlockManagerMaster.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="../../../../../edu/snu/onyx/runtime/master/BlockManagerMaster.PartitionManagerMasterControlMessageReceiver.html" title="class in edu.snu.onyx.runtime.master"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../index.html?edu/snu/onyx/runtime/master/BlockManagerMaster.html" target="_top">Frames</a></li> |
| <li><a href="BlockManagerMaster.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><a href="#nested.class.summary">Nested</a> | </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <div class="header"> |
| <div class="subTitle">edu.snu.onyx.runtime.master</div> |
| <h2 title="Class BlockManagerMaster" class="title">Class BlockManagerMaster</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.onyx.runtime.master.BlockManagerMaster</li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <hr> |
| <br> |
| <pre><a href="https://docs.oracle.com/javase/8/docs/api/javax/annotation/concurrent.ThreadSafe.html?is-external=true" title="class or interface in javax.annotation">@ThreadSafe</a> |
| public final class <span class="typeNameLabel">BlockManagerMaster</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">Master-side block manager.</div> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ======== NESTED CLASS SUMMARY ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="nested.class.summary"> |
| <!-- --> |
| </a> |
| <h3>Nested Class Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation"> |
| <caption><span>Nested Classes</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Class and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>class </code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../edu/snu/onyx/runtime/master/BlockManagerMaster.PartitionManagerMasterControlMessageReceiver.html" title="class in edu.snu.onyx.runtime.master">BlockManagerMaster.PartitionManagerMasterControlMessageReceiver</a></span></code> |
| <div class="block">Handler for control messages received.</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="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete 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="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html?is-external=true" title="class or interface in java.util.concurrent">CompletableFuture</a><<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/onyx/runtime/master/BlockManagerMaster.html#getBlockLocationFuture-java.lang.String-">getBlockLocationFuture</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> blockId)</code> |
| <div class="block">Returns a <a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html?is-external=true" title="class or interface in java.util.concurrent"><code>CompletableFuture</code></a> of block location, which is not yet resolved in <code>SCHEDULED</code> state.</div> |
| </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a><<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/onyx/runtime/master/BlockManagerMaster.html#getProducerTaskGroupIds-java.lang.String-">getProducerTaskGroupIds</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> blockId)</code> |
| <div class="block">Gets the ids of the task groups which already produced or will produce data for a specific block.</div> |
| </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../edu/snu/onyx/runtime/master/BlockManagerMaster.html#initializeState-java.lang.String-java.lang.String-">initializeState</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> blockId, |
| <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> producerTaskGroupId)</code> |
| <div class="block">Initializes the states of a block which will be produced by producer task(s).</div> |
| </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../edu/snu/onyx/runtime/master/BlockManagerMaster.html#onBlockStateChanged-java.lang.String-edu.snu.onyx.runtime.common.state.BlockState.State-java.lang.String-">onBlockStateChanged</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> blockId, |
| <a href="../../../../../edu/snu/onyx/runtime/common/state/BlockState.State.html" title="enum in edu.snu.onyx.runtime.common.state">BlockState.State</a> newState, |
| <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> location)</code> |
| <div class="block">Deals with state change of a block.</div> |
| </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../edu/snu/onyx/runtime/master/BlockManagerMaster.html#onCommitPartitions-edu.snu.onyx.runtime.common.comm.ControlMessage.Message-">onCommitPartitions</a></span>(edu.snu.onyx.runtime.common.comm.ControlMessage.Message message)</code> |
| <div class="block">Commits the partitions for a remote block.</div> |
| </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../edu/snu/onyx/runtime/master/BlockManagerMaster.html#onProducerTaskGroupFailed-java.lang.String-">onProducerTaskGroupFailed</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> failedTaskGroupId)</code> |
| <div class="block">To be called when a potential producer task group fails.</div> |
| </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../edu/snu/onyx/runtime/master/BlockManagerMaster.html#onProducerTaskGroupScheduled-java.lang.String-">onProducerTaskGroupScheduled</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> scheduledTaskGroupId)</code> |
| <div class="block">To be called when a potential producer task group is scheduled.</div> |
| </td> |
| </tr> |
| <tr id="i7" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../edu/snu/onyx/runtime/master/BlockManagerMaster.html#onRemovePartitionMetadata-edu.snu.onyx.runtime.common.comm.ControlMessage.Message-">onRemovePartitionMetadata</a></span>(edu.snu.onyx.runtime.common.comm.ControlMessage.Message message)</code> |
| <div class="block">Removes the partition metadata for a remote block.</div> |
| </td> |
| </tr> |
| <tr id="i8" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../edu/snu/onyx/runtime/master/BlockManagerMaster.html#onRequestPartitionMetadata-edu.snu.onyx.runtime.common.comm.ControlMessage.Message-edu.snu.onyx.runtime.common.message.MessageContext-">onRequestPartitionMetadata</a></span>(edu.snu.onyx.runtime.common.comm.ControlMessage.Message message, |
| <a href="../../../../../edu/snu/onyx/runtime/common/message/MessageContext.html" title="interface in edu.snu.onyx.runtime.common.message">MessageContext</a> messageContext)</code> |
| <div class="block">Accepts a request for the partition metadata and replies with the metadata for a remote block.</div> |
| </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/onyx/runtime/master/BlockManagerMaster.html#onReservePartition-edu.snu.onyx.runtime.common.comm.ControlMessage.Message-edu.snu.onyx.runtime.common.message.MessageContext-">onReservePartition</a></span>(edu.snu.onyx.runtime.common.comm.ControlMessage.Message message, |
| <a href="../../../../../edu/snu/onyx/runtime/common/message/MessageContext.html" title="interface in edu.snu.onyx.runtime.common.message">MessageContext</a> messageContext)</code> |
| <div class="block">Reserves the region for a partition in a block, appends the partition metadata, |
| and replies with the starting point of the block in the file.</div> |
| </td> |
| </tr> |
| <tr id="i10" class="altColor"> |
| <td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a><<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/onyx/runtime/master/BlockManagerMaster.html#removeWorker-java.lang.String-">removeWorker</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> executorId)</code> |
| <div class="block">Manages the block information when a executor is removed.</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/onyx/runtime/master/BlockManagerMaster.html#terminate--">terminate</a></span>()</code> </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class 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#toString--" title="class or interface in java.lang">toString</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"> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="initializeState-java.lang.String-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>initializeState</h4> |
| <pre>public void initializeState(<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> blockId, |
| <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> producerTaskGroupId)</pre> |
| <div class="block">Initializes the states of a block which will be produced by producer task(s).</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>blockId</code> - the id of the block to initialize.</dd> |
| <dd><code>producerTaskGroupId</code> - the id of the producer task group.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="removeWorker-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>removeWorker</h4> |
| <pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a><<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>> removeWorker(<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> executorId)</pre> |
| <div class="block">Manages the block information when a executor is removed.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>executorId</code> - the id of removed executor.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the set of task groups have to be recomputed.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getBlockLocationFuture-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getBlockLocationFuture</h4> |
| <pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html?is-external=true" title="class or interface in java.util.concurrent">CompletableFuture</a><<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>> getBlockLocationFuture(<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> blockId)</pre> |
| <div class="block">Returns a <a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html?is-external=true" title="class or interface in java.util.concurrent"><code>CompletableFuture</code></a> of block location, which is not yet resolved in <code>SCHEDULED</code> state.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>blockId</code> - id of the specified block.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd><a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html?is-external=true" title="class or interface in java.util.concurrent"><code>CompletableFuture</code></a> of block location, which completes exceptionally when the block |
| is not <code>SCHEDULED</code> or <code>COMMITTED</code>.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getProducerTaskGroupIds-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getProducerTaskGroupIds</h4> |
| <pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a><<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>> getProducerTaskGroupIds(<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> blockId)</pre> |
| <div class="block">Gets the ids of the task groups which already produced or will produce data for a specific block.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>blockId</code> - the id of the block.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the ids of the producer task groups.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="onProducerTaskGroupScheduled-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>onProducerTaskGroupScheduled</h4> |
| <pre>public void onProducerTaskGroupScheduled(<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> scheduledTaskGroupId)</pre> |
| <div class="block">To be called when a potential producer task group is scheduled. |
| To be precise, it is called when the task group is enqueued to |
| <a href="../../../../../edu/snu/onyx/runtime/master/scheduler/PendingTaskGroupQueue.html" title="interface in edu.snu.onyx.runtime.master.scheduler"><code>PendingTaskGroupQueue</code></a>.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>scheduledTaskGroupId</code> - the ID of the scheduled task group.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="onProducerTaskGroupFailed-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>onProducerTaskGroupFailed</h4> |
| <pre>public void onProducerTaskGroupFailed(<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> failedTaskGroupId)</pre> |
| <div class="block">To be called when a potential producer task group fails. |
| Only the TaskGroups that have not yet completed (i.e. blocks not yet committed) will call this method.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>failedTaskGroupId</code> - the ID of the task group that failed.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="onBlockStateChanged-java.lang.String-edu.snu.onyx.runtime.common.state.BlockState.State-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>onBlockStateChanged</h4> |
| <pre>public void onBlockStateChanged(<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> blockId, |
| <a href="../../../../../edu/snu/onyx/runtime/common/state/BlockState.State.html" title="enum in edu.snu.onyx.runtime.common.state">BlockState.State</a> newState, |
| <a href="https://docs.oracle.com/javase/8/docs/api/javax/annotation/Nullable.html?is-external=true" title="class or interface in javax.annotation">@Nullable</a> |
| <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> location)</pre> |
| <div class="block">Deals with state change of a block.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>blockId</code> - the id of the block.</dd> |
| <dd><code>newState</code> - the new state of the block.</dd> |
| <dd><code>location</code> - the location of the block (e.g., worker id, remote store). |
| <code>null</code> if not committed or lost.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="onReservePartition-edu.snu.onyx.runtime.common.comm.ControlMessage.Message-edu.snu.onyx.runtime.common.message.MessageContext-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>onReservePartition</h4> |
| <pre>public void onReservePartition(edu.snu.onyx.runtime.common.comm.ControlMessage.Message message, |
| <a href="../../../../../edu/snu/onyx/runtime/common/message/MessageContext.html" title="interface in edu.snu.onyx.runtime.common.message">MessageContext</a> messageContext)</pre> |
| <div class="block">Reserves the region for a partition in a block, appends the partition metadata, |
| and replies with the starting point of the block in the file.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>message</code> - the message having the partition metadata to append.</dd> |
| <dd><code>messageContext</code> - the context which will be used for response.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="onCommitPartitions-edu.snu.onyx.runtime.common.comm.ControlMessage.Message-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>onCommitPartitions</h4> |
| <pre>public void onCommitPartitions(edu.snu.onyx.runtime.common.comm.ControlMessage.Message message)</pre> |
| <div class="block">Commits the partitions for a remote block.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>message</code> - the message having metadata to commit.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="onRequestPartitionMetadata-edu.snu.onyx.runtime.common.comm.ControlMessage.Message-edu.snu.onyx.runtime.common.message.MessageContext-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>onRequestPartitionMetadata</h4> |
| <pre>public void onRequestPartitionMetadata(edu.snu.onyx.runtime.common.comm.ControlMessage.Message message, |
| <a href="../../../../../edu/snu/onyx/runtime/common/message/MessageContext.html" title="interface in edu.snu.onyx.runtime.common.message">MessageContext</a> messageContext)</pre> |
| <div class="block">Accepts a request for the partition metadata and replies with the metadata for a remote block.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>message</code> - the message having metadata to store.</dd> |
| <dd><code>messageContext</code> - the context to reply.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="onRemovePartitionMetadata-edu.snu.onyx.runtime.common.comm.ControlMessage.Message-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>onRemovePartitionMetadata</h4> |
| <pre>public void onRemovePartitionMetadata(edu.snu.onyx.runtime.common.comm.ControlMessage.Message message)</pre> |
| <div class="block">Removes the partition metadata for a remote block. |
| If the target block was not previously created, ignores this message.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>message</code> - the message pointing the metadata to remove.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="terminate--"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>terminate</h4> |
| <pre>public void terminate()</pre> |
| </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/BlockManagerMaster.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="../../../../../edu/snu/onyx/runtime/master/BlockManagerMaster.PartitionManagerMasterControlMessageReceiver.html" title="class in edu.snu.onyx.runtime.master"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../index.html?edu/snu/onyx/runtime/master/BlockManagerMaster.html" target="_top">Frames</a></li> |
| <li><a href="BlockManagerMaster.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><a href="#nested.class.summary">Nested</a> | </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| <p class="legalCopy"><small>Copyright © 2017. All rights reserved.</small></p> |
| </body> |
| </html> |