| <!DOCTYPE HTML> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc (11.0.18) on Wed Mar 01 02:01:42 GMT 2023 --> |
| <title>ResourceCompliantRRPackingTest (Heron Java API)</title> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <meta name="dc.created" content="2023-03-01"> |
| <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> |
| <link rel="stylesheet" type="text/css" href="../../../../../jquery/jquery-ui.min.css" title="Style"> |
| <link rel="stylesheet" type="text/css" href="../../../../../jquery-ui.overrides.css" title="Style"> |
| <script type="text/javascript" src="../../../../../script.js"></script> |
| <script type="text/javascript" src="../../../../../jquery/jszip/dist/jszip.min.js"></script> |
| <script type="text/javascript" src="../../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script> |
| <!--[if IE]> |
| <script type="text/javascript" src="../../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script> |
| <![endif]--> |
| <script type="text/javascript" src="../../../../../jquery/jquery-3.6.0.min.js"></script> |
| <script type="text/javascript" src="../../../../../jquery/jquery-ui.min.js"></script> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| try { |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="ResourceCompliantRRPackingTest (Heron Java API)"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var data = {"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,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":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"; |
| var pathtoroot = "../../../../../"; |
| var useModuleDirectories = true; |
| loadScripts(document, 'script');</script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <header role="banner"> |
| <nav role="navigation"> |
| <div class="fixedNav"> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a id="navbar.top"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> |
| <a id="navbar.top.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../index.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</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" id="allclasses_navbar_top"> |
| <li><a href="../../../../../allclasses.html">All Classes</a></li> |
| </ul> |
| <ul class="navListSearch"> |
| <li><label for="search">SEARCH:</label> |
| <input type="text" id="search" value="search" disabled="disabled"> |
| <input type="reset" id="reset" value="reset" disabled="disabled"> |
| </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> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li><a href="#field.summary">Field</a> | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li><a href="#constructor.detail">Constr</a> | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a id="skip.navbar.top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| </div> |
| <div class="navPadding"> </div> |
| <script type="text/javascript"><!-- |
| $('.navPadding').css('padding-top', $('.fixedNav').css("height")); |
| //--> |
| </script> |
| </nav> |
| </header> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <main role="main"> |
| <div class="header"> |
| <div class="subTitle"><span class="packageLabelInType">Package</span> <a href="package-summary.html">org.apache.heron.packing.roundrobin</a></div> |
| <h2 title="Class ResourceCompliantRRPackingTest" class="title">Class ResourceCompliantRRPackingTest</h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li>java.lang.Object</li> |
| <li> |
| <ul class="inheritance"> |
| <li><a href="../CommonPackingTests.html" title="class in org.apache.heron.packing">org.apache.heron.packing.CommonPackingTests</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li>org.apache.heron.packing.roundrobin.ResourceCompliantRRPackingTest</li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <hr> |
| <pre>public class <span class="typeNameLabel">ResourceCompliantRRPackingTest</span> |
| extends <a href="../CommonPackingTests.html" title="class in org.apache.heron.packing">CommonPackingTests</a></pre> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- =========== FIELD SUMMARY =========== --> |
| <section> |
| <ul class="blockList"> |
| <li class="blockList"><a id="field.summary"> |
| <!-- --> |
| </a> |
| <h3>Field Summary</h3> |
| <ul class="blockList"> |
| <li class="blockList"><a id="fields.inherited.from.class.org.apache.heron.packing.CommonPackingTests"> |
| <!-- --> |
| </a> |
| <h3>Fields inherited from class org.apache.heron.packing.<a href="../CommonPackingTests.html" title="class in org.apache.heron.packing">CommonPackingTests</a></h3> |
| <code><a href="../CommonPackingTests.html#BOLT_NAME">BOLT_NAME</a>, <a href="../CommonPackingTests.html#boltParallelism">boltParallelism</a>, <a href="../CommonPackingTests.html#DEFAULT_CONTAINER_PADDING_PERCENT">DEFAULT_CONTAINER_PADDING_PERCENT</a>, <a href="../CommonPackingTests.html#instanceDefaultResources">instanceDefaultResources</a>, <a href="../CommonPackingTests.html#numContainers">numContainers</a>, <a href="../CommonPackingTests.html#SPOUT_NAME">SPOUT_NAME</a>, <a href="../CommonPackingTests.html#spoutParallelism">spoutParallelism</a>, <a href="../CommonPackingTests.html#topology">topology</a>, <a href="../CommonPackingTests.html#topologyConfig">topologyConfig</a>, <a href="../CommonPackingTests.html#totalInstances">totalInstances</a></code></li> |
| </ul> |
| </li> |
| </ul> |
| </section> |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| <section> |
| <ul class="blockList"> |
| <li class="blockList"><a id="constructor.summary"> |
| <!-- --> |
| </a> |
| <h3>Constructor Summary</h3> |
| <table class="memberSummary"> |
| <caption><span>Constructors</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Constructor</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| <tr class="altColor"> |
| <th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E()">ResourceCompliantRRPackingTest</a></span>()</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| </section> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <section> |
| <ul class="blockList"> |
| <li class="blockList"><a id="method.summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <table class="memberSummary"> |
| <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="colSecond" scope="col">Method</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| <tr id="i0" class="altColor"> |
| <td class="colFirst"><code>protected void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#doTestContainerCountRequested(int,int)">doTestContainerCountRequested</a></span>​(int requestedContainers, |
| int expectedContainer)</code></th> |
| <td class="colLast"> |
| <div class="block">Test the scenario where container level resource config are set</div> |
| </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code>protected <a href="../../spi/packing/IPacking.html" title="interface in org.apache.heron.spi.packing">IPacking</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getPackingImpl()">getPackingImpl</a></span>()</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <td class="colFirst"><code>protected <a href="../../spi/packing/IRepacking.html" title="interface in org.apache.heron.spi.packing">IRepacking</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getRepackingImpl()">getRepackingImpl</a></span>()</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#removeFirstContainer()">removeFirstContainer</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Test the scenario where the scaling down is requested and the first container is removed</div> |
| </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#scaleDownAndUp()">scaleDownAndUp</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Test the scenario where scaling down and up is simultaneously requested</div> |
| </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#scaleDownAndUpNoPadding()">scaleDownAndUpNoPadding</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Test the scenario where scaling down and up is simultaneously requested and padding is |
| configured</div> |
| </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#scaleDownAndUpWithExtraPadding()">scaleDownAndUpWithExtraPadding</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Test the scenario where scaling down and up is simultaneously requested and padding is |
| configured</div> |
| </td> |
| </tr> |
| <tr id="i7" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#scaleUpMultiple()">scaleUpMultiple</a></span>()</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i8" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testCompleteRamMapRequested()">testCompleteRamMapRequested</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Test the scenario RAM map config is partially set</div> |
| </td> |
| </tr> |
| <tr id="i9" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testContainerRequestedResourcesSingleContainer()">testContainerRequestedResourcesSingleContainer</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Test the scenario where container level resource config are set</div> |
| </td> |
| </tr> |
| <tr id="i10" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testContainersRequestedExceedsInstanceCount()">testContainersRequestedExceedsInstanceCount</a></span>()</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i11" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testDefaultContainerSizeRepack()">testDefaultContainerSizeRepack</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Test the scenario where the max container size is the default |
| and scaling is requested.</div> |
| </td> |
| </tr> |
| <tr id="i12" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testDefaultContainerSizeWithPadding()">testDefaultContainerSizeWithPadding</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Test the scenario where the max container size is the default and padding is configured</div> |
| </td> |
| </tr> |
| <tr id="i13" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testDefaultResources()">testDefaultResources</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Test the scenario where the max container size is the default</div> |
| </td> |
| </tr> |
| <tr id="i14" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testEvenPacking()">testEvenPacking</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">test even packing of instances</div> |
| </td> |
| </tr> |
| <tr id="i15" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testFailureInsufficientContainerCpu()">testFailureInsufficientContainerCpu</a></span>()</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i16" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testFailureInsufficientContainerRam()">testFailureInsufficientContainerRam</a></span>()</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i17" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testInsufficientContainersWithMultipleAdjustments()">testInsufficientContainersWithMultipleAdjustments</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Test the scenario where the user defined number of containers is not sufficient.</div> |
| </td> |
| </tr> |
| <tr id="i18" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testInsufficientContainersWithOneAdjustment()">testInsufficientContainersWithOneAdjustment</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Test the scenario where the user defined number of containers is not sufficient.</div> |
| </td> |
| </tr> |
| <tr id="i19" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testInvalidRamInstance()">testInvalidRamInstance</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Test invalid RAM for instance</div> |
| </td> |
| </tr> |
| <tr id="i20" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testPartialRamMap()">testPartialRamMap</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Test the scenario RAM map config is fully set</div> |
| </td> |
| </tr> |
| <tr id="i21" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testPartialRamMapScaling()">testPartialRamMapScaling</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Test the scenario RAM map config is partially set and scaling is requested</div> |
| </td> |
| </tr> |
| <tr id="i22" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testRepackPadding()">testRepackPadding</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Test the scenario RAM map config is partially set and scaling is requested</div> |
| </td> |
| </tr> |
| <tr id="i23" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testScaleDown()">testScaleDown</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Test the scenario where the scaling down is requested</div> |
| </td> |
| </tr> |
| <tr id="i24" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testScaleDownHomogenousFirst()">testScaleDownHomogenousFirst</a></span>()</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i25" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testScaleDownInvalidComponent()">testScaleDownInvalidComponent</a></span>()</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i26" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testScaleDownInvalidScaleFactor()">testScaleDownInvalidScaleFactor</a></span>()</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i27" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testScaleDownOneComponentRemoveContainer()">testScaleDownOneComponentRemoveContainer</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Test the scenario where scaling down removes instances from containers that are most imbalanced |
| (i.e., tending towards homogeneity) first.</div> |
| </td> |
| </tr> |
| <tr id="i28" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testScaleDownTwoComponentsRemoveContainer()">testScaleDownTwoComponentsRemoveContainer</a></span>()</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i29" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testTwoContainersRequested()">testTwoContainersRequested</a></span>()</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a id="methods.inherited.from.class.org.apache.heron.packing.CommonPackingTests"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class org.apache.heron.packing.<a href="../CommonPackingTests.html" title="class in org.apache.heron.packing">CommonPackingTests</a></h3> |
| <code><a href="../CommonPackingTests.html#doDefaultScalingTest(java.util.Map,int,int,org.apache.heron.spi.packing.Resource)">doDefaultScalingTest</a>, <a href="../CommonPackingTests.html#doPackingAndScalingTest(org.apache.heron.api.generated.TopologyAPI.Topology,java.util.Map,org.apache.heron.spi.packing.Resource,int,org.apache.heron.spi.packing.Resource,int,int,int,org.apache.heron.spi.packing.Resource)">doPackingAndScalingTest</a>, <a href="../CommonPackingTests.html#doPackingTest(org.apache.heron.api.generated.TopologyAPI.Topology,org.apache.heron.spi.packing.Resource,int,org.apache.heron.spi.packing.Resource,int,int,org.apache.heron.spi.packing.Resource)">doPackingTest</a>, <a href="../CommonPackingTests.html#doPackingTestWithPartialResource(org.apache.heron.api.generated.TopologyAPI.Topology,java.util.Optional,java.util.Optional,int,java.util.Optional,java.util.Optional,int,int,org.apache.heron.spi.packing.Resource,org.apache.heron.spi.packing.Resource)">doPackingTestWithPartialResource</a>, <a href="../CommonPackingTests.html#doScaleDownTest(org.apache.heron.common.basics.Pair%5B%5D,java.util.Map,org.apache.heron.common.basics.Pair%5B%5D)">doScaleDownTest</a>, <a href="../CommonPackingTests.html#doScalingTest(org.apache.heron.api.generated.TopologyAPI.Topology,org.apache.heron.spi.packing.PackingPlan,java.util.Map,org.apache.heron.spi.packing.Resource,int,org.apache.heron.spi.packing.Resource,int,int,org.apache.heron.spi.packing.Resource)">doScalingTest</a>, <a href="../CommonPackingTests.html#doScalingTestWithPartialResource(org.apache.heron.api.generated.TopologyAPI.Topology,org.apache.heron.spi.packing.PackingPlan,java.util.Map,java.util.Optional,java.util.Optional,int,java.util.Optional,java.util.Optional,int,int,org.apache.heron.spi.packing.Resource,org.apache.heron.spi.packing.Resource)">doScalingTestWithPartialResource</a>, <a href="../CommonPackingTests.html#getDefaultMaxContainerResource()">getDefaultMaxContainerResource</a>, <a href="../CommonPackingTests.html#getDefaultMaxContainerResource(int)">getDefaultMaxContainerResource</a>, <a href="../CommonPackingTests.html#getDefaultUnspecifiedContainerResource(int,int,org.apache.heron.spi.packing.Resource)">getDefaultUnspecifiedContainerResource</a>, <a href="../CommonPackingTests.html#getTopology(int,int,org.apache.heron.api.Config)">getTopology</a>, <a href="../CommonPackingTests.html#pack(org.apache.heron.api.generated.TopologyAPI.Topology)">pack</a>, <a href="../CommonPackingTests.html#setUp()">setUp</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a id="methods.inherited.from.class.java.lang.Object"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class java.lang.Object</h3> |
| <code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li> |
| </ul> |
| </li> |
| </ul> |
| </section> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <section> |
| <ul class="blockList"> |
| <li class="blockList"><a id="constructor.detail"> |
| <!-- --> |
| </a> |
| <h3>Constructor Detail</h3> |
| <a id="<init>()"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>ResourceCompliantRRPackingTest</h4> |
| <pre>public ResourceCompliantRRPackingTest()</pre> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </section> |
| <!-- ============ METHOD DETAIL ========== --> |
| <section> |
| <ul class="blockList"> |
| <li class="blockList"><a id="method.detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a id="getPackingImpl()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getPackingImpl</h4> |
| <pre class="methodSignature">protected <a href="../../spi/packing/IPacking.html" title="interface in org.apache.heron.spi.packing">IPacking</a> getPackingImpl()</pre> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../CommonPackingTests.html#getPackingImpl()">getPackingImpl</a></code> in class <code><a href="../CommonPackingTests.html" title="class in org.apache.heron.packing">CommonPackingTests</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="getRepackingImpl()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getRepackingImpl</h4> |
| <pre class="methodSignature">protected <a href="../../spi/packing/IRepacking.html" title="interface in org.apache.heron.spi.packing">IRepacking</a> getRepackingImpl()</pre> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../CommonPackingTests.html#getRepackingImpl()">getRepackingImpl</a></code> in class <code><a href="../CommonPackingTests.html" title="class in org.apache.heron.packing">CommonPackingTests</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="testFailureInsufficientContainerRam()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>testFailureInsufficientContainerRam</h4> |
| <pre class="methodSignature">public void testFailureInsufficientContainerRam() |
| throws java.lang.Exception</pre> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.Exception</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="testFailureInsufficientContainerCpu()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>testFailureInsufficientContainerCpu</h4> |
| <pre class="methodSignature">public void testFailureInsufficientContainerCpu() |
| throws java.lang.Exception</pre> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.Exception</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="testDefaultResources()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>testDefaultResources</h4> |
| <pre class="methodSignature">public void testDefaultResources() |
| throws java.lang.Exception</pre> |
| <div class="block">Test the scenario where the max container size is the default</div> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.Exception</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="testDefaultContainerSizeWithPadding()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>testDefaultContainerSizeWithPadding</h4> |
| <pre class="methodSignature">public void testDefaultContainerSizeWithPadding() |
| throws java.lang.Exception</pre> |
| <div class="block">Test the scenario where the max container size is the default and padding is configured</div> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.Exception</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="testContainerRequestedResourcesSingleContainer()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>testContainerRequestedResourcesSingleContainer</h4> |
| <pre class="methodSignature">public void testContainerRequestedResourcesSingleContainer() |
| throws java.lang.Exception</pre> |
| <div class="block">Test the scenario where container level resource config are set</div> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.Exception</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="testContainersRequestedExceedsInstanceCount()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>testContainersRequestedExceedsInstanceCount</h4> |
| <pre class="methodSignature">public void testContainersRequestedExceedsInstanceCount() |
| throws java.lang.Exception</pre> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.Exception</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="testCompleteRamMapRequested()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>testCompleteRamMapRequested</h4> |
| <pre class="methodSignature">public void testCompleteRamMapRequested() |
| throws java.lang.Exception</pre> |
| <div class="block">Test the scenario RAM map config is partially set</div> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.Exception</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="testPartialRamMap()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>testPartialRamMap</h4> |
| <pre class="methodSignature">public void testPartialRamMap() |
| throws java.lang.Exception</pre> |
| <div class="block">Test the scenario RAM map config is fully set</div> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.Exception</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="testInsufficientContainersWithOneAdjustment()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>testInsufficientContainersWithOneAdjustment</h4> |
| <pre class="methodSignature">public void testInsufficientContainersWithOneAdjustment() |
| throws java.lang.Exception</pre> |
| <div class="block">Test the scenario where the user defined number of containers is not sufficient.</div> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.Exception</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="testInsufficientContainersWithMultipleAdjustments()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>testInsufficientContainersWithMultipleAdjustments</h4> |
| <pre class="methodSignature">public void testInsufficientContainersWithMultipleAdjustments() |
| throws java.lang.Exception</pre> |
| <div class="block">Test the scenario where the user defined number of containers is not sufficient.</div> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.Exception</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="testEvenPacking()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>testEvenPacking</h4> |
| <pre class="methodSignature">public void testEvenPacking() |
| throws java.lang.Exception</pre> |
| <div class="block">test even packing of instances</div> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.Exception</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="testDefaultContainerSizeRepack()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>testDefaultContainerSizeRepack</h4> |
| <pre class="methodSignature">public void testDefaultContainerSizeRepack() |
| throws java.lang.Exception</pre> |
| <div class="block">Test the scenario where the max container size is the default |
| and scaling is requested.</div> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.Exception</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="testRepackPadding()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>testRepackPadding</h4> |
| <pre class="methodSignature">public void testRepackPadding() |
| throws java.lang.Exception</pre> |
| <div class="block">Test the scenario RAM map config is partially set and scaling is requested</div> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.Exception</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="testPartialRamMapScaling()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>testPartialRamMapScaling</h4> |
| <pre class="methodSignature">public void testPartialRamMapScaling() |
| throws java.lang.Exception</pre> |
| <div class="block">Test the scenario RAM map config is partially set and scaling is requested</div> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.Exception</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="testScaleDown()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>testScaleDown</h4> |
| <pre class="methodSignature">public void testScaleDown() |
| throws java.lang.Exception</pre> |
| <div class="block">Test the scenario where the scaling down is requested</div> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.Exception</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="removeFirstContainer()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>removeFirstContainer</h4> |
| <pre class="methodSignature">public void removeFirstContainer() |
| throws java.lang.Exception</pre> |
| <div class="block">Test the scenario where the scaling down is requested and the first container is removed</div> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.Exception</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="scaleDownAndUpWithExtraPadding()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>scaleDownAndUpWithExtraPadding</h4> |
| <pre class="methodSignature">public void scaleDownAndUpWithExtraPadding() |
| throws java.lang.Exception</pre> |
| <div class="block">Test the scenario where scaling down and up is simultaneously requested and padding is |
| configured</div> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.Exception</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="scaleDownAndUpNoPadding()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>scaleDownAndUpNoPadding</h4> |
| <pre class="methodSignature">public void scaleDownAndUpNoPadding() |
| throws java.lang.Exception</pre> |
| <div class="block">Test the scenario where scaling down and up is simultaneously requested and padding is |
| configured</div> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.Exception</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="scaleUpMultiple()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>scaleUpMultiple</h4> |
| <pre class="methodSignature">public void scaleUpMultiple() |
| throws java.lang.Exception</pre> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.Exception</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="scaleDownAndUp()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>scaleDownAndUp</h4> |
| <pre class="methodSignature">public void scaleDownAndUp() |
| throws java.lang.Exception</pre> |
| <div class="block">Test the scenario where scaling down and up is simultaneously requested</div> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.Exception</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="testScaleDownInvalidScaleFactor()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>testScaleDownInvalidScaleFactor</h4> |
| <pre class="methodSignature">public void testScaleDownInvalidScaleFactor() |
| throws java.lang.Exception</pre> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.Exception</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="testScaleDownInvalidComponent()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>testScaleDownInvalidComponent</h4> |
| <pre class="methodSignature">public void testScaleDownInvalidComponent() |
| throws java.lang.Exception</pre> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.Exception</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="testInvalidRamInstance()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>testInvalidRamInstance</h4> |
| <pre class="methodSignature">public void testInvalidRamInstance() |
| throws java.lang.Exception</pre> |
| <div class="block">Test invalid RAM for instance</div> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.Exception</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="testTwoContainersRequested()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>testTwoContainersRequested</h4> |
| <pre class="methodSignature">public void testTwoContainersRequested() |
| throws java.lang.Exception</pre> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.Exception</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="doTestContainerCountRequested(int,int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>doTestContainerCountRequested</h4> |
| <pre class="methodSignature">protected void doTestContainerCountRequested​(int requestedContainers, |
| int expectedContainer) |
| throws java.lang.Exception</pre> |
| <div class="block">Test the scenario where container level resource config are set</div> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.Exception</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="testScaleDownOneComponentRemoveContainer()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>testScaleDownOneComponentRemoveContainer</h4> |
| <pre class="methodSignature">public void testScaleDownOneComponentRemoveContainer() |
| throws java.lang.Exception</pre> |
| <div class="block">Test the scenario where scaling down removes instances from containers that are most imbalanced |
| (i.e., tending towards homogeneity) first. If there is a tie (e.g. AABB, AB), chooses from the |
| container with the fewest instances, to favor ultimately removing containers. If there is |
| still a tie, favor removing from higher numbered containers</div> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.Exception</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="testScaleDownTwoComponentsRemoveContainer()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>testScaleDownTwoComponentsRemoveContainer</h4> |
| <pre class="methodSignature">public void testScaleDownTwoComponentsRemoveContainer() |
| throws java.lang.Exception</pre> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.Exception</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="testScaleDownHomogenousFirst()"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>testScaleDownHomogenousFirst</h4> |
| <pre class="methodSignature">public void testScaleDownHomogenousFirst() |
| throws java.lang.Exception</pre> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.Exception</code></dd> |
| </dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </section> |
| </li> |
| </ul> |
| </div> |
| </div> |
| </main> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <footer role="contentinfo"> |
| <nav role="navigation"> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a id="navbar.bottom"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> |
| <a id="navbar.bottom.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../index.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</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" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../../allclasses.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> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li><a href="#field.summary">Field</a> | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li><a href="#constructor.detail">Constr</a> | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a id="skip.navbar.bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| </nav> |
| </footer> |
| </body> |
| </html> |