| <!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 --> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <title>Cluster (Storm 2.3.0 API)</title> |
| <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="Cluster (Storm 2.3.0 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":9,"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,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10,"i35":10,"i36":10,"i37":10,"i38":10,"i39":10,"i40":10,"i41":10,"i42":10,"i43":10,"i44":10,"i45":10,"i46":10,"i47":10,"i48":10,"i49":10,"i50":10,"i51":10,"i52":10,"i53":10,"i54":10,"i55":10,"i56":10,"i57":10,"i58":10,"i59":10,"i60":10,"i61":10,"i62":10,"i63":10,"i64":10,"i65":10}; |
| var tabs = {65535:["t0","All Methods"],1:["t1","Static 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/Cluster.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="../../../../org/apache/storm/scheduler/Component.html" title="class in org.apache.storm.scheduler"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../index.html?org/apache/storm/scheduler/Cluster.html" target="_top">Frames</a></li> |
| <li><a href="Cluster.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_top"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li>Field | </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 name="skip.navbar.top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <div class="header"> |
| <div class="subTitle">org.apache.storm.scheduler</div> |
| <h2 title="Class Cluster" class="title">Class Cluster</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>org.apache.storm.scheduler.Cluster</li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <dl> |
| <dt>All Implemented Interfaces:</dt> |
| <dd><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html" title="interface in org.apache.storm.scheduler">ISchedulingState</a></dd> |
| </dl> |
| <dl> |
| <dt>Direct Known Subclasses:</dt> |
| <dd><a href="../../../../org/apache/storm/scheduler/SingleTopologyCluster.html" title="class in org.apache.storm.scheduler">SingleTopologyCluster</a></dd> |
| </dl> |
| <hr> |
| <br> |
| <pre>public class <span class="typeNameLabel">Cluster</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> |
| implements <a href="../../../../org/apache/storm/scheduler/ISchedulingState.html" title="interface in org.apache.storm.scheduler">ISchedulingState</a></pre> |
| <div class="block"><p>The current state of the storm cluster. Cluster is not currently thread safe.</p></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"> </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="../../../../org/apache/storm/scheduler/Cluster.html#Cluster-org.apache.storm.scheduler.Cluster-">Cluster</a></span>(<a href="../../../../org/apache/storm/scheduler/Cluster.html" title="class in org.apache.storm.scheduler">Cluster</a> src)</code> |
| <div class="block">Copy constructor.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/storm/scheduler/Cluster.html#Cluster-org.apache.storm.scheduler.Cluster-org.apache.storm.scheduler.Topologies-">Cluster</a></span>(<a href="../../../../org/apache/storm/scheduler/Cluster.html" title="class in org.apache.storm.scheduler">Cluster</a> src, |
| <a href="../../../../org/apache/storm/scheduler/Topologies.html" title="class in org.apache.storm.scheduler">Topologies</a> topologies)</code> |
| <div class="block">Testing Constructor that takes an existing cluster and replaces the topologies in it.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/storm/scheduler/Cluster.html#Cluster-org.apache.storm.scheduler.INimbus-org.apache.storm.scheduler.resource.normalization.ResourceMetrics-java.util.Map-java.util.Map-org.apache.storm.scheduler.Topologies-java.util.Map-">Cluster</a></span>(<a href="../../../../org/apache/storm/scheduler/INimbus.html" title="interface in org.apache.storm.scheduler">INimbus</a> nimbus, |
| <a href="../../../../org/apache/storm/scheduler/resource/normalization/ResourceMetrics.html" title="class in org.apache.storm.scheduler.resource.normalization">ResourceMetrics</a> resourceMetrics, |
| <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><<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="../../../../org/apache/storm/scheduler/SupervisorDetails.html" title="class in org.apache.storm.scheduler">SupervisorDetails</a>> supervisors, |
| <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><<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>,? extends <a href="../../../../org/apache/storm/scheduler/SchedulerAssignment.html" title="interface in org.apache.storm.scheduler">SchedulerAssignment</a>> assignments, |
| <a href="../../../../org/apache/storm/scheduler/Topologies.html" title="class in org.apache.storm.scheduler">Topologies</a> topologies, |
| <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><<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="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>> conf)</code> </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="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></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>protected void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/storm/scheduler/Cluster.html#assertValidTopologyForModification-java.lang.String-">assertValidTopologyForModification</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> topologyId)</code> |
| <div class="block">Check if the given topology is allowed for modification right now.</div> |
| </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/storm/scheduler/Cluster.html#assign-org.apache.storm.scheduler.SchedulerAssignment-boolean-">assign</a></span>(<a href="../../../../org/apache/storm/scheduler/SchedulerAssignment.html" title="interface in org.apache.storm.scheduler">SchedulerAssignment</a> assignment, |
| boolean ignoreSingleExceptions)</code> |
| <div class="block">Assign everything for the given topology.</div> |
| </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/storm/scheduler/Cluster.html#assign-org.apache.storm.scheduler.WorkerSlot-java.lang.String-java.util.Collection-">assign</a></span>(<a href="../../../../org/apache/storm/scheduler/WorkerSlot.html" title="class in org.apache.storm.scheduler">WorkerSlot</a> slot, |
| <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> topologyId, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><<a href="../../../../org/apache/storm/scheduler/ExecutorDetails.html" title="class in org.apache.storm.scheduler">ExecutorDetails</a>> executors)</code> |
| <div class="block">Assign the slot to the executors for this topology.</div> |
| </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/storm/scheduler/Cluster.html#blacklistHost-java.lang.String-">blacklistHost</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> host)</code> </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/storm/scheduler/Cluster.html#freeSlot-org.apache.storm.scheduler.WorkerSlot-">freeSlot</a></span>(<a href="../../../../org/apache/storm/scheduler/WorkerSlot.html" title="class in org.apache.storm.scheduler">WorkerSlot</a> slot)</code> |
| <div class="block">Free the specified slot.</div> |
| </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/storm/scheduler/Cluster.html#freeSlots-java.util.Collection-">freeSlots</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><<a href="../../../../org/apache/storm/scheduler/WorkerSlot.html" title="class in org.apache.storm.scheduler">WorkerSlot</a>> slots)</code> |
| <div class="block">free the slots.</div> |
| </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/storm/scheduler/resource/normalization/NormalizedResourceRequest.html" title="class in org.apache.storm.scheduler.resource.normalization">NormalizedResourceRequest</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/storm/scheduler/Cluster.html#getAllScheduledResourcesForNode-java.lang.String-">getAllScheduledResourcesForNode</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> nodeId)</code> |
| <div class="block">Get all scheduled resources for node.</div> |
| </td> |
| </tr> |
| <tr id="i7" 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/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/storm/scheduler/Cluster.html#getAssignablePorts-org.apache.storm.scheduler.SupervisorDetails-">getAssignablePorts</a></span>(<a href="../../../../org/apache/storm/scheduler/SupervisorDetails.html" title="class in org.apache.storm.scheduler">SupervisorDetails</a> supervisor)</code> |
| <div class="block">Get the ports that are not blacklisted.</div> |
| </td> |
| </tr> |
| <tr id="i8" class="altColor"> |
| <td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../org/apache/storm/scheduler/WorkerSlot.html" title="class in org.apache.storm.scheduler">WorkerSlot</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/storm/scheduler/Cluster.html#getAssignableSlots--">getAssignableSlots</a></span>()</code> |
| <div class="block">Get all non-blacklisted slots in the cluster.</div> |
| </td> |
| </tr> |
| <tr id="i9" class="rowColor"> |
| <td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../org/apache/storm/scheduler/WorkerSlot.html" title="class in org.apache.storm.scheduler">WorkerSlot</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/storm/scheduler/Cluster.html#getAssignableSlots-org.apache.storm.scheduler.SupervisorDetails-">getAssignableSlots</a></span>(<a href="../../../../org/apache/storm/scheduler/SupervisorDetails.html" title="class in org.apache.storm.scheduler">SupervisorDetails</a> supervisor)</code> |
| <div class="block">Return all non-blacklisted slots on this supervisor.</div> |
| </td> |
| </tr> |
| <tr id="i10" class="altColor"> |
| <td class="colFirst"><code>static double</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/storm/scheduler/Cluster.html#getAssignedMemoryForSlot-java.util.Map-">getAssignedMemoryForSlot</a></span>(<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><<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="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>> topConf)</code> |
| <div class="block">Get heap memory usage for a worker’s main process and logwriter process.</div> |
| </td> |
| </tr> |
| <tr id="i11" class="rowColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/storm/scheduler/Cluster.html#getAssignedNumWorkers-org.apache.storm.scheduler.TopologyDetails-">getAssignedNumWorkers</a></span>(<a href="../../../../org/apache/storm/scheduler/TopologyDetails.html" title="class in org.apache.storm.scheduler">TopologyDetails</a> topology)</code> |
| <div class="block">Get the number of workers assigned to a topology.</div> |
| </td> |
| </tr> |
| <tr id="i12" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/storm/scheduler/SchedulerAssignment.html" title="interface in org.apache.storm.scheduler">SchedulerAssignment</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/storm/scheduler/Cluster.html#getAssignmentById-java.lang.String-">getAssignmentById</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> topologyId)</code> |
| <div class="block">get the current assignment for the topology.</div> |
| </td> |
| </tr> |
| <tr id="i13" 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><<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="../../../../org/apache/storm/scheduler/SchedulerAssignment.html" title="interface in org.apache.storm.scheduler">SchedulerAssignment</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/storm/scheduler/Cluster.html#getAssignments--">getAssignments</a></span>()</code> |
| <div class="block">Get all the assignments.</div> |
| </td> |
| </tr> |
| <tr id="i14" 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/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/storm/scheduler/Cluster.html#getAvailablePorts-org.apache.storm.scheduler.SupervisorDetails-">getAvailablePorts</a></span>(<a href="../../../../org/apache/storm/scheduler/SupervisorDetails.html" title="class in org.apache.storm.scheduler">SupervisorDetails</a> supervisor)</code> |
| <div class="block">Return the available ports of this supervisor.</div> |
| </td> |
| </tr> |
| <tr id="i15" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/storm/scheduler/resource/normalization/NormalizedResourceOffer.html" title="class in org.apache.storm.scheduler.resource.normalization">NormalizedResourceOffer</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/storm/scheduler/Cluster.html#getAvailableResources-org.apache.storm.scheduler.SupervisorDetails-">getAvailableResources</a></span>(<a href="../../../../org/apache/storm/scheduler/SupervisorDetails.html" title="class in org.apache.storm.scheduler">SupervisorDetails</a> sd)</code> |
| <div class="block">Get the resources on the supervisor that are available to be scheduled.</div> |
| </td> |
| </tr> |
| <tr id="i16" class="altColor"> |
| <td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../org/apache/storm/scheduler/WorkerSlot.html" title="class in org.apache.storm.scheduler">WorkerSlot</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/storm/scheduler/Cluster.html#getAvailableSlots--">getAvailableSlots</a></span>()</code> |
| <div class="block">Get all the available worker slots in the cluster.</div> |
| </td> |
| </tr> |
| <tr id="i17" class="rowColor"> |
| <td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../org/apache/storm/scheduler/WorkerSlot.html" title="class in org.apache.storm.scheduler">WorkerSlot</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/storm/scheduler/Cluster.html#getAvailableSlots-org.apache.storm.scheduler.SupervisorDetails-">getAvailableSlots</a></span>(<a href="../../../../org/apache/storm/scheduler/SupervisorDetails.html" title="class in org.apache.storm.scheduler">SupervisorDetails</a> supervisor)</code> |
| <div class="block">Return all the available slots on this supervisor.</div> |
| </td> |
| </tr> |
| <tr id="i18" 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="../../../../org/apache/storm/scheduler/Cluster.html#getBlacklistedHosts--">getBlacklistedHosts</a></span>()</code> |
| <div class="block">Get all of the hosts that are blacklisted.</div> |
| </td> |
| </tr> |
| <tr id="i19" class="rowColor"> |
| <td class="colFirst"><code>double</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/storm/scheduler/Cluster.html#getClusterTotalCpuResource--">getClusterTotalCpuResource</a></span>()</code> |
| <div class="block">Get the total amount of CPU resources in cluster.</div> |
| </td> |
| </tr> |
| <tr id="i20" 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><<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="https://docs.oracle.com/javase/8/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/storm/scheduler/Cluster.html#getClusterTotalGenericResources--">getClusterTotalGenericResources</a></span>()</code> |
| <div class="block">Get the total amount of generic resources (excluding CPU and memory) in cluster.</div> |
| </td> |
| </tr> |
| <tr id="i21" class="rowColor"> |
| <td class="colFirst"><code>double</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/storm/scheduler/Cluster.html#getClusterTotalMemoryResource--">getClusterTotalMemoryResource</a></span>()</code> |
| <div class="block">Get the total amount of memory resources in cluster.</div> |
| </td> |
| </tr> |
| <tr id="i22" 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><<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="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></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/storm/scheduler/Cluster.html#getConf--">getConf</a></span>()</code> |
| <div class="block">Get the nimbus configuration.</div> |
| </td> |
| </tr> |
| <tr id="i23" class="rowColor"> |
| <td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</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="../../../../org/apache/storm/scheduler/Cluster.html#getGreyListedSupervisors--">getGreyListedSupervisors</a></span>()</code> </td> |
| </tr> |
| <tr id="i24" 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="../../../../org/apache/storm/scheduler/Cluster.html#getHost-java.lang.String-">getHost</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> supervisorId)</code> |
| <div class="block">Map a supervisor to a given host.</div> |
| </td> |
| </tr> |
| <tr id="i25" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/storm/scheduler/INimbus.html" title="interface in org.apache.storm.scheduler">INimbus</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/storm/scheduler/Cluster.html#getINimbus--">getINimbus</a></span>()</code> </td> |
| </tr> |
| <tr id="i26" class="altColor"> |
| <td class="colFirst"><code>double</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/storm/scheduler/Cluster.html#getMinWorkerCpu--">getMinWorkerCpu</a></span>()</code> </td> |
| </tr> |
| <tr id="i27" 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><<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="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../org/apache/storm/scheduler/ExecutorDetails.html" title="class in org.apache.storm.scheduler">ExecutorDetails</a>>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/storm/scheduler/Cluster.html#getNeedsSchedulingComponentToExecutors-org.apache.storm.scheduler.TopologyDetails-">getNeedsSchedulingComponentToExecutors</a></span>(<a href="../../../../org/apache/storm/scheduler/TopologyDetails.html" title="class in org.apache.storm.scheduler">TopologyDetails</a> topology)</code> |
| <div class="block">Get the component name to executor list for executors that need to be scheduled.</div> |
| </td> |
| </tr> |
| <tr id="i28" 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><<a href="../../../../org/apache/storm/scheduler/ExecutorDetails.html" title="class in org.apache.storm.scheduler">ExecutorDetails</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="../../../../org/apache/storm/scheduler/Cluster.html#getNeedsSchedulingExecutorToComponents-org.apache.storm.scheduler.TopologyDetails-">getNeedsSchedulingExecutorToComponents</a></span>(<a href="../../../../org/apache/storm/scheduler/TopologyDetails.html" title="class in org.apache.storm.scheduler">TopologyDetails</a> topology)</code> |
| <div class="block">Get the executor to component name map for executors that need to be scheduled.</div> |
| </td> |
| </tr> |
| <tr id="i29" 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><<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="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</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="../../../../org/apache/storm/scheduler/Cluster.html#getNetworkTopography--">getNetworkTopography</a></span>()</code> |
| <div class="block">Get the network topography (rackId -> nodes in the rack).</div> |
| </td> |
| </tr> |
| <tr id="i30" class="altColor"> |
| <td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../org/apache/storm/scheduler/WorkerSlot.html" title="class in org.apache.storm.scheduler">WorkerSlot</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/storm/scheduler/Cluster.html#getNonBlacklistedAvailableSlots-java.util.List-">getNonBlacklistedAvailableSlots</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</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>> blacklistedSupervisorIds)</code> |
| <div class="block">Get all the available worker slots in the cluster, that are not blacklisted.</div> |
| </td> |
| </tr> |
| <tr id="i31" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/storm/scheduler/resource/normalization/NormalizedResourceOffer.html" title="class in org.apache.storm.scheduler.resource.normalization">NormalizedResourceOffer</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/storm/scheduler/Cluster.html#getNonBlacklistedClusterAvailableResources-java.util.Collection-">getNonBlacklistedClusterAvailableResources</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</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>> blacklistedSupervisorIds)</code> |
| <div class="block">Get the resources in the cluster that are available for scheduling.</div> |
| </td> |
| </tr> |
| <tr id="i32" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/storm/scheduler/resource/normalization/ResourceMetrics.html" title="class in org.apache.storm.scheduler.resource.normalization">ResourceMetrics</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/storm/scheduler/Cluster.html#getResourceMetrics--">getResourceMetrics</a></span>()</code> </td> |
| </tr> |
| <tr id="i33" class="rowColor"> |
| <td class="colFirst"><code>double</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/storm/scheduler/Cluster.html#getScheduledCpuForNode-java.lang.String-">getScheduledCpuForNode</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> nodeId)</code> |
| <div class="block">Get the total cpu currently scheduled on a node.</div> |
| </td> |
| </tr> |
| <tr id="i34" class="altColor"> |
| <td class="colFirst"><code>double</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/storm/scheduler/Cluster.html#getScheduledMemoryForNode-java.lang.String-">getScheduledMemoryForNode</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> nodeId)</code> |
| <div class="block">Get the total memory currently scheduled on a node.</div> |
| </td> |
| </tr> |
| <tr id="i35" 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="../../../../org/apache/storm/scheduler/Cluster.html#getStatus-java.lang.String-">getStatus</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> topoId)</code> </td> |
| </tr> |
| <tr id="i36" 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><<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="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="../../../../org/apache/storm/scheduler/Cluster.html#getStatusMap--">getStatusMap</a></span>()</code> |
| <div class="block">Get all topology scheduler statuses.</div> |
| </td> |
| </tr> |
| <tr id="i37" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/storm/scheduler/SupervisorDetails.html" title="class in org.apache.storm.scheduler">SupervisorDetails</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/storm/scheduler/Cluster.html#getSupervisorById-java.lang.String-">getSupervisorById</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> nodeId)</code> |
| <div class="block">Get a specific supervisor with the <code>nodeId</code>.</div> |
| </td> |
| </tr> |
| <tr id="i38" 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><<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="../../../../org/apache/storm/scheduler/SupervisorDetails.html" title="class in org.apache.storm.scheduler">SupervisorDetails</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/storm/scheduler/Cluster.html#getSupervisors--">getSupervisors</a></span>()</code> |
| <div class="block">Get all the supervisors.</div> |
| </td> |
| </tr> |
| <tr id="i39" class="rowColor"> |
| <td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../org/apache/storm/scheduler/SupervisorDetails.html" title="class in org.apache.storm.scheduler">SupervisorDetails</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/storm/scheduler/Cluster.html#getSupervisorsByHost-java.lang.String-">getSupervisorsByHost</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> host)</code> |
| <div class="block">Get all the supervisors on the specified <code>host</code>.</div> |
| </td> |
| </tr> |
| <tr id="i40" 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><<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="../../../../org/apache/storm/scheduler/SupervisorResources.html" title="class in org.apache.storm.scheduler">SupervisorResources</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/storm/scheduler/Cluster.html#getSupervisorsResourcesMap--">getSupervisorsResourcesMap</a></span>()</code> |
| <div class="block">Get the amount of used and free resources on a supervisor.</div> |
| </td> |
| </tr> |
| <tr id="i41" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/storm/scheduler/Topologies.html" title="class in org.apache.storm.scheduler">Topologies</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/storm/scheduler/Cluster.html#getTopologies--">getTopologies</a></span>()</code> |
| <div class="block">Get all of the topologies.</div> |
| </td> |
| </tr> |
| <tr id="i42" 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><<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="../../../../org/apache/storm/daemon/nimbus/TopologyResources.html" title="class in org.apache.storm.daemon.nimbus">TopologyResources</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/storm/scheduler/Cluster.html#getTopologyResourcesMap--">getTopologyResourcesMap</a></span>()</code> |
| <div class="block">Get the amount of resources used by topologies.</div> |
| </td> |
| </tr> |
| <tr id="i43" class="rowColor"> |
| <td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><<a href="../../../../org/apache/storm/scheduler/ExecutorDetails.html" title="class in org.apache.storm.scheduler">ExecutorDetails</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/storm/scheduler/Cluster.html#getUnassignedExecutors-org.apache.storm.scheduler.TopologyDetails-">getUnassignedExecutors</a></span>(<a href="../../../../org/apache/storm/scheduler/TopologyDetails.html" title="class in org.apache.storm.scheduler">TopologyDetails</a> topology)</code> |
| <div class="block">get the unassigned executors of the topology.</div> |
| </td> |
| </tr> |
| <tr id="i44" 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/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/storm/scheduler/Cluster.html#getUsedPorts-org.apache.storm.scheduler.SupervisorDetails-">getUsedPorts</a></span>(<a href="../../../../org/apache/storm/scheduler/SupervisorDetails.html" title="class in org.apache.storm.scheduler">SupervisorDetails</a> supervisor)</code> |
| <div class="block">Get all the used ports of this supervisor.</div> |
| </td> |
| </tr> |
| <tr id="i45" class="rowColor"> |
| <td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><<a href="../../../../org/apache/storm/scheduler/WorkerSlot.html" title="class in org.apache.storm.scheduler">WorkerSlot</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/storm/scheduler/Cluster.html#getUsedSlots--">getUsedSlots</a></span>()</code> |
| <div class="block">Get all currently occupied slots.</div> |
| </td> |
| </tr> |
| <tr id="i46" class="altColor"> |
| <td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><<a href="../../../../org/apache/storm/scheduler/WorkerSlot.html" title="class in org.apache.storm.scheduler">WorkerSlot</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/storm/scheduler/Cluster.html#getUsedSlotsByTopologyId-java.lang.String-">getUsedSlotsByTopologyId</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> topologyId)</code> |
| <div class="block">get slots used by a topology.</div> |
| </td> |
| </tr> |
| <tr id="i47" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/storm/generated/WorkerResources.html" title="class in org.apache.storm.generated">WorkerResources</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/storm/scheduler/Cluster.html#getWorkerResources-org.apache.storm.scheduler.WorkerSlot-">getWorkerResources</a></span>(<a href="../../../../org/apache/storm/scheduler/WorkerSlot.html" title="class in org.apache.storm.scheduler">WorkerSlot</a> ws)</code> |
| <div class="block">Get the resources for a given slot.</div> |
| </td> |
| </tr> |
| <tr id="i48" 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><<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="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="../../../../org/apache/storm/scheduler/WorkerSlot.html" title="class in org.apache.storm.scheduler">WorkerSlot</a>,<a href="../../../../org/apache/storm/generated/WorkerResources.html" title="class in org.apache.storm.generated">WorkerResources</a>>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/storm/scheduler/Cluster.html#getWorkerResourcesMap--">getWorkerResourcesMap</a></span>()</code> |
| <div class="block">Gets the reference to the full topology->worker resource map.</div> |
| </td> |
| </tr> |
| <tr id="i49" class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/storm/scheduler/Cluster.html#isBlackListed-java.lang.String-">isBlackListed</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> supervisorId)</code> |
| <div class="block">Check is a given supervisor is on a blacklisted host.</div> |
| </td> |
| </tr> |
| <tr id="i50" class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/storm/scheduler/Cluster.html#isBlacklistedHost-java.lang.String-">isBlacklistedHost</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> host)</code> |
| <div class="block">Check if a given host is blacklisted.</div> |
| </td> |
| </tr> |
| <tr id="i51" class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/storm/scheduler/Cluster.html#isSlotOccupied-org.apache.storm.scheduler.WorkerSlot-">isSlotOccupied</a></span>(<a href="../../../../org/apache/storm/scheduler/WorkerSlot.html" title="class in org.apache.storm.scheduler">WorkerSlot</a> slot)</code> |
| <div class="block">Check if a slot is occupied or not.</div> |
| </td> |
| </tr> |
| <tr id="i52" class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/storm/scheduler/Cluster.html#needsScheduling-org.apache.storm.scheduler.TopologyDetails-">needsScheduling</a></span>(<a href="../../../../org/apache/storm/scheduler/TopologyDetails.html" title="class in org.apache.storm.scheduler">TopologyDetails</a> topology)</code> |
| <div class="block">Does the topology need scheduling.</div> |
| </td> |
| </tr> |
| <tr id="i53" class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/storm/scheduler/Cluster.html#needsSchedulingRas-org.apache.storm.scheduler.TopologyDetails-">needsSchedulingRas</a></span>(<a href="../../../../org/apache/storm/scheduler/TopologyDetails.html" title="class in org.apache.storm.scheduler">TopologyDetails</a> topology)</code> |
| <div class="block">Like <a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#needsScheduling-org.apache.storm.scheduler.TopologyDetails-"><code>ISchedulingState.needsScheduling(TopologyDetails)</code></a> but does not take into account the number of workers requested.</div> |
| </td> |
| </tr> |
| <tr id="i54" class="altColor"> |
| <td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../org/apache/storm/scheduler/TopologyDetails.html" title="class in org.apache.storm.scheduler">TopologyDetails</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/storm/scheduler/Cluster.html#needsSchedulingTopologies--">needsSchedulingTopologies</a></span>()</code> |
| <div class="block">Get all of the topologies that need scheduling.</div> |
| </td> |
| </tr> |
| <tr id="i55" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/storm/scheduler/Cluster.html#setAssignments-java.util.Map-boolean-">setAssignments</a></span>(<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><<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>,? extends <a href="../../../../org/apache/storm/scheduler/SchedulerAssignment.html" title="interface in org.apache.storm.scheduler">SchedulerAssignment</a>> newAssignments, |
| boolean ignoreSingleExceptions)</code> |
| <div class="block">Set assignments for cluster.</div> |
| </td> |
| </tr> |
| <tr id="i56" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/storm/scheduler/Cluster.html#setBlacklistedHosts-java.util.Set-">setBlacklistedHosts</a></span>(<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>> hosts)</code> |
| <div class="block">Set the list of hosts that are blacklisted.</div> |
| </td> |
| </tr> |
| <tr id="i57" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/storm/scheduler/Cluster.html#setGreyListedSupervisors-java.util.Set-">setGreyListedSupervisors</a></span>(<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>> greyListedSupervisors)</code> </td> |
| </tr> |
| <tr id="i58" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/storm/scheduler/Cluster.html#setNetworkTopography-java.util.Map-">setNetworkTopography</a></span>(<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><<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="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</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>>> networkTopography)</code> </td> |
| </tr> |
| <tr id="i59" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/storm/scheduler/Cluster.html#setStatus-java.lang.String-java.lang.String-">setStatus</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> topologyId, |
| <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> statusMessage)</code> |
| <div class="block">set scheduler status for a topology.</div> |
| </td> |
| </tr> |
| <tr id="i60" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/storm/scheduler/Cluster.html#setStatus-org.apache.storm.scheduler.TopologyDetails-java.lang.String-">setStatus</a></span>(<a href="../../../../org/apache/storm/scheduler/TopologyDetails.html" title="class in org.apache.storm.scheduler">TopologyDetails</a> td, |
| <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> statusMessage)</code> |
| <div class="block">set scheduler status for a topology.</div> |
| </td> |
| </tr> |
| <tr id="i61" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/storm/scheduler/Cluster.html#setStatusIfAbsent-java.lang.String-java.lang.String-">setStatusIfAbsent</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> topologyId, |
| <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> statusMessage)</code> </td> |
| </tr> |
| <tr id="i62" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/storm/scheduler/Cluster.html#setStatusMap-java.util.Map-">setStatusMap</a></span>(<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><<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="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> statusMap)</code> |
| <div class="block">set scheduler status map.</div> |
| </td> |
| </tr> |
| <tr id="i63" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/storm/scheduler/Cluster.html#unassign-java.lang.String-">unassign</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> topoId)</code> |
| <div class="block">Unassign everything for the given topology id.</div> |
| </td> |
| </tr> |
| <tr id="i64" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/storm/scheduler/Cluster.html#updateFrom-org.apache.storm.scheduler.Cluster-">updateFrom</a></span>(<a href="../../../../org/apache/storm/scheduler/Cluster.html" title="class in org.apache.storm.scheduler">Cluster</a> other)</code> |
| <div class="block">Update the assignments and status from the other cluster.</div> |
| </td> |
| </tr> |
| <tr id="i65" class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/storm/scheduler/Cluster.html#wouldFit-org.apache.storm.scheduler.WorkerSlot-org.apache.storm.scheduler.ExecutorDetails-org.apache.storm.scheduler.TopologyDetails-org.apache.storm.scheduler.resource.normalization.NormalizedResourceOffer-double-">wouldFit</a></span>(<a href="../../../../org/apache/storm/scheduler/WorkerSlot.html" title="class in org.apache.storm.scheduler">WorkerSlot</a> ws, |
| <a href="../../../../org/apache/storm/scheduler/ExecutorDetails.html" title="class in org.apache.storm.scheduler">ExecutorDetails</a> exec, |
| <a href="../../../../org/apache/storm/scheduler/TopologyDetails.html" title="class in org.apache.storm.scheduler">TopologyDetails</a> td, |
| <a href="../../../../org/apache/storm/scheduler/resource/normalization/NormalizedResourceOffer.html" title="class in org.apache.storm.scheduler.resource.normalization">NormalizedResourceOffer</a> resourcesAvailable, |
| double maxHeap)</code> |
| <div class="block">Would scheduling exec on ws fit? With a heap <= maxHeap total memory added <= memoryAvailable and cpu added <= cpuAvailable.</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 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> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.org.apache.storm.scheduler.ISchedulingState"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from interface org.apache.storm.scheduler.<a href="../../../../org/apache/storm/scheduler/ISchedulingState.html" title="interface in org.apache.storm.scheduler">ISchedulingState</a></h3> |
| <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getAssignedRacks-java.lang.String...-">getAssignedRacks</a>, <a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getHostToRack--">getHostToRack</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="Cluster-org.apache.storm.scheduler.INimbus-org.apache.storm.scheduler.resource.normalization.ResourceMetrics-java.util.Map-java.util.Map-org.apache.storm.scheduler.Topologies-java.util.Map-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>Cluster</h4> |
| <pre>public Cluster(<a href="../../../../org/apache/storm/scheduler/INimbus.html" title="interface in org.apache.storm.scheduler">INimbus</a> nimbus, |
| <a href="../../../../org/apache/storm/scheduler/resource/normalization/ResourceMetrics.html" title="class in org.apache.storm.scheduler.resource.normalization">ResourceMetrics</a> resourceMetrics, |
| <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><<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="../../../../org/apache/storm/scheduler/SupervisorDetails.html" title="class in org.apache.storm.scheduler">SupervisorDetails</a>> supervisors, |
| <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><<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>,? extends <a href="../../../../org/apache/storm/scheduler/SchedulerAssignment.html" title="interface in org.apache.storm.scheduler">SchedulerAssignment</a>> assignments, |
| <a href="../../../../org/apache/storm/scheduler/Topologies.html" title="class in org.apache.storm.scheduler">Topologies</a> topologies, |
| <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><<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="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>> conf)</pre> |
| </li> |
| </ul> |
| <a name="Cluster-org.apache.storm.scheduler.Cluster-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>Cluster</h4> |
| <pre>public Cluster(<a href="../../../../org/apache/storm/scheduler/Cluster.html" title="class in org.apache.storm.scheduler">Cluster</a> src)</pre> |
| <div class="block"><p>Copy constructor.</p></div> |
| </li> |
| </ul> |
| <a name="Cluster-org.apache.storm.scheduler.Cluster-org.apache.storm.scheduler.Topologies-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>Cluster</h4> |
| <pre>public Cluster(<a href="../../../../org/apache/storm/scheduler/Cluster.html" title="class in org.apache.storm.scheduler">Cluster</a> src, |
| <a href="../../../../org/apache/storm/scheduler/Topologies.html" title="class in org.apache.storm.scheduler">Topologies</a> topologies)</pre> |
| <div class="block"><p>Testing Constructor that takes an existing cluster and replaces the topologies in it.</p></div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>src</code> - the original cluster</dd> |
| <dd><code>topologies</code> - the new topolgoies to use</dd> |
| </dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="getAssignedMemoryForSlot-java.util.Map-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getAssignedMemoryForSlot</h4> |
| <pre>public static double getAssignedMemoryForSlot(<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><<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="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>> topConf)</pre> |
| <div class="block"><p>Get heap memory usage for a worker’s main process and logwriter process.</p></div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>topConf</code> - <ul> |
| <li>the topology config</li> |
| </ul></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the assigned memory (in MB)</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="assertValidTopologyForModification-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>assertValidTopologyForModification</h4> |
| <pre>protected void assertValidTopologyForModification(<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> topologyId)</pre> |
| <div class="block"><p>Check if the given topology is allowed for modification right now. If not throw an IllegalArgumentException else go on.</p></div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>topologyId</code> - the id of the topology to check</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getTopologies--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getTopologies</h4> |
| <pre>public <a href="../../../../org/apache/storm/scheduler/Topologies.html" title="class in org.apache.storm.scheduler">Topologies</a> getTopologies()</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getTopologies--">ISchedulingState</a></code></span></div> |
| <div class="block"><p>Get all of the topologies.</p></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getTopologies--">getTopologies</a></code> in interface <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html" title="interface in org.apache.storm.scheduler">ISchedulingState</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>all of the topologies that are a part of the cluster.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getBlacklistedHosts--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getBlacklistedHosts</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>> getBlacklistedHosts()</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getBlacklistedHosts--">ISchedulingState</a></code></span></div> |
| <div class="block"><p>Get all of the hosts that are blacklisted.</p></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getBlacklistedHosts--">getBlacklistedHosts</a></code> in interface <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html" title="interface in org.apache.storm.scheduler">ISchedulingState</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>all of the hosts that are blacklisted</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setBlacklistedHosts-java.util.Set-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setBlacklistedHosts</h4> |
| <pre>public void setBlacklistedHosts(<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>> hosts)</pre> |
| <div class="block"><p>Set the list of hosts that are blacklisted.</p></div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>hosts</code> - the new hosts that are blacklisted.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="blacklistHost-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>blacklistHost</h4> |
| <pre>public void blacklistHost(<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> host)</pre> |
| </li> |
| </ul> |
| <a name="isBlackListed-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isBlackListed</h4> |
| <pre>public boolean isBlackListed(<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> supervisorId)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#isBlackListed-java.lang.String-">ISchedulingState</a></code></span></div> |
| <div class="block"><p>Check is a given supervisor is on a blacklisted host.</p></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#isBlackListed-java.lang.String-">isBlackListed</a></code> in interface <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html" title="interface in org.apache.storm.scheduler">ISchedulingState</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>supervisorId</code> - the id of the supervisor</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>true if it is else false</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="isBlacklistedHost-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isBlacklistedHost</h4> |
| <pre>public boolean isBlacklistedHost(<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> host)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#isBlacklistedHost-java.lang.String-">ISchedulingState</a></code></span></div> |
| <div class="block"><p>Check if a given host is blacklisted.</p></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#isBlacklistedHost-java.lang.String-">isBlacklistedHost</a></code> in interface <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html" title="interface in org.apache.storm.scheduler">ISchedulingState</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>host</code> - the name of the host</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>true if it is else false.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getHost-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getHost</h4> |
| <pre>public <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> getHost(<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> supervisorId)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getHost-java.lang.String-">ISchedulingState</a></code></span></div> |
| <div class="block"><p>Map a supervisor to a given host.</p></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getHost-java.lang.String-">getHost</a></code> in interface <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html" title="interface in org.apache.storm.scheduler">ISchedulingState</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>supervisorId</code> - the id of the supervisor</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the actual host name the supervisor is on</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="needsSchedulingTopologies--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>needsSchedulingTopologies</h4> |
| <pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../org/apache/storm/scheduler/TopologyDetails.html" title="class in org.apache.storm.scheduler">TopologyDetails</a>> needsSchedulingTopologies()</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#needsSchedulingTopologies--">ISchedulingState</a></code></span></div> |
| <div class="block"><p>Get all of the topologies that need scheduling.</p></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#needsSchedulingTopologies--">needsSchedulingTopologies</a></code> in interface <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html" title="interface in org.apache.storm.scheduler">ISchedulingState</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>all of the topologies that are not fully scheduled.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="needsScheduling-org.apache.storm.scheduler.TopologyDetails-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>needsScheduling</h4> |
| <pre>public boolean needsScheduling(<a href="../../../../org/apache/storm/scheduler/TopologyDetails.html" title="class in org.apache.storm.scheduler">TopologyDetails</a> topology)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#needsScheduling-org.apache.storm.scheduler.TopologyDetails-">ISchedulingState</a></code></span></div> |
| <div class="block"><p>Does the topology need scheduling.</p><p><p>A topology needs scheduling if one of the following conditions holds:</p> |
| <ul> |
| <li>Although the topology is assigned slots, but is squeezed. i.e. the topology is assigned |
| less slots than desired. |
| <li>There are unassigned executors in this topology |
| </ul></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#needsScheduling-org.apache.storm.scheduler.TopologyDetails-">needsScheduling</a></code> in interface <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html" title="interface in org.apache.storm.scheduler">ISchedulingState</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="needsSchedulingRas-org.apache.storm.scheduler.TopologyDetails-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>needsSchedulingRas</h4> |
| <pre>public boolean needsSchedulingRas(<a href="../../../../org/apache/storm/scheduler/TopologyDetails.html" title="class in org.apache.storm.scheduler">TopologyDetails</a> topology)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#needsSchedulingRas-org.apache.storm.scheduler.TopologyDetails-">ISchedulingState</a></code></span></div> |
| <div class="block"><p>Like <a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#needsScheduling-org.apache.storm.scheduler.TopologyDetails-"><code>ISchedulingState.needsScheduling(TopologyDetails)</code></a> but does not take into account the number of workers requested. This is because the number of workers is ignored in RAS</p></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#needsSchedulingRas-org.apache.storm.scheduler.TopologyDetails-">needsSchedulingRas</a></code> in interface <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html" title="interface in org.apache.storm.scheduler">ISchedulingState</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>topology</code> - the topology to check</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>true if the topology needs scheduling else false.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getNeedsSchedulingExecutorToComponents-org.apache.storm.scheduler.TopologyDetails-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getNeedsSchedulingExecutorToComponents</h4> |
| <pre>public <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><<a href="../../../../org/apache/storm/scheduler/ExecutorDetails.html" title="class in org.apache.storm.scheduler">ExecutorDetails</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>> getNeedsSchedulingExecutorToComponents(<a href="../../../../org/apache/storm/scheduler/TopologyDetails.html" title="class in org.apache.storm.scheduler">TopologyDetails</a> topology)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getNeedsSchedulingExecutorToComponents-org.apache.storm.scheduler.TopologyDetails-">ISchedulingState</a></code></span></div> |
| <div class="block"><p>Get the executor to component name map for executors that need to be scheduled.</p></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getNeedsSchedulingExecutorToComponents-org.apache.storm.scheduler.TopologyDetails-">getNeedsSchedulingExecutorToComponents</a></code> in interface <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html" title="interface in org.apache.storm.scheduler">ISchedulingState</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>topology</code> - the topology this is for</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a executor -> component-id map which needs scheduling in this topology.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getNeedsSchedulingComponentToExecutors-org.apache.storm.scheduler.TopologyDetails-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getNeedsSchedulingComponentToExecutors</h4> |
| <pre>public <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><<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="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../org/apache/storm/scheduler/ExecutorDetails.html" title="class in org.apache.storm.scheduler">ExecutorDetails</a>>> getNeedsSchedulingComponentToExecutors(<a href="../../../../org/apache/storm/scheduler/TopologyDetails.html" title="class in org.apache.storm.scheduler">TopologyDetails</a> topology)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getNeedsSchedulingComponentToExecutors-org.apache.storm.scheduler.TopologyDetails-">ISchedulingState</a></code></span></div> |
| <div class="block"><p>Get the component name to executor list for executors that need to be scheduled.</p></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getNeedsSchedulingComponentToExecutors-org.apache.storm.scheduler.TopologyDetails-">getNeedsSchedulingComponentToExecutors</a></code> in interface <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html" title="interface in org.apache.storm.scheduler">ISchedulingState</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>topology</code> - the topology this is for</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a component-id -> executors map which needs scheduling in this topology.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getUsedPorts-org.apache.storm.scheduler.SupervisorDetails-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getUsedPorts</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/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>> getUsedPorts(<a href="../../../../org/apache/storm/scheduler/SupervisorDetails.html" title="class in org.apache.storm.scheduler">SupervisorDetails</a> supervisor)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getUsedPorts-org.apache.storm.scheduler.SupervisorDetails-">ISchedulingState</a></code></span></div> |
| <div class="block"><p>Get all the used ports of this supervisor.</p></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getUsedPorts-org.apache.storm.scheduler.SupervisorDetails-">getUsedPorts</a></code> in interface <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html" title="interface in org.apache.storm.scheduler">ISchedulingState</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getAvailablePorts-org.apache.storm.scheduler.SupervisorDetails-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getAvailablePorts</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/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>> getAvailablePorts(<a href="../../../../org/apache/storm/scheduler/SupervisorDetails.html" title="class in org.apache.storm.scheduler">SupervisorDetails</a> supervisor)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getAvailablePorts-org.apache.storm.scheduler.SupervisorDetails-">ISchedulingState</a></code></span></div> |
| <div class="block"><p>Return the available ports of this supervisor.</p></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getAvailablePorts-org.apache.storm.scheduler.SupervisorDetails-">getAvailablePorts</a></code> in interface <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html" title="interface in org.apache.storm.scheduler">ISchedulingState</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getAssignablePorts-org.apache.storm.scheduler.SupervisorDetails-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getAssignablePorts</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/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>> getAssignablePorts(<a href="../../../../org/apache/storm/scheduler/SupervisorDetails.html" title="class in org.apache.storm.scheduler">SupervisorDetails</a> supervisor)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getAssignablePorts-org.apache.storm.scheduler.SupervisorDetails-">ISchedulingState</a></code></span></div> |
| <div class="block"><p>Get the ports that are not blacklisted.</p></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getAssignablePorts-org.apache.storm.scheduler.SupervisorDetails-">getAssignablePorts</a></code> in interface <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html" title="interface in org.apache.storm.scheduler">ISchedulingState</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>supervisor</code> - the supervisor</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the ports that are not blacklisted</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getNonBlacklistedAvailableSlots-java.util.List-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getNonBlacklistedAvailableSlots</h4> |
| <pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../org/apache/storm/scheduler/WorkerSlot.html" title="class in org.apache.storm.scheduler">WorkerSlot</a>> getNonBlacklistedAvailableSlots(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</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>> blacklistedSupervisorIds)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getNonBlacklistedAvailableSlots-java.util.List-">ISchedulingState</a></code></span></div> |
| <div class="block"><p>Get all the available worker slots in the cluster, that are not blacklisted.</p></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getNonBlacklistedAvailableSlots-java.util.List-">getNonBlacklistedAvailableSlots</a></code> in interface <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html" title="interface in org.apache.storm.scheduler">ISchedulingState</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>blacklistedSupervisorIds</code> - list of supervisor ids that should also be considered blacklisted.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getAvailableSlots--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getAvailableSlots</h4> |
| <pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../org/apache/storm/scheduler/WorkerSlot.html" title="class in org.apache.storm.scheduler">WorkerSlot</a>> getAvailableSlots()</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getAvailableSlots--">ISchedulingState</a></code></span></div> |
| <div class="block"><p>Get all the available worker slots in the cluster.</p></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getAvailableSlots--">getAvailableSlots</a></code> in interface <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html" title="interface in org.apache.storm.scheduler">ISchedulingState</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getAvailableSlots-org.apache.storm.scheduler.SupervisorDetails-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getAvailableSlots</h4> |
| <pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../org/apache/storm/scheduler/WorkerSlot.html" title="class in org.apache.storm.scheduler">WorkerSlot</a>> getAvailableSlots(<a href="../../../../org/apache/storm/scheduler/SupervisorDetails.html" title="class in org.apache.storm.scheduler">SupervisorDetails</a> supervisor)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getAvailableSlots-org.apache.storm.scheduler.SupervisorDetails-">ISchedulingState</a></code></span></div> |
| <div class="block"><p>Return all the available slots on this supervisor.</p></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getAvailableSlots-org.apache.storm.scheduler.SupervisorDetails-">getAvailableSlots</a></code> in interface <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html" title="interface in org.apache.storm.scheduler">ISchedulingState</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getAssignableSlots-org.apache.storm.scheduler.SupervisorDetails-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getAssignableSlots</h4> |
| <pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../org/apache/storm/scheduler/WorkerSlot.html" title="class in org.apache.storm.scheduler">WorkerSlot</a>> getAssignableSlots(<a href="../../../../org/apache/storm/scheduler/SupervisorDetails.html" title="class in org.apache.storm.scheduler">SupervisorDetails</a> supervisor)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getAssignableSlots-org.apache.storm.scheduler.SupervisorDetails-">ISchedulingState</a></code></span></div> |
| <div class="block"><p>Return all non-blacklisted slots on this supervisor.</p></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getAssignableSlots-org.apache.storm.scheduler.SupervisorDetails-">getAssignableSlots</a></code> in interface <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html" title="interface in org.apache.storm.scheduler">ISchedulingState</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>supervisor</code> - the supervisor</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the non-blacklisted slots</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getAssignableSlots--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getAssignableSlots</h4> |
| <pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../org/apache/storm/scheduler/WorkerSlot.html" title="class in org.apache.storm.scheduler">WorkerSlot</a>> getAssignableSlots()</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getAssignableSlots--">ISchedulingState</a></code></span></div> |
| <div class="block"><p>Get all non-blacklisted slots in the cluster.</p></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getAssignableSlots--">getAssignableSlots</a></code> in interface <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html" title="interface in org.apache.storm.scheduler">ISchedulingState</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getUnassignedExecutors-org.apache.storm.scheduler.TopologyDetails-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getUnassignedExecutors</h4> |
| <pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><<a href="../../../../org/apache/storm/scheduler/ExecutorDetails.html" title="class in org.apache.storm.scheduler">ExecutorDetails</a>> getUnassignedExecutors(<a href="../../../../org/apache/storm/scheduler/TopologyDetails.html" title="class in org.apache.storm.scheduler">TopologyDetails</a> topology)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getUnassignedExecutors-org.apache.storm.scheduler.TopologyDetails-">ISchedulingState</a></code></span></div> |
| <div class="block"><p>get the unassigned executors of the topology.</p></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getUnassignedExecutors-org.apache.storm.scheduler.TopologyDetails-">getUnassignedExecutors</a></code> in interface <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html" title="interface in org.apache.storm.scheduler">ISchedulingState</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>topology</code> - the topology to check</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the unassigned executors of the topology.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getAssignedNumWorkers-org.apache.storm.scheduler.TopologyDetails-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getAssignedNumWorkers</h4> |
| <pre>public int getAssignedNumWorkers(<a href="../../../../org/apache/storm/scheduler/TopologyDetails.html" title="class in org.apache.storm.scheduler">TopologyDetails</a> topology)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getAssignedNumWorkers-org.apache.storm.scheduler.TopologyDetails-">ISchedulingState</a></code></span></div> |
| <div class="block"><p>Get the number of workers assigned to a topology.</p></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getAssignedNumWorkers-org.apache.storm.scheduler.TopologyDetails-">getAssignedNumWorkers</a></code> in interface <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html" title="interface in org.apache.storm.scheduler">ISchedulingState</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>topology</code> - the topology this is for</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the number of workers assigned to this topology.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getAvailableResources-org.apache.storm.scheduler.SupervisorDetails-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getAvailableResources</h4> |
| <pre>public <a href="../../../../org/apache/storm/scheduler/resource/normalization/NormalizedResourceOffer.html" title="class in org.apache.storm.scheduler.resource.normalization">NormalizedResourceOffer</a> getAvailableResources(<a href="../../../../org/apache/storm/scheduler/SupervisorDetails.html" title="class in org.apache.storm.scheduler">SupervisorDetails</a> sd)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getAvailableResources-org.apache.storm.scheduler.SupervisorDetails-">ISchedulingState</a></code></span></div> |
| <div class="block"><p>Get the resources on the supervisor that are available to be scheduled.</p></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getAvailableResources-org.apache.storm.scheduler.SupervisorDetails-">getAvailableResources</a></code> in interface <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html" title="interface in org.apache.storm.scheduler">ISchedulingState</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>sd</code> - the supervisor.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the resources available to be scheduled.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="wouldFit-org.apache.storm.scheduler.WorkerSlot-org.apache.storm.scheduler.ExecutorDetails-org.apache.storm.scheduler.TopologyDetails-org.apache.storm.scheduler.resource.normalization.NormalizedResourceOffer-double-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>wouldFit</h4> |
| <pre>public boolean wouldFit(<a href="../../../../org/apache/storm/scheduler/WorkerSlot.html" title="class in org.apache.storm.scheduler">WorkerSlot</a> ws, |
| <a href="../../../../org/apache/storm/scheduler/ExecutorDetails.html" title="class in org.apache.storm.scheduler">ExecutorDetails</a> exec, |
| <a href="../../../../org/apache/storm/scheduler/TopologyDetails.html" title="class in org.apache.storm.scheduler">TopologyDetails</a> td, |
| <a href="../../../../org/apache/storm/scheduler/resource/normalization/NormalizedResourceOffer.html" title="class in org.apache.storm.scheduler.resource.normalization">NormalizedResourceOffer</a> resourcesAvailable, |
| double maxHeap)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#wouldFit-org.apache.storm.scheduler.WorkerSlot-org.apache.storm.scheduler.ExecutorDetails-org.apache.storm.scheduler.TopologyDetails-org.apache.storm.scheduler.resource.normalization.NormalizedResourceOffer-double-">ISchedulingState</a></code></span></div> |
| <div class="block"><p>Would scheduling exec on ws fit? With a heap <= maxHeap total memory added <= memoryAvailable and cpu added <= cpuAvailable.</p></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#wouldFit-org.apache.storm.scheduler.WorkerSlot-org.apache.storm.scheduler.ExecutorDetails-org.apache.storm.scheduler.TopologyDetails-org.apache.storm.scheduler.resource.normalization.NormalizedResourceOffer-double-">wouldFit</a></code> in interface <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html" title="interface in org.apache.storm.scheduler">ISchedulingState</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>ws</code> - the slot to put it in</dd> |
| <dd><code>exec</code> - the executor to investigate</dd> |
| <dd><code>td</code> - the topology detains for this executor</dd> |
| <dd><code>resourcesAvailable</code> - all the available resources</dd> |
| <dd><code>maxHeap</code> - the maximum heap size for ws</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>true it fits else false</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="assign-org.apache.storm.scheduler.WorkerSlot-java.lang.String-java.util.Collection-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>assign</h4> |
| <pre>public void assign(<a href="../../../../org/apache/storm/scheduler/WorkerSlot.html" title="class in org.apache.storm.scheduler">WorkerSlot</a> slot, |
| <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> topologyId, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><<a href="../../../../org/apache/storm/scheduler/ExecutorDetails.html" title="class in org.apache.storm.scheduler">ExecutorDetails</a>> executors)</pre> |
| <div class="block"><p>Assign the slot to the executors for this topology.</p></div> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/RuntimeException.html?is-external=true" title="class or interface in java.lang">RuntimeException</a></code> - if the specified slot is already occupied.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="assign-org.apache.storm.scheduler.SchedulerAssignment-boolean-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>assign</h4> |
| <pre>public void assign(<a href="../../../../org/apache/storm/scheduler/SchedulerAssignment.html" title="interface in org.apache.storm.scheduler">SchedulerAssignment</a> assignment, |
| boolean ignoreSingleExceptions)</pre> |
| <div class="block"><p>Assign everything for the given topology.</p></div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>assignment</code> - the new assignment to make</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="freeSlot-org.apache.storm.scheduler.WorkerSlot-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>freeSlot</h4> |
| <pre>public void freeSlot(<a href="../../../../org/apache/storm/scheduler/WorkerSlot.html" title="class in org.apache.storm.scheduler">WorkerSlot</a> slot)</pre> |
| <div class="block"><p>Free the specified slot.</p></div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>slot</code> - the slot to free</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="freeSlots-java.util.Collection-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>freeSlots</h4> |
| <pre>public void freeSlots(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><<a href="../../../../org/apache/storm/scheduler/WorkerSlot.html" title="class in org.apache.storm.scheduler">WorkerSlot</a>> slots)</pre> |
| <div class="block"><p>free the slots.</p></div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>slots</code> - multiple slots to free</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="isSlotOccupied-org.apache.storm.scheduler.WorkerSlot-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isSlotOccupied</h4> |
| <pre>public boolean isSlotOccupied(<a href="../../../../org/apache/storm/scheduler/WorkerSlot.html" title="class in org.apache.storm.scheduler">WorkerSlot</a> slot)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#isSlotOccupied-org.apache.storm.scheduler.WorkerSlot-">ISchedulingState</a></code></span></div> |
| <div class="block"><p>Check if a slot is occupied or not.</p></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#isSlotOccupied-org.apache.storm.scheduler.WorkerSlot-">isSlotOccupied</a></code> in interface <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html" title="interface in org.apache.storm.scheduler">ISchedulingState</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>slot</code> - the slot be to checked.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>true if the specified slot is occupied.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getAssignmentById-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getAssignmentById</h4> |
| <pre>public <a href="../../../../org/apache/storm/scheduler/SchedulerAssignment.html" title="interface in org.apache.storm.scheduler">SchedulerAssignment</a> getAssignmentById(<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> topologyId)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getAssignmentById-java.lang.String-">ISchedulingState</a></code></span></div> |
| <div class="block"><p>get the current assignment for the topology.</p></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getAssignmentById-java.lang.String-">getAssignmentById</a></code> in interface <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html" title="interface in org.apache.storm.scheduler">ISchedulingState</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getUsedSlotsByTopologyId-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getUsedSlotsByTopologyId</h4> |
| <pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><<a href="../../../../org/apache/storm/scheduler/WorkerSlot.html" title="class in org.apache.storm.scheduler">WorkerSlot</a>> getUsedSlotsByTopologyId(<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> topologyId)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getUsedSlotsByTopologyId-java.lang.String-">ISchedulingState</a></code></span></div> |
| <div class="block"><p>get slots used by a topology.</p></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getUsedSlotsByTopologyId-java.lang.String-">getUsedSlotsByTopologyId</a></code> in interface <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html" title="interface in org.apache.storm.scheduler">ISchedulingState</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getSupervisorById-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getSupervisorById</h4> |
| <pre>public <a href="../../../../org/apache/storm/scheduler/SupervisorDetails.html" title="class in org.apache.storm.scheduler">SupervisorDetails</a> getSupervisorById(<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> nodeId)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getSupervisorById-java.lang.String-">ISchedulingState</a></code></span></div> |
| <div class="block"><p>Get a specific supervisor with the <code>nodeId</code>.</p></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getSupervisorById-java.lang.String-">getSupervisorById</a></code> in interface <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html" title="interface in org.apache.storm.scheduler">ISchedulingState</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getUsedSlots--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getUsedSlots</h4> |
| <pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><<a href="../../../../org/apache/storm/scheduler/WorkerSlot.html" title="class in org.apache.storm.scheduler">WorkerSlot</a>> getUsedSlots()</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getUsedSlots--">ISchedulingState</a></code></span></div> |
| <div class="block"><p>Get all currently occupied slots.</p></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getUsedSlots--">getUsedSlots</a></code> in interface <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html" title="interface in org.apache.storm.scheduler">ISchedulingState</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getSupervisorsByHost-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getSupervisorsByHost</h4> |
| <pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../org/apache/storm/scheduler/SupervisorDetails.html" title="class in org.apache.storm.scheduler">SupervisorDetails</a>> getSupervisorsByHost(<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> host)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getSupervisorsByHost-java.lang.String-">ISchedulingState</a></code></span></div> |
| <div class="block"><p>Get all the supervisors on the specified <code>host</code>.</p></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getSupervisorsByHost-java.lang.String-">getSupervisorsByHost</a></code> in interface <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html" title="interface in org.apache.storm.scheduler">ISchedulingState</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>host</code> - hostname of the supervisor</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the <code>SupervisorDetails</code> object.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getAssignments--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getAssignments</h4> |
| <pre>public <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><<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="../../../../org/apache/storm/scheduler/SchedulerAssignment.html" title="interface in org.apache.storm.scheduler">SchedulerAssignment</a>> getAssignments()</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getAssignments--">ISchedulingState</a></code></span></div> |
| <div class="block"><p>Get all the assignments.</p></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getAssignments--">getAssignments</a></code> in interface <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html" title="interface in org.apache.storm.scheduler">ISchedulingState</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setAssignments-java.util.Map-boolean-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setAssignments</h4> |
| <pre>public void setAssignments(<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><<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>,? extends <a href="../../../../org/apache/storm/scheduler/SchedulerAssignment.html" title="interface in org.apache.storm.scheduler">SchedulerAssignment</a>> newAssignments, |
| boolean ignoreSingleExceptions)</pre> |
| <div class="block"><p>Set assignments for cluster.</p></div> |
| </li> |
| </ul> |
| <a name="getSupervisors--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getSupervisors</h4> |
| <pre>public <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><<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="../../../../org/apache/storm/scheduler/SupervisorDetails.html" title="class in org.apache.storm.scheduler">SupervisorDetails</a>> getSupervisors()</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getSupervisors--">ISchedulingState</a></code></span></div> |
| <div class="block"><p>Get all the supervisors.</p></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getSupervisors--">getSupervisors</a></code> in interface <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html" title="interface in org.apache.storm.scheduler">ISchedulingState</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getNonBlacklistedClusterAvailableResources-java.util.Collection-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getNonBlacklistedClusterAvailableResources</h4> |
| <pre>public <a href="../../../../org/apache/storm/scheduler/resource/normalization/NormalizedResourceOffer.html" title="class in org.apache.storm.scheduler.resource.normalization">NormalizedResourceOffer</a> getNonBlacklistedClusterAvailableResources(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</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>> blacklistedSupervisorIds)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getNonBlacklistedClusterAvailableResources-java.util.Collection-">ISchedulingState</a></code></span></div> |
| <div class="block"><p>Get the resources in the cluster that are available for scheduling.</p></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getNonBlacklistedClusterAvailableResources-java.util.Collection-">getNonBlacklistedClusterAvailableResources</a></code> in interface <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html" title="interface in org.apache.storm.scheduler">ISchedulingState</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>blacklistedSupervisorIds</code> - other ids that are tentatively blacklisted.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getClusterTotalCpuResource--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getClusterTotalCpuResource</h4> |
| <pre>public double getClusterTotalCpuResource()</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getClusterTotalCpuResource--">ISchedulingState</a></code></span></div> |
| <div class="block"><p>Get the total amount of CPU resources in cluster.</p></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getClusterTotalCpuResource--">getClusterTotalCpuResource</a></code> in interface <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html" title="interface in org.apache.storm.scheduler">ISchedulingState</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getClusterTotalMemoryResource--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getClusterTotalMemoryResource</h4> |
| <pre>public double getClusterTotalMemoryResource()</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getClusterTotalMemoryResource--">ISchedulingState</a></code></span></div> |
| <div class="block"><p>Get the total amount of memory resources in cluster.</p></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getClusterTotalMemoryResource--">getClusterTotalMemoryResource</a></code> in interface <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html" title="interface in org.apache.storm.scheduler">ISchedulingState</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getClusterTotalGenericResources--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getClusterTotalGenericResources</h4> |
| <pre>public <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><<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="https://docs.oracle.com/javase/8/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</a>> getClusterTotalGenericResources()</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getClusterTotalGenericResources--">ISchedulingState</a></code></span></div> |
| <div class="block"><p>Get the total amount of generic resources (excluding CPU and memory) in cluster.</p></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getClusterTotalGenericResources--">getClusterTotalGenericResources</a></code> in interface <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html" title="interface in org.apache.storm.scheduler">ISchedulingState</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getNetworkTopography--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getNetworkTopography</h4> |
| <pre>public <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><<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="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</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>>> getNetworkTopography()</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getNetworkTopography--">ISchedulingState</a></code></span></div> |
| <div class="block"><p>Get the network topography (rackId -> nodes in the rack).</p></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getNetworkTopography--">getNetworkTopography</a></code> in interface <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html" title="interface in org.apache.storm.scheduler">ISchedulingState</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setNetworkTopography-java.util.Map-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setNetworkTopography</h4> |
| <pre>public void setNetworkTopography(<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><<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="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</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>>> networkTopography)</pre> |
| </li> |
| </ul> |
| <a name="setStatus-org.apache.storm.scheduler.TopologyDetails-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setStatus</h4> |
| <pre>public void setStatus(<a href="../../../../org/apache/storm/scheduler/TopologyDetails.html" title="class in org.apache.storm.scheduler">TopologyDetails</a> td, |
| <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> statusMessage)</pre> |
| <div class="block"><p>set scheduler status for a topology.</p></div> |
| </li> |
| </ul> |
| <a name="setStatus-java.lang.String-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setStatus</h4> |
| <pre>public void setStatus(<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> topologyId, |
| <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> statusMessage)</pre> |
| <div class="block"><p>set scheduler status for a topology.</p></div> |
| </li> |
| </ul> |
| <a name="setStatusIfAbsent-java.lang.String-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setStatusIfAbsent</h4> |
| <pre>public void setStatusIfAbsent(<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> topologyId, |
| <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> statusMessage)</pre> |
| </li> |
| </ul> |
| <a name="getStatusMap--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getStatusMap</h4> |
| <pre>public <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><<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="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> getStatusMap()</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getStatusMap--">ISchedulingState</a></code></span></div> |
| <div class="block"><p>Get all topology scheduler statuses.</p></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getStatusMap--">getStatusMap</a></code> in interface <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html" title="interface in org.apache.storm.scheduler">ISchedulingState</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setStatusMap-java.util.Map-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setStatusMap</h4> |
| <pre>public void setStatusMap(<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><<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="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> statusMap)</pre> |
| <div class="block"><p>set scheduler status map.</p></div> |
| </li> |
| </ul> |
| <a name="getStatus-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getStatus</h4> |
| <pre>public <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> getStatus(<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> topoId)</pre> |
| </li> |
| </ul> |
| <a name="getTopologyResourcesMap--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getTopologyResourcesMap</h4> |
| <pre>public <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><<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="../../../../org/apache/storm/daemon/nimbus/TopologyResources.html" title="class in org.apache.storm.daemon.nimbus">TopologyResources</a>> getTopologyResourcesMap()</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getTopologyResourcesMap--">ISchedulingState</a></code></span></div> |
| <div class="block"><p>Get the amount of resources used by topologies. Used for displaying resource information on the UI.</p></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getTopologyResourcesMap--">getTopologyResourcesMap</a></code> in interface <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html" title="interface in org.apache.storm.scheduler">ISchedulingState</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a map that contains multiple topologies and the resources the topology requested and assigned. Key: topology id Value: an array that describes the resources the topology requested and assigned in the following format: {requestedMemOnHeap, requestedMemOffHeap, requestedCpu, assignedMemOnHeap, assignedMemOffHeap, assignedCpu}</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getSupervisorsResourcesMap--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getSupervisorsResourcesMap</h4> |
| <pre>public <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><<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="../../../../org/apache/storm/scheduler/SupervisorResources.html" title="class in org.apache.storm.scheduler">SupervisorResources</a>> getSupervisorsResourcesMap()</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getSupervisorsResourcesMap--">ISchedulingState</a></code></span></div> |
| <div class="block"><p>Get the amount of used and free resources on a supervisor. Used for displaying resource information on the UI</p></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getSupervisorsResourcesMap--">getSupervisorsResourcesMap</a></code> in interface <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html" title="interface in org.apache.storm.scheduler">ISchedulingState</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a map where the key is the supervisor id and the value is a map that represents resource usage for a supervisor in the following format: {totalMem, totalCpu, usedMem, usedCpu}</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getWorkerResourcesMap--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getWorkerResourcesMap</h4> |
| <pre>public <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><<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="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="../../../../org/apache/storm/scheduler/WorkerSlot.html" title="class in org.apache.storm.scheduler">WorkerSlot</a>,<a href="../../../../org/apache/storm/generated/WorkerResources.html" title="class in org.apache.storm.generated">WorkerResources</a>>> getWorkerResourcesMap()</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getWorkerResourcesMap--">ISchedulingState</a></code></span></div> |
| <div class="block"><p>Gets the reference to the full topology->worker resource map.</p></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getWorkerResourcesMap--">getWorkerResourcesMap</a></code> in interface <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html" title="interface in org.apache.storm.scheduler">ISchedulingState</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>map of topology -> map of worker slot ->resources for that worker</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getWorkerResources-org.apache.storm.scheduler.WorkerSlot-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getWorkerResources</h4> |
| <pre>public <a href="../../../../org/apache/storm/generated/WorkerResources.html" title="class in org.apache.storm.generated">WorkerResources</a> getWorkerResources(<a href="../../../../org/apache/storm/scheduler/WorkerSlot.html" title="class in org.apache.storm.scheduler">WorkerSlot</a> ws)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getWorkerResources-org.apache.storm.scheduler.WorkerSlot-">ISchedulingState</a></code></span></div> |
| <div class="block"><p>Get the resources for a given slot.</p></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getWorkerResources-org.apache.storm.scheduler.WorkerSlot-">getWorkerResources</a></code> in interface <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html" title="interface in org.apache.storm.scheduler">ISchedulingState</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>ws</code> - the slot</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the resources currently assigned</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getResourceMetrics--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getResourceMetrics</h4> |
| <pre>public <a href="../../../../org/apache/storm/scheduler/resource/normalization/ResourceMetrics.html" title="class in org.apache.storm.scheduler.resource.normalization">ResourceMetrics</a> getResourceMetrics()</pre> |
| </li> |
| </ul> |
| <a name="getAllScheduledResourcesForNode-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getAllScheduledResourcesForNode</h4> |
| <pre>public <a href="../../../../org/apache/storm/scheduler/resource/normalization/NormalizedResourceRequest.html" title="class in org.apache.storm.scheduler.resource.normalization">NormalizedResourceRequest</a> getAllScheduledResourcesForNode(<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> nodeId)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getAllScheduledResourcesForNode-java.lang.String-">ISchedulingState</a></code></span></div> |
| <div class="block"><p>Get all scheduled resources for node.</p></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getAllScheduledResourcesForNode-java.lang.String-">getAllScheduledResourcesForNode</a></code> in interface <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html" title="interface in org.apache.storm.scheduler">ISchedulingState</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getScheduledMemoryForNode-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getScheduledMemoryForNode</h4> |
| <pre>public double getScheduledMemoryForNode(<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> nodeId)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getScheduledMemoryForNode-java.lang.String-">ISchedulingState</a></code></span></div> |
| <div class="block"><p>Get the total memory currently scheduled on a node.</p></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getScheduledMemoryForNode-java.lang.String-">getScheduledMemoryForNode</a></code> in interface <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html" title="interface in org.apache.storm.scheduler">ISchedulingState</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>nodeId</code> - the id of the node</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the total memory currently scheduled on the node</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getScheduledCpuForNode-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getScheduledCpuForNode</h4> |
| <pre>public double getScheduledCpuForNode(<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> nodeId)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getScheduledCpuForNode-java.lang.String-">ISchedulingState</a></code></span></div> |
| <div class="block"><p>Get the total cpu currently scheduled on a node.</p></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getScheduledCpuForNode-java.lang.String-">getScheduledCpuForNode</a></code> in interface <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html" title="interface in org.apache.storm.scheduler">ISchedulingState</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>nodeId</code> - the id of the node</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the total cpu currently scheduled on the node</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getINimbus--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getINimbus</h4> |
| <pre>public <a href="../../../../org/apache/storm/scheduler/INimbus.html" title="interface in org.apache.storm.scheduler">INimbus</a> getINimbus()</pre> |
| </li> |
| </ul> |
| <a name="getConf--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getConf</h4> |
| <pre>public <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><<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="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>> getConf()</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getConf--">ISchedulingState</a></code></span></div> |
| <div class="block"><p>Get the nimbus configuration.</p></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html#getConf--">getConf</a></code> in interface <code><a href="../../../../org/apache/storm/scheduler/ISchedulingState.html" title="interface in org.apache.storm.scheduler">ISchedulingState</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="unassign-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>unassign</h4> |
| <pre>public void unassign(<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> topoId)</pre> |
| <div class="block"><p>Unassign everything for the given topology id.</p></div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>topoId</code> - the is of the topology to unassign</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="updateFrom-org.apache.storm.scheduler.Cluster-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>updateFrom</h4> |
| <pre>public void updateFrom(<a href="../../../../org/apache/storm/scheduler/Cluster.html" title="class in org.apache.storm.scheduler">Cluster</a> other)</pre> |
| <div class="block"><p>Update the assignments and status from the other cluster.</p></div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>other</code> - the cluster to get the assignments and status from</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getMinWorkerCpu--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getMinWorkerCpu</h4> |
| <pre>public double getMinWorkerCpu()</pre> |
| </li> |
| </ul> |
| <a name="getGreyListedSupervisors--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getGreyListedSupervisors</h4> |
| <pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</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>> getGreyListedSupervisors()</pre> |
| </li> |
| </ul> |
| <a name="setGreyListedSupervisors-java.util.Set-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>setGreyListedSupervisors</h4> |
| <pre>public void setGreyListedSupervisors(<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>> greyListedSupervisors)</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/Cluster.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../help-doc.html">Help</a></li> |
| </ul> |
| <div class="aboutLanguage"><script type="text/javascript" src="../../../../highlight.pack.js"></script> |
| <script type="text/javascript"><!-- |
| hljs.initHighlightingOnLoad(); |
| //--></script></div> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li>Prev Class</li> |
| <li><a href="../../../../org/apache/storm/scheduler/Component.html" title="class in org.apache.storm.scheduler"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../index.html?org/apache/storm/scheduler/Cluster.html" target="_top">Frames</a></li> |
| <li><a href="Cluster.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li>Field | </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 name="skip.navbar.bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| <p class="legalCopy"><small>Copyright © 2021 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p> |
| </body> |
| </html> |