Published site at d5aaeee88b331e064830a2774f4fed238631457c.
[hbase-site.git] / devapidocs / org / apache / hadoop / hbase / rsgroup / RSGroupBasedLoadBalancer.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <!-- NewPage -->
3 <html lang="en">
4 <head>
5 <!-- Generated by javadoc -->
6 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
7 <title>RSGroupBasedLoadBalancer (Apache HBase 3.0.0-SNAPSHOT API)</title>
8 <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
9 <script type="text/javascript" src="../../../../../script.js"></script>
10 </head>
11 <body>
12 <script type="text/javascript"><!--
13 try {
14 if (location.href.indexOf('is-external=true') == -1) {
15 parent.document.title="RSGroupBasedLoadBalancer (Apache HBase 3.0.0-SNAPSHOT API)";
16 }
17 }
18 catch(err) {
19 }
20 //-->
21 var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10};
22 var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
23 var altColor = "altColor";
24 var rowColor = "rowColor";
25 var tableTab = "tableTab";
26 var activeTableTab = "activeTableTab";
27 </script>
28 <noscript>
29 <div>JavaScript is disabled on your browser.</div>
30 </noscript>
31 <!-- ========= START OF TOP NAVBAR ======= -->
32 <div class="topNav"><a name="navbar.top">
33 <!-- -->
34 </a>
35 <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
36 <a name="navbar.top.firstrow">
37 <!-- -->
38 </a>
39 <ul class="navList" title="Navigation">
40 <li><a href="../../../../../overview-summary.html">Overview</a></li>
41 <li><a href="package-summary.html">Package</a></li>
42 <li class="navBarCell1Rev">Class</li>
43 <li><a href="class-use/RSGroupBasedLoadBalancer.html">Use</a></li>
44 <li><a href="package-tree.html">Tree</a></li>
45 <li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
46 <li><a href="../../../../../index-all.html">Index</a></li>
47 <li><a href="../../../../../help-doc.html">Help</a></li>
48 </ul>
49 </div>
50 <div class="subNav">
51 <ul class="navList">
52 <li><a href="../../../../../org/apache/hadoop/hbase/rsgroup/RSGroupAdminServer.html" title="class in org.apache.hadoop.hbase.rsgroup"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
53 <li><a href="../../../../../org/apache/hadoop/hbase/rsgroup/RSGroupInfo.html" title="class in org.apache.hadoop.hbase.rsgroup"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
54 </ul>
55 <ul class="navList">
56 <li><a href="../../../../../index.html?org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html" target="_top">Frames</a></li>
57 <li><a href="RSGroupBasedLoadBalancer.html" target="_top">No&nbsp;Frames</a></li>
58 </ul>
59 <ul class="navList" id="allclasses_navbar_top">
60 <li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
61 </ul>
62 <div>
63 <script type="text/javascript"><!--
64 allClassesLink = document.getElementById("allclasses_navbar_top");
65 if(window==top) {
66 allClassesLink.style.display = "block";
67 }
68 else {
69 allClassesLink.style.display = "none";
70 }
71 //-->
72 </script>
73 </div>
74 <div>
75 <ul class="subNavList">
76 <li>Summary:&nbsp;</li>
77 <li>Nested&nbsp;|&nbsp;</li>
78 <li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
79 <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
80 <li><a href="#method.summary">Method</a></li>
81 </ul>
82 <ul class="subNavList">
83 <li>Detail:&nbsp;</li>
84 <li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
85 <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
86 <li><a href="#method.detail">Method</a></li>
87 </ul>
88 </div>
89 <a name="skip.navbar.top">
90 <!-- -->
91 </a></div>
92 <!-- ========= END OF TOP NAVBAR ========= -->
93 <!-- ======== START OF CLASS DATA ======== -->
94 <div class="header">
95 <div class="subTitle">org.apache.hadoop.hbase.rsgroup</div>
96 <h2 title="Class RSGroupBasedLoadBalancer" class="title">Class RSGroupBasedLoadBalancer</h2>
97 </div>
98 <div class="contentContainer">
99 <ul class="inheritance">
100 <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>
101 <li>
102 <ul class="inheritance">
103 <li>org.apache.hadoop.hbase.rsgroup.RSGroupBasedLoadBalancer</li>
104 </ul>
105 </li>
106 </ul>
107 <div class="description">
108 <ul class="blockList">
109 <li class="blockList">
110 <dl>
111 <dt>All Implemented Interfaces:</dt>
112 <dd>org.apache.hadoop.conf.Configurable, <a href="../../../../../org/apache/hadoop/hbase/conf/ConfigurationObserver.html" title="interface in org.apache.hadoop.hbase.conf">ConfigurationObserver</a>, <a href="../../../../../org/apache/hadoop/hbase/master/LoadBalancer.html" title="interface in org.apache.hadoop.hbase.master">LoadBalancer</a>, <a href="../../../../../org/apache/hadoop/hbase/rsgroup/RSGroupableBalancer.html" title="interface in org.apache.hadoop.hbase.rsgroup">RSGroupableBalancer</a>, <a href="../../../../../org/apache/hadoop/hbase/Stoppable.html" title="interface in org.apache.hadoop.hbase">Stoppable</a></dd>
113 </dl>
114 <hr>
115 <br>
116 <pre>@InterfaceAudience.Private
117 public class <a href="../../../../../src-html/org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html#line.73">RSGroupBasedLoadBalancer</a>
118 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>
119 implements <a href="../../../../../org/apache/hadoop/hbase/rsgroup/RSGroupableBalancer.html" title="interface in org.apache.hadoop.hbase.rsgroup">RSGroupableBalancer</a></pre>
120 <div class="block">GroupBasedLoadBalancer, used when Region Server Grouping is configured (HBase-6721)
121 It does region balance based on a table's group membership.
122
123 Most assignment methods contain two exclusive code paths: Online - when the group
124 table is online and Offline - when it is unavailable.
125
126 During Offline, assignments are assigned based on cached information in zookeeper.
127 If unavailable (ie bootstrap) then regions are assigned randomly.
128
129 Once the GROUP table has been assigned, the balancer switches to Online and will then
130 start providing appropriate assignments for user tables.</div>
131 </li>
132 </ul>
133 </div>
134 <div class="summary">
135 <ul class="blockList">
136 <li class="blockList">
137 <!-- =========== FIELD SUMMARY =========== -->
138 <ul class="blockList">
139 <li class="blockList"><a name="field.summary">
140 <!-- -->
141 </a>
142 <h3>Field Summary</h3>
143 <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
144 <caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
145 <tr>
146 <th class="colFirst" scope="col">Modifier and Type</th>
147 <th class="colLast" scope="col">Field and Description</th>
148 </tr>
149 <tr class="altColor">
150 <td class="colFirst"><code>private <a href="../../../../../org/apache/hadoop/hbase/ClusterMetrics.html" title="interface in org.apache.hadoop.hbase">ClusterMetrics</a></code></td>
151 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html#clusterStatus">clusterStatus</a></span></code>&nbsp;</td>
152 </tr>
153 <tr class="rowColor">
154 <td class="colFirst"><code>private org.apache.hadoop.conf.Configuration</code></td>
155 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html#config">config</a></span></code>&nbsp;</td>
156 </tr>
157 <tr class="altColor">
158 <td class="colFirst"><code>private <a href="../../../../../org/apache/hadoop/hbase/master/LoadBalancer.html" title="interface in org.apache.hadoop.hbase.master">LoadBalancer</a></code></td>
159 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html#internalBalancer">internalBalancer</a></span></code>&nbsp;</td>
160 </tr>
161 <tr class="rowColor">
162 <td class="colFirst"><code>private static org.slf4j.Logger</code></td>
163 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html#LOG">LOG</a></span></code>&nbsp;</td>
164 </tr>
165 <tr class="altColor">
166 <td class="colFirst"><code>private <a href="../../../../../org/apache/hadoop/hbase/master/MasterServices.html" title="interface in org.apache.hadoop.hbase.master">MasterServices</a></code></td>
167 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html#masterServices">masterServices</a></span></code>&nbsp;</td>
168 </tr>
169 <tr class="rowColor">
170 <td class="colFirst"><code>private <a href="../../../../../org/apache/hadoop/hbase/rsgroup/RSGroupInfoManager.html" title="interface in org.apache.hadoop.hbase.rsgroup">RSGroupInfoManager</a></code></td>
171 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html#rsGroupInfoManager">rsGroupInfoManager</a></span></code>&nbsp;</td>
172 </tr>
173 </table>
174 <ul class="blockList">
175 <li class="blockList"><a name="fields.inherited.from.class.org.apache.hadoop.hbase.rsgroup.RSGroupableBalancer">
176 <!-- -->
177 </a>
178 <h3>Fields inherited from interface&nbsp;org.apache.hadoop.hbase.rsgroup.<a href="../../../../../org/apache/hadoop/hbase/rsgroup/RSGroupableBalancer.html" title="interface in org.apache.hadoop.hbase.rsgroup">RSGroupableBalancer</a></h3>
179 <code><a href="../../../../../org/apache/hadoop/hbase/rsgroup/RSGroupableBalancer.html#HBASE_RSGROUP_LOADBALANCER_CLASS">HBASE_RSGROUP_LOADBALANCER_CLASS</a></code></li>
180 </ul>
181 <ul class="blockList">
182 <li class="blockList"><a name="fields.inherited.from.class.org.apache.hadoop.hbase.master.LoadBalancer">
183 <!-- -->
184 </a>
185 <h3>Fields inherited from interface&nbsp;org.apache.hadoop.hbase.master.<a href="../../../../../org/apache/hadoop/hbase/master/LoadBalancer.html" title="interface in org.apache.hadoop.hbase.master">LoadBalancer</a></h3>
186 <code><a href="../../../../../org/apache/hadoop/hbase/master/LoadBalancer.html#BOGUS_SERVER_NAME">BOGUS_SERVER_NAME</a>, <a href="../../../../../org/apache/hadoop/hbase/master/LoadBalancer.html#SYSTEM_TABLES_ON_MASTER">SYSTEM_TABLES_ON_MASTER</a>, <a href="../../../../../org/apache/hadoop/hbase/master/LoadBalancer.html#TABLES_ON_MASTER">TABLES_ON_MASTER</a></code></li>
187 </ul>
188 </li>
189 </ul>
190 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
191 <ul class="blockList">
192 <li class="blockList"><a name="constructor.summary">
193 <!-- -->
194 </a>
195 <h3>Constructor Summary</h3>
196 <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
197 <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
198 <tr>
199 <th class="colOne" scope="col">Constructor and Description</th>
200 </tr>
201 <tr class="altColor">
202 <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html#RSGroupBasedLoadBalancer--">RSGroupBasedLoadBalancer</a></span>()</code>
203 <div class="block">Used by reflection in <a href="../../../../../org/apache/hadoop/hbase/master/balancer/LoadBalancerFactory.html" title="class in org.apache.hadoop.hbase.master.balancer"><code>LoadBalancerFactory</code></a>.</div>
204 </td>
205 </tr>
206 </table>
207 </li>
208 </ul>
209 <!-- ========== METHOD SUMMARY =========== -->
210 <ul class="blockList">
211 <li class="blockList"><a name="method.summary">
212 <!-- -->
213 </a>
214 <h3>Method Summary</h3>
215 <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
216 <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
217 <tr>
218 <th class="colFirst" scope="col">Modifier and Type</th>
219 <th class="colLast" scope="col">Method and Description</th>
220 </tr>
221 <tr id="i0" class="altColor">
222 <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>&lt;<a href="../../../../../org/apache/hadoop/hbase/master/RegionPlan.html" title="class in org.apache.hadoop.hbase.master">RegionPlan</a>&gt;</code></td>
223 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html#balanceCluster-java.util.Map-">balanceCluster</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>&lt;<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</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>&lt;<a href="../../../../../org/apache/hadoop/hbase/client/RegionInfo.html" title="interface in org.apache.hadoop.hbase.client">RegionInfo</a>&gt;&gt;&nbsp;clusterState)</code>
224 <div class="block">Perform the major balance operation</div>
225 </td>
226 </tr>
227 <tr id="i1" class="rowColor">
228 <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>&lt;<a href="../../../../../org/apache/hadoop/hbase/master/RegionPlan.html" title="class in org.apache.hadoop.hbase.master">RegionPlan</a>&gt;</code></td>
229 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html#balanceCluster-org.apache.hadoop.hbase.TableName-java.util.Map-">balanceCluster</a></span>(<a href="../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>&nbsp;tableName,
230 <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</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>&lt;<a href="../../../../../org/apache/hadoop/hbase/client/RegionInfo.html" title="interface in org.apache.hadoop.hbase.client">RegionInfo</a>&gt;&gt;&nbsp;clusterState)</code>
231 <div class="block">Perform the major balance operation</div>
232 </td>
233 </tr>
234 <tr id="i2" class="altColor">
235 <td class="colFirst"><code>private <a href="../../../../../org/apache/hadoop/hbase/util/Pair.html" title="class in org.apache.hadoop.hbase.util">Pair</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</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>&lt;<a href="../../../../../org/apache/hadoop/hbase/client/RegionInfo.html" title="interface in org.apache.hadoop.hbase.client">RegionInfo</a>&gt;&gt;,<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>&lt;<a href="../../../../../org/apache/hadoop/hbase/master/RegionPlan.html" title="class in org.apache.hadoop.hbase.master">RegionPlan</a>&gt;&gt;</code></td>
236 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html#correctAssignments-java.util.Map-">correctAssignments</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>&lt;<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</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>&lt;<a href="../../../../../org/apache/hadoop/hbase/client/RegionInfo.html" title="interface in org.apache.hadoop.hbase.client">RegionInfo</a>&gt;&gt;&nbsp;existingAssignments)</code>&nbsp;</td>
237 </tr>
238 <tr id="i3" class="rowColor">
239 <td class="colFirst"><code>private <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>&lt;<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a>&gt;</code></td>
240 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html#filterOfflineServers-org.apache.hadoop.hbase.rsgroup.RSGroupInfo-java.util.List-">filterOfflineServers</a></span>(<a href="../../../../../org/apache/hadoop/hbase/rsgroup/RSGroupInfo.html" title="class in org.apache.hadoop.hbase.rsgroup">RSGroupInfo</a>&nbsp;RSGroupInfo,
241 <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>&lt;<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a>&gt;&nbsp;onlineServers)</code>&nbsp;</td>
242 </tr>
243 <tr id="i4" class="altColor">
244 <td class="colFirst"><code>private <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>&lt;<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a>&gt;</code></td>
245 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html#filterServers-java.util.Set-java.util.List-">filterServers</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>&lt;<a href="../../../../../org/apache/hadoop/hbase/net/Address.html" title="class in org.apache.hadoop.hbase.net">Address</a>&gt;&nbsp;servers,
246 <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>&lt;<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a>&gt;&nbsp;onlineServers)</code>
247 <div class="block">Filter servers based on the online servers.</div>
248 </td>
249 </tr>
250 <tr id="i5" class="rowColor">
251 <td class="colFirst"><code>private void</code></td>
252 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html#generateGroupMaps-java.util.List-java.util.List-org.apache.hbase.thirdparty.com.google.common.collect.ListMultimap-org.apache.hbase.thirdparty.com.google.common.collect.ListMultimap-">generateGroupMaps</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>&lt;<a href="../../../../../org/apache/hadoop/hbase/client/RegionInfo.html" title="interface in org.apache.hadoop.hbase.client">RegionInfo</a>&gt;&nbsp;regions,
253 <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>&lt;<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a>&gt;&nbsp;servers,
254 org.apache.hbase.thirdparty.com.google.common.collect.ListMultimap&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="../../../../../org/apache/hadoop/hbase/client/RegionInfo.html" title="interface in org.apache.hadoop.hbase.client">RegionInfo</a>&gt;&nbsp;regionMap,
255 org.apache.hbase.thirdparty.com.google.common.collect.ListMultimap&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a>&gt;&nbsp;serverMap)</code>&nbsp;</td>
256 </tr>
257 <tr id="i6" class="altColor">
258 <td class="colFirst"><code>org.apache.hadoop.conf.Configuration</code></td>
259 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html#getConf--">getConf</a></span>()</code>&nbsp;</td>
260 </tr>
261 <tr id="i7" class="rowColor">
262 <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>&lt;<a href="../../../../../org/apache/hadoop/hbase/client/RegionInfo.html" title="interface in org.apache.hadoop.hbase.client">RegionInfo</a>&gt;</code></td>
263 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html#getMisplacedRegions-java.util.Map-">getMisplacedRegions</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>&lt;<a href="../../../../../org/apache/hadoop/hbase/client/RegionInfo.html" title="interface in org.apache.hadoop.hbase.client">RegionInfo</a>,<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a>&gt;&nbsp;regions)</code>&nbsp;</td>
264 </tr>
265 <tr id="i8" class="altColor">
266 <td class="colFirst"><code>void</code></td>
267 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html#initialize--">initialize</a></span>()</code>
268 <div class="block">Initialize the load balancer.</div>
269 </td>
270 </tr>
271 <tr id="i9" class="rowColor">
272 <td class="colFirst"><code>boolean</code></td>
273 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html#isOnline--">isOnline</a></span>()</code>&nbsp;</td>
274 </tr>
275 <tr id="i10" class="altColor">
276 <td class="colFirst"><code>boolean</code></td>
277 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html#isStopped--">isStopped</a></span>()</code>&nbsp;</td>
278 </tr>
279 <tr id="i11" class="rowColor">
280 <td class="colFirst"><code>void</code></td>
281 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html#onConfigurationChange-org.apache.hadoop.conf.Configuration-">onConfigurationChange</a></span>(org.apache.hadoop.conf.Configuration&nbsp;conf)</code>
282 <div class="block">This method would be called by the <a href="../../../../../org/apache/hadoop/hbase/conf/ConfigurationManager.html" title="class in org.apache.hadoop.hbase.conf"><code>ConfigurationManager</code></a>
283 object when the <code>Configuration</code> object is reloaded from disk.</div>
284 </td>
285 </tr>
286 <tr id="i12" class="altColor">
287 <td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a></code></td>
288 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html#randomAssignment-org.apache.hadoop.hbase.client.RegionInfo-java.util.List-">randomAssignment</a></span>(<a href="../../../../../org/apache/hadoop/hbase/client/RegionInfo.html" title="interface in org.apache.hadoop.hbase.client">RegionInfo</a>&nbsp;region,
289 <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>&lt;<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a>&gt;&nbsp;servers)</code>
290 <div class="block">Get a random region server from the list</div>
291 </td>
292 </tr>
293 <tr id="i13" class="rowColor">
294 <td class="colFirst"><code>void</code></td>
295 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html#regionOffline-org.apache.hadoop.hbase.client.RegionInfo-">regionOffline</a></span>(<a href="../../../../../org/apache/hadoop/hbase/client/RegionInfo.html" title="interface in org.apache.hadoop.hbase.client">RegionInfo</a>&nbsp;regionInfo)</code>
296 <div class="block">Marks the region as offline at balancer.</div>
297 </td>
298 </tr>
299 <tr id="i14" class="altColor">
300 <td class="colFirst"><code>void</code></td>
301 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html#regionOnline-org.apache.hadoop.hbase.client.RegionInfo-org.apache.hadoop.hbase.ServerName-">regionOnline</a></span>(<a href="../../../../../org/apache/hadoop/hbase/client/RegionInfo.html" title="interface in org.apache.hadoop.hbase.client">RegionInfo</a>&nbsp;regionInfo,
302 <a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a>&nbsp;sn)</code>
303 <div class="block">Marks the region as online at balancer.</div>
304 </td>
305 </tr>
306 <tr id="i15" class="rowColor">
307 <td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</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>&lt;<a href="../../../../../org/apache/hadoop/hbase/client/RegionInfo.html" title="interface in org.apache.hadoop.hbase.client">RegionInfo</a>&gt;&gt;</code></td>
308 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html#retainAssignment-java.util.Map-java.util.List-">retainAssignment</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>&lt;<a href="../../../../../org/apache/hadoop/hbase/client/RegionInfo.html" title="interface in org.apache.hadoop.hbase.client">RegionInfo</a>,<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a>&gt;&nbsp;regions,
309 <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>&lt;<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a>&gt;&nbsp;servers)</code>
310 <div class="block">Assign regions to the previously hosting region server</div>
311 </td>
312 </tr>
313 <tr id="i16" class="altColor">
314 <td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</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>&lt;<a href="../../../../../org/apache/hadoop/hbase/client/RegionInfo.html" title="interface in org.apache.hadoop.hbase.client">RegionInfo</a>&gt;&gt;</code></td>
315 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html#roundRobinAssignment-java.util.List-java.util.List-">roundRobinAssignment</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>&lt;<a href="../../../../../org/apache/hadoop/hbase/client/RegionInfo.html" title="interface in org.apache.hadoop.hbase.client">RegionInfo</a>&gt;&nbsp;regions,
316 <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>&lt;<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a>&gt;&nbsp;servers)</code>
317 <div class="block">Perform a Round Robin assignment of regions.</div>
318 </td>
319 </tr>
320 <tr id="i17" class="rowColor">
321 <td class="colFirst"><code>void</code></td>
322 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html#setClusterLoad-java.util.Map-">setClusterLoad</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>&lt;<a href="../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</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>&lt;<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</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>&lt;<a href="../../../../../org/apache/hadoop/hbase/client/RegionInfo.html" title="interface in org.apache.hadoop.hbase.client">RegionInfo</a>&gt;&gt;&gt;&nbsp;clusterLoad)</code>
323 <div class="block">Pass RegionStates and allow balancer to set the current cluster load.</div>
324 </td>
325 </tr>
326 <tr id="i18" class="altColor">
327 <td class="colFirst"><code>void</code></td>
328 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html#setClusterMetrics-org.apache.hadoop.hbase.ClusterMetrics-">setClusterMetrics</a></span>(<a href="../../../../../org/apache/hadoop/hbase/ClusterMetrics.html" title="interface in org.apache.hadoop.hbase">ClusterMetrics</a>&nbsp;sm)</code>
329 <div class="block">Set the current cluster status.</div>
330 </td>
331 </tr>
332 <tr id="i19" class="rowColor">
333 <td class="colFirst"><code>void</code></td>
334 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html#setConf-org.apache.hadoop.conf.Configuration-">setConf</a></span>(org.apache.hadoop.conf.Configuration&nbsp;conf)</code>&nbsp;</td>
335 </tr>
336 <tr id="i20" class="altColor">
337 <td class="colFirst"><code>void</code></td>
338 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html#setMasterServices-org.apache.hadoop.hbase.master.MasterServices-">setMasterServices</a></span>(<a href="../../../../../org/apache/hadoop/hbase/master/MasterServices.html" title="interface in org.apache.hadoop.hbase.master">MasterServices</a>&nbsp;masterServices)</code>
339 <div class="block">Set the master service.</div>
340 </td>
341 </tr>
342 <tr id="i21" class="rowColor">
343 <td class="colFirst"><code>void</code></td>
344 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html#setRsGroupInfoManager-org.apache.hadoop.hbase.rsgroup.RSGroupInfoManager-">setRsGroupInfoManager</a></span>(<a href="../../../../../org/apache/hadoop/hbase/rsgroup/RSGroupInfoManager.html" title="interface in org.apache.hadoop.hbase.rsgroup">RSGroupInfoManager</a>&nbsp;rsGroupInfoManager)</code>&nbsp;</td>
345 </tr>
346 <tr id="i22" class="altColor">
347 <td class="colFirst"><code>void</code></td>
348 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html#stop-java.lang.String-">stop</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;why)</code>
349 <div class="block">Stop this service.</div>
350 </td>
351 </tr>
352 </table>
353 <ul class="blockList">
354 <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
355 <!-- -->
356 </a>
357 <h3>Methods inherited from class&nbsp;java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
358 <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>
359 </ul>
360 <ul class="blockList">
361 <li class="blockList"><a name="methods.inherited.from.class.org.apache.hadoop.hbase.master.LoadBalancer">
362 <!-- -->
363 </a>
364 <h3>Methods inherited from interface&nbsp;org.apache.hadoop.hbase.master.<a href="../../../../../org/apache/hadoop/hbase/master/LoadBalancer.html" title="interface in org.apache.hadoop.hbase.master">LoadBalancer</a></h3>
365 <code><a href="../../../../../org/apache/hadoop/hbase/master/LoadBalancer.html#isSystemTablesOnlyOnMaster-org.apache.hadoop.conf.Configuration-">isSystemTablesOnlyOnMaster</a>, <a href="../../../../../org/apache/hadoop/hbase/master/LoadBalancer.html#isTablesOnMaster-org.apache.hadoop.conf.Configuration-">isTablesOnMaster</a></code></li>
366 </ul>
367 </li>
368 </ul>
369 </li>
370 </ul>
371 </div>
372 <div class="details">
373 <ul class="blockList">
374 <li class="blockList">
375 <!-- ============ FIELD DETAIL =========== -->
376 <ul class="blockList">
377 <li class="blockList"><a name="field.detail">
378 <!-- -->
379 </a>
380 <h3>Field Detail</h3>
381 <a name="LOG">
382 <!-- -->
383 </a>
384 <ul class="blockList">
385 <li class="blockList">
386 <h4>LOG</h4>
387 <pre>private static final&nbsp;org.slf4j.Logger <a href="../../../../../src-html/org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html#line.74">LOG</a></pre>
388 </li>
389 </ul>
390 <a name="config">
391 <!-- -->
392 </a>
393 <ul class="blockList">
394 <li class="blockList">
395 <h4>config</h4>
396 <pre>private&nbsp;org.apache.hadoop.conf.Configuration <a href="../../../../../src-html/org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html#line.76">config</a></pre>
397 </li>
398 </ul>
399 <a name="clusterStatus">
400 <!-- -->
401 </a>
402 <ul class="blockList">
403 <li class="blockList">
404 <h4>clusterStatus</h4>
405 <pre>private&nbsp;<a href="../../../../../org/apache/hadoop/hbase/ClusterMetrics.html" title="interface in org.apache.hadoop.hbase">ClusterMetrics</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html#line.77">clusterStatus</a></pre>
406 </li>
407 </ul>
408 <a name="masterServices">
409 <!-- -->
410 </a>
411 <ul class="blockList">
412 <li class="blockList">
413 <h4>masterServices</h4>
414 <pre>private&nbsp;<a href="../../../../../org/apache/hadoop/hbase/master/MasterServices.html" title="interface in org.apache.hadoop.hbase.master">MasterServices</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html#line.78">masterServices</a></pre>
415 </li>
416 </ul>
417 <a name="rsGroupInfoManager">
418 <!-- -->
419 </a>
420 <ul class="blockList">
421 <li class="blockList">
422 <h4>rsGroupInfoManager</h4>
423 <pre>private volatile&nbsp;<a href="../../../../../org/apache/hadoop/hbase/rsgroup/RSGroupInfoManager.html" title="interface in org.apache.hadoop.hbase.rsgroup">RSGroupInfoManager</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html#line.79">rsGroupInfoManager</a></pre>
424 </li>
425 </ul>
426 <a name="internalBalancer">
427 <!-- -->
428 </a>
429 <ul class="blockListLast">
430 <li class="blockList">
431 <h4>internalBalancer</h4>
432 <pre>private&nbsp;<a href="../../../../../org/apache/hadoop/hbase/master/LoadBalancer.html" title="interface in org.apache.hadoop.hbase.master">LoadBalancer</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html#line.80">internalBalancer</a></pre>
433 </li>
434 </ul>
435 </li>
436 </ul>
437 <!-- ========= CONSTRUCTOR DETAIL ======== -->
438 <ul class="blockList">
439 <li class="blockList"><a name="constructor.detail">
440 <!-- -->
441 </a>
442 <h3>Constructor Detail</h3>
443 <a name="RSGroupBasedLoadBalancer--">
444 <!-- -->
445 </a>
446 <ul class="blockListLast">
447 <li class="blockList">
448 <h4>RSGroupBasedLoadBalancer</h4>
449 <pre>@InterfaceAudience.Private
450 public&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html#line.86">RSGroupBasedLoadBalancer</a>()</pre>
451 <div class="block">Used by reflection in <a href="../../../../../org/apache/hadoop/hbase/master/balancer/LoadBalancerFactory.html" title="class in org.apache.hadoop.hbase.master.balancer"><code>LoadBalancerFactory</code></a>.</div>
452 </li>
453 </ul>
454 </li>
455 </ul>
456 <!-- ============ METHOD DETAIL ========== -->
457 <ul class="blockList">
458 <li class="blockList"><a name="method.detail">
459 <!-- -->
460 </a>
461 <h3>Method Detail</h3>
462 <a name="getConf--">
463 <!-- -->
464 </a>
465 <ul class="blockList">
466 <li class="blockList">
467 <h4>getConf</h4>
468 <pre>public&nbsp;org.apache.hadoop.conf.Configuration&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html#line.89">getConf</a>()</pre>
469 <dl>
470 <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
471 <dd><code>getConf</code>&nbsp;in interface&nbsp;<code>org.apache.hadoop.conf.Configurable</code></dd>
472 </dl>
473 </li>
474 </ul>
475 <a name="setConf-org.apache.hadoop.conf.Configuration-">
476 <!-- -->
477 </a>
478 <ul class="blockList">
479 <li class="blockList">
480 <h4>setConf</h4>
481 <pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html#line.94">setConf</a>(org.apache.hadoop.conf.Configuration&nbsp;conf)</pre>
482 <dl>
483 <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
484 <dd><code>setConf</code>&nbsp;in interface&nbsp;<code>org.apache.hadoop.conf.Configurable</code></dd>
485 </dl>
486 </li>
487 </ul>
488 <a name="setClusterMetrics-org.apache.hadoop.hbase.ClusterMetrics-">
489 <!-- -->
490 </a>
491 <ul class="blockList">
492 <li class="blockList">
493 <h4>setClusterMetrics</h4>
494 <pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html#line.99">setClusterMetrics</a>(<a href="../../../../../org/apache/hadoop/hbase/ClusterMetrics.html" title="interface in org.apache.hadoop.hbase">ClusterMetrics</a>&nbsp;sm)</pre>
495 <div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/master/LoadBalancer.html#setClusterMetrics-org.apache.hadoop.hbase.ClusterMetrics-">LoadBalancer</a></code></span></div>
496 <div class="block">Set the current cluster status. This allows a LoadBalancer to map host name to a server</div>
497 <dl>
498 <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
499 <dd><code><a href="../../../../../org/apache/hadoop/hbase/master/LoadBalancer.html#setClusterMetrics-org.apache.hadoop.hbase.ClusterMetrics-">setClusterMetrics</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/master/LoadBalancer.html" title="interface in org.apache.hadoop.hbase.master">LoadBalancer</a></code></dd>
500 </dl>
501 </li>
502 </ul>
503 <a name="setMasterServices-org.apache.hadoop.hbase.master.MasterServices-">
504 <!-- -->
505 </a>
506 <ul class="blockList">
507 <li class="blockList">
508 <h4>setMasterServices</h4>
509 <pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html#line.104">setMasterServices</a>(<a href="../../../../../org/apache/hadoop/hbase/master/MasterServices.html" title="interface in org.apache.hadoop.hbase.master">MasterServices</a>&nbsp;masterServices)</pre>
510 <div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/master/LoadBalancer.html#setMasterServices-org.apache.hadoop.hbase.master.MasterServices-">LoadBalancer</a></code></span></div>
511 <div class="block">Set the master service.</div>
512 <dl>
513 <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
514 <dd><code><a href="../../../../../org/apache/hadoop/hbase/master/LoadBalancer.html#setMasterServices-org.apache.hadoop.hbase.master.MasterServices-">setMasterServices</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/master/LoadBalancer.html" title="interface in org.apache.hadoop.hbase.master">LoadBalancer</a></code></dd>
515 </dl>
516 </li>
517 </ul>
518 <a name="balanceCluster-org.apache.hadoop.hbase.TableName-java.util.Map-">
519 <!-- -->
520 </a>
521 <ul class="blockList">
522 <li class="blockList">
523 <h4>balanceCluster</h4>
524 <pre>public&nbsp;<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>&lt;<a href="../../../../../org/apache/hadoop/hbase/master/RegionPlan.html" title="class in org.apache.hadoop.hbase.master">RegionPlan</a>&gt;&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html#line.109">balanceCluster</a>(<a href="../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>&nbsp;tableName,
525 <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</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>&lt;<a href="../../../../../org/apache/hadoop/hbase/client/RegionInfo.html" title="interface in org.apache.hadoop.hbase.client">RegionInfo</a>&gt;&gt;&nbsp;clusterState)
526 throws <a href="../../../../../org/apache/hadoop/hbase/HBaseIOException.html" title="class in org.apache.hadoop.hbase">HBaseIOException</a></pre>
527 <div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/master/LoadBalancer.html#balanceCluster-org.apache.hadoop.hbase.TableName-java.util.Map-">LoadBalancer</a></code></span></div>
528 <div class="block">Perform the major balance operation</div>
529 <dl>
530 <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
531 <dd><code><a href="../../../../../org/apache/hadoop/hbase/master/LoadBalancer.html#balanceCluster-org.apache.hadoop.hbase.TableName-java.util.Map-">balanceCluster</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/master/LoadBalancer.html" title="interface in org.apache.hadoop.hbase.master">LoadBalancer</a></code></dd>
532 <dt><span class="returnLabel">Returns:</span></dt>
533 <dd>List of plans</dd>
534 <dt><span class="throwsLabel">Throws:</span></dt>
535 <dd><code><a href="../../../../../org/apache/hadoop/hbase/HBaseIOException.html" title="class in org.apache.hadoop.hbase">HBaseIOException</a></code></dd>
536 </dl>
537 </li>
538 </ul>
539 <a name="balanceCluster-java.util.Map-">
540 <!-- -->
541 </a>
542 <ul class="blockList">
543 <li class="blockList">
544 <h4>balanceCluster</h4>
545 <pre>public&nbsp;<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>&lt;<a href="../../../../../org/apache/hadoop/hbase/master/RegionPlan.html" title="class in org.apache.hadoop.hbase.master">RegionPlan</a>&gt;&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html#line.115">balanceCluster</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>&lt;<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</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>&lt;<a href="../../../../../org/apache/hadoop/hbase/client/RegionInfo.html" title="interface in org.apache.hadoop.hbase.client">RegionInfo</a>&gt;&gt;&nbsp;clusterState)
546 throws <a href="../../../../../org/apache/hadoop/hbase/HBaseIOException.html" title="class in org.apache.hadoop.hbase">HBaseIOException</a></pre>
547 <div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/master/LoadBalancer.html#balanceCluster-java.util.Map-">LoadBalancer</a></code></span></div>
548 <div class="block">Perform the major balance operation</div>
549 <dl>
550 <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
551 <dd><code><a href="../../../../../org/apache/hadoop/hbase/master/LoadBalancer.html#balanceCluster-java.util.Map-">balanceCluster</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/master/LoadBalancer.html" title="interface in org.apache.hadoop.hbase.master">LoadBalancer</a></code></dd>
552 <dt><span class="returnLabel">Returns:</span></dt>
553 <dd>List of plans</dd>
554 <dt><span class="throwsLabel">Throws:</span></dt>
555 <dd><code><a href="../../../../../org/apache/hadoop/hbase/HBaseIOException.html" title="class in org.apache.hadoop.hbase">HBaseIOException</a></code></dd>
556 </dl>
557 </li>
558 </ul>
559 <a name="roundRobinAssignment-java.util.List-java.util.List-">
560 <!-- -->
561 </a>
562 <ul class="blockList">
563 <li class="blockList">
564 <h4>roundRobinAssignment</h4>
565 <pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</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>&lt;<a href="../../../../../org/apache/hadoop/hbase/client/RegionInfo.html" title="interface in org.apache.hadoop.hbase.client">RegionInfo</a>&gt;&gt;&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html#line.161">roundRobinAssignment</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>&lt;<a href="../../../../../org/apache/hadoop/hbase/client/RegionInfo.html" title="interface in org.apache.hadoop.hbase.client">RegionInfo</a>&gt;&nbsp;regions,
566 <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>&lt;<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a>&gt;&nbsp;servers)
567 throws <a href="../../../../../org/apache/hadoop/hbase/HBaseIOException.html" title="class in org.apache.hadoop.hbase">HBaseIOException</a></pre>
568 <div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/master/LoadBalancer.html#roundRobinAssignment-java.util.List-java.util.List-">LoadBalancer</a></code></span></div>
569 <div class="block">Perform a Round Robin assignment of regions.</div>
570 <dl>
571 <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
572 <dd><code><a href="../../../../../org/apache/hadoop/hbase/master/LoadBalancer.html#roundRobinAssignment-java.util.List-java.util.List-">roundRobinAssignment</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/master/LoadBalancer.html" title="interface in org.apache.hadoop.hbase.master">LoadBalancer</a></code></dd>
573 <dt><span class="returnLabel">Returns:</span></dt>
574 <dd>Map of servername to regioninfos</dd>
575 <dt><span class="throwsLabel">Throws:</span></dt>
576 <dd><code><a href="../../../../../org/apache/hadoop/hbase/HBaseIOException.html" title="class in org.apache.hadoop.hbase">HBaseIOException</a></code></dd>
577 </dl>
578 </li>
579 </ul>
580 <a name="retainAssignment-java.util.Map-java.util.List-">
581 <!-- -->
582 </a>
583 <ul class="blockList">
584 <li class="blockList">
585 <h4>retainAssignment</h4>
586 <pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</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>&lt;<a href="../../../../../org/apache/hadoop/hbase/client/RegionInfo.html" title="interface in org.apache.hadoop.hbase.client">RegionInfo</a>&gt;&gt;&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html#line.188">retainAssignment</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>&lt;<a href="../../../../../org/apache/hadoop/hbase/client/RegionInfo.html" title="interface in org.apache.hadoop.hbase.client">RegionInfo</a>,<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a>&gt;&nbsp;regions,
587 <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>&lt;<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a>&gt;&nbsp;servers)
588 throws <a href="../../../../../org/apache/hadoop/hbase/HBaseIOException.html" title="class in org.apache.hadoop.hbase">HBaseIOException</a></pre>
589 <div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/master/LoadBalancer.html#retainAssignment-java.util.Map-java.util.List-">LoadBalancer</a></code></span></div>
590 <div class="block">Assign regions to the previously hosting region server</div>
591 <dl>
592 <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
593 <dd><code><a href="../../../../../org/apache/hadoop/hbase/master/LoadBalancer.html#retainAssignment-java.util.Map-java.util.List-">retainAssignment</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/master/LoadBalancer.html" title="interface in org.apache.hadoop.hbase.master">LoadBalancer</a></code></dd>
594 <dt><span class="returnLabel">Returns:</span></dt>
595 <dd>List of plans</dd>
596 <dt><span class="throwsLabel">Throws:</span></dt>
597 <dd><code><a href="../../../../../org/apache/hadoop/hbase/HBaseIOException.html" title="class in org.apache.hadoop.hbase">HBaseIOException</a></code></dd>
598 </dl>
599 </li>
600 </ul>
601 <a name="randomAssignment-org.apache.hadoop.hbase.client.RegionInfo-java.util.List-">
602 <!-- -->
603 </a>
604 <ul class="blockList">
605 <li class="blockList">
606 <h4>randomAssignment</h4>
607 <pre>public&nbsp;<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html#line.242">randomAssignment</a>(<a href="../../../../../org/apache/hadoop/hbase/client/RegionInfo.html" title="interface in org.apache.hadoop.hbase.client">RegionInfo</a>&nbsp;region,
608 <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>&lt;<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a>&gt;&nbsp;servers)
609 throws <a href="../../../../../org/apache/hadoop/hbase/HBaseIOException.html" title="class in org.apache.hadoop.hbase">HBaseIOException</a></pre>
610 <div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/master/LoadBalancer.html#randomAssignment-org.apache.hadoop.hbase.client.RegionInfo-java.util.List-">LoadBalancer</a></code></span></div>
611 <div class="block">Get a random region server from the list</div>
612 <dl>
613 <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
614 <dd><code><a href="../../../../../org/apache/hadoop/hbase/master/LoadBalancer.html#randomAssignment-org.apache.hadoop.hbase.client.RegionInfo-java.util.List-">randomAssignment</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/master/LoadBalancer.html" title="interface in org.apache.hadoop.hbase.master">LoadBalancer</a></code></dd>
615 <dt><span class="paramLabel">Parameters:</span></dt>
616 <dd><code>region</code> - Region for which this selection is being done.</dd>
617 <dt><span class="returnLabel">Returns:</span></dt>
618 <dd>Servername</dd>
619 <dt><span class="throwsLabel">Throws:</span></dt>
620 <dd><code><a href="../../../../../org/apache/hadoop/hbase/HBaseIOException.html" title="class in org.apache.hadoop.hbase">HBaseIOException</a></code></dd>
621 </dl>
622 </li>
623 </ul>
624 <a name="generateGroupMaps-java.util.List-java.util.List-org.apache.hbase.thirdparty.com.google.common.collect.ListMultimap-org.apache.hbase.thirdparty.com.google.common.collect.ListMultimap-">
625 <!-- -->
626 </a>
627 <ul class="blockList">
628 <li class="blockList">
629 <h4>generateGroupMaps</h4>
630 <pre>private&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html#line.251">generateGroupMaps</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>&lt;<a href="../../../../../org/apache/hadoop/hbase/client/RegionInfo.html" title="interface in org.apache.hadoop.hbase.client">RegionInfo</a>&gt;&nbsp;regions,
631 <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>&lt;<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a>&gt;&nbsp;servers,
632 org.apache.hbase.thirdparty.com.google.common.collect.ListMultimap&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="../../../../../org/apache/hadoop/hbase/client/RegionInfo.html" title="interface in org.apache.hadoop.hbase.client">RegionInfo</a>&gt;&nbsp;regionMap,
633 org.apache.hbase.thirdparty.com.google.common.collect.ListMultimap&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a>&gt;&nbsp;serverMap)
634 throws <a href="../../../../../org/apache/hadoop/hbase/HBaseIOException.html" title="class in org.apache.hadoop.hbase">HBaseIOException</a></pre>
635 <dl>
636 <dt><span class="throwsLabel">Throws:</span></dt>
637 <dd><code><a href="../../../../../org/apache/hadoop/hbase/HBaseIOException.html" title="class in org.apache.hadoop.hbase">HBaseIOException</a></code></dd>
638 </dl>
639 </li>
640 </ul>
641 <a name="filterOfflineServers-org.apache.hadoop.hbase.rsgroup.RSGroupInfo-java.util.List-">
642 <!-- -->
643 </a>
644 <ul class="blockList">
645 <li class="blockList">
646 <h4>filterOfflineServers</h4>
647 <pre>private&nbsp;<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>&lt;<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a>&gt;&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html#line.276">filterOfflineServers</a>(<a href="../../../../../org/apache/hadoop/hbase/rsgroup/RSGroupInfo.html" title="class in org.apache.hadoop.hbase.rsgroup">RSGroupInfo</a>&nbsp;RSGroupInfo,
648 <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>&lt;<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a>&gt;&nbsp;onlineServers)</pre>
649 </li>
650 </ul>
651 <a name="filterServers-java.util.Set-java.util.List-">
652 <!-- -->
653 </a>
654 <ul class="blockList">
655 <li class="blockList">
656 <h4>filterServers</h4>
657 <pre>private&nbsp;<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>&lt;<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a>&gt;&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html#line.295">filterServers</a>(<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>&lt;<a href="../../../../../org/apache/hadoop/hbase/net/Address.html" title="class in org.apache.hadoop.hbase.net">Address</a>&gt;&nbsp;servers,
658 <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>&lt;<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a>&gt;&nbsp;onlineServers)</pre>
659 <div class="block">Filter servers based on the online servers.</div>
660 <dl>
661 <dt><span class="paramLabel">Parameters:</span></dt>
662 <dd><code>servers</code> - the servers</dd>
663 <dd><code>onlineServers</code> - List of servers which are online.</dd>
664 <dt><span class="returnLabel">Returns:</span></dt>
665 <dd>the list</dd>
666 </dl>
667 </li>
668 </ul>
669 <a name="getMisplacedRegions-java.util.Map-">
670 <!-- -->
671 </a>
672 <ul class="blockList">
673 <li class="blockList">
674 <h4>getMisplacedRegions</h4>
675 <pre>public&nbsp;<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>&lt;<a href="../../../../../org/apache/hadoop/hbase/client/RegionInfo.html" title="interface in org.apache.hadoop.hbase.client">RegionInfo</a>&gt;&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html#line.313">getMisplacedRegions</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>&lt;<a href="../../../../../org/apache/hadoop/hbase/client/RegionInfo.html" title="interface in org.apache.hadoop.hbase.client">RegionInfo</a>,<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a>&gt;&nbsp;regions)
676 throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
677 <dl>
678 <dt><span class="throwsLabel">Throws:</span></dt>
679 <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd>
680 </dl>
681 </li>
682 </ul>
683 <a name="correctAssignments-java.util.Map-">
684 <!-- -->
685 </a>
686 <ul class="blockList">
687 <li class="blockList">
688 <h4>correctAssignments</h4>
689 <pre>private&nbsp;<a href="../../../../../org/apache/hadoop/hbase/util/Pair.html" title="class in org.apache.hadoop.hbase.util">Pair</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</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>&lt;<a href="../../../../../org/apache/hadoop/hbase/client/RegionInfo.html" title="interface in org.apache.hadoop.hbase.client">RegionInfo</a>&gt;&gt;,<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>&lt;<a href="../../../../../org/apache/hadoop/hbase/master/RegionPlan.html" title="class in org.apache.hadoop.hbase.master">RegionPlan</a>&gt;&gt;&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html#line.341">correctAssignments</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>&lt;<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</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>&lt;<a href="../../../../../org/apache/hadoop/hbase/client/RegionInfo.html" title="interface in org.apache.hadoop.hbase.client">RegionInfo</a>&gt;&gt;&nbsp;existingAssignments)
690 throws <a href="../../../../../org/apache/hadoop/hbase/HBaseIOException.html" title="class in org.apache.hadoop.hbase">HBaseIOException</a></pre>
691 <dl>
692 <dt><span class="throwsLabel">Throws:</span></dt>
693 <dd><code><a href="../../../../../org/apache/hadoop/hbase/HBaseIOException.html" title="class in org.apache.hadoop.hbase">HBaseIOException</a></code></dd>
694 </dl>
695 </li>
696 </ul>
697 <a name="initialize--">
698 <!-- -->
699 </a>
700 <ul class="blockList">
701 <li class="blockList">
702 <h4>initialize</h4>
703 <pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html#line.376">initialize</a>()
704 throws <a href="../../../../../org/apache/hadoop/hbase/HBaseIOException.html" title="class in org.apache.hadoop.hbase">HBaseIOException</a></pre>
705 <div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/master/LoadBalancer.html#initialize--">LoadBalancer</a></code></span></div>
706 <div class="block">Initialize the load balancer. Must be called after setters.</div>
707 <dl>
708 <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
709 <dd><code><a href="../../../../../org/apache/hadoop/hbase/master/LoadBalancer.html#initialize--">initialize</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/master/LoadBalancer.html" title="interface in org.apache.hadoop.hbase.master">LoadBalancer</a></code></dd>
710 <dt><span class="throwsLabel">Throws:</span></dt>
711 <dd><code><a href="../../../../../org/apache/hadoop/hbase/HBaseIOException.html" title="class in org.apache.hadoop.hbase">HBaseIOException</a></code></dd>
712 </dl>
713 </li>
714 </ul>
715 <a name="isOnline--">
716 <!-- -->
717 </a>
718 <ul class="blockList">
719 <li class="blockList">
720 <h4>isOnline</h4>
721 <pre>public&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html#line.408">isOnline</a>()</pre>
722 </li>
723 </ul>
724 <a name="setClusterLoad-java.util.Map-">
725 <!-- -->
726 </a>
727 <ul class="blockList">
728 <li class="blockList">
729 <h4>setClusterLoad</h4>
730 <pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html#line.417">setClusterLoad</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>&lt;<a href="../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</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>&lt;<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</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>&lt;<a href="../../../../../org/apache/hadoop/hbase/client/RegionInfo.html" title="interface in org.apache.hadoop.hbase.client">RegionInfo</a>&gt;&gt;&gt;&nbsp;clusterLoad)</pre>
731 <div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/master/LoadBalancer.html#setClusterLoad-java.util.Map-">LoadBalancer</a></code></span></div>
732 <div class="block">Pass RegionStates and allow balancer to set the current cluster load.</div>
733 <dl>
734 <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
735 <dd><code><a href="../../../../../org/apache/hadoop/hbase/master/LoadBalancer.html#setClusterLoad-java.util.Map-">setClusterLoad</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/master/LoadBalancer.html" title="interface in org.apache.hadoop.hbase.master">LoadBalancer</a></code></dd>
736 </dl>
737 </li>
738 </ul>
739 <a name="regionOnline-org.apache.hadoop.hbase.client.RegionInfo-org.apache.hadoop.hbase.ServerName-">
740 <!-- -->
741 </a>
742 <ul class="blockList">
743 <li class="blockList">
744 <h4>regionOnline</h4>
745 <pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html#line.421">regionOnline</a>(<a href="../../../../../org/apache/hadoop/hbase/client/RegionInfo.html" title="interface in org.apache.hadoop.hbase.client">RegionInfo</a>&nbsp;regionInfo,
746 <a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a>&nbsp;sn)</pre>
747 <div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/master/LoadBalancer.html#regionOnline-org.apache.hadoop.hbase.client.RegionInfo-org.apache.hadoop.hbase.ServerName-">LoadBalancer</a></code></span></div>
748 <div class="block">Marks the region as online at balancer.</div>
749 <dl>
750 <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
751 <dd><code><a href="../../../../../org/apache/hadoop/hbase/master/LoadBalancer.html#regionOnline-org.apache.hadoop.hbase.client.RegionInfo-org.apache.hadoop.hbase.ServerName-">regionOnline</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/master/LoadBalancer.html" title="interface in org.apache.hadoop.hbase.master">LoadBalancer</a></code></dd>
752 </dl>
753 </li>
754 </ul>
755 <a name="regionOffline-org.apache.hadoop.hbase.client.RegionInfo-">
756 <!-- -->
757 </a>
758 <ul class="blockList">
759 <li class="blockList">
760 <h4>regionOffline</h4>
761 <pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html#line.425">regionOffline</a>(<a href="../../../../../org/apache/hadoop/hbase/client/RegionInfo.html" title="interface in org.apache.hadoop.hbase.client">RegionInfo</a>&nbsp;regionInfo)</pre>
762 <div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/master/LoadBalancer.html#regionOffline-org.apache.hadoop.hbase.client.RegionInfo-">LoadBalancer</a></code></span></div>
763 <div class="block">Marks the region as offline at balancer.</div>
764 <dl>
765 <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
766 <dd><code><a href="../../../../../org/apache/hadoop/hbase/master/LoadBalancer.html#regionOffline-org.apache.hadoop.hbase.client.RegionInfo-">regionOffline</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/master/LoadBalancer.html" title="interface in org.apache.hadoop.hbase.master">LoadBalancer</a></code></dd>
767 </dl>
768 </li>
769 </ul>
770 <a name="onConfigurationChange-org.apache.hadoop.conf.Configuration-">
771 <!-- -->
772 </a>
773 <ul class="blockList">
774 <li class="blockList">
775 <h4>onConfigurationChange</h4>
776 <pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html#line.429">onConfigurationChange</a>(org.apache.hadoop.conf.Configuration&nbsp;conf)</pre>
777 <div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/conf/ConfigurationObserver.html#onConfigurationChange-org.apache.hadoop.conf.Configuration-">ConfigurationObserver</a></code></span></div>
778 <div class="block">This method would be called by the <a href="../../../../../org/apache/hadoop/hbase/conf/ConfigurationManager.html" title="class in org.apache.hadoop.hbase.conf"><code>ConfigurationManager</code></a>
779 object when the <code>Configuration</code> object is reloaded from disk.</div>
780 <dl>
781 <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
782 <dd><code><a href="../../../../../org/apache/hadoop/hbase/conf/ConfigurationObserver.html#onConfigurationChange-org.apache.hadoop.conf.Configuration-">onConfigurationChange</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/conf/ConfigurationObserver.html" title="interface in org.apache.hadoop.hbase.conf">ConfigurationObserver</a></code></dd>
783 <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
784 <dd><code><a href="../../../../../org/apache/hadoop/hbase/master/LoadBalancer.html#onConfigurationChange-org.apache.hadoop.conf.Configuration-">onConfigurationChange</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/master/LoadBalancer.html" title="interface in org.apache.hadoop.hbase.master">LoadBalancer</a></code></dd>
785 </dl>
786 </li>
787 </ul>
788 <a name="stop-java.lang.String-">
789 <!-- -->
790 </a>
791 <ul class="blockList">
792 <li class="blockList">
793 <h4>stop</h4>
794 <pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html#line.434">stop</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>&nbsp;why)</pre>
795 <div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/Stoppable.html#stop-java.lang.String-">Stoppable</a></code></span></div>
796 <div class="block">Stop this service.
797 Implementers should favor logging errors over throwing RuntimeExceptions.</div>
798 <dl>
799 <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
800 <dd><code><a href="../../../../../org/apache/hadoop/hbase/Stoppable.html#stop-java.lang.String-">stop</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/Stoppable.html" title="interface in org.apache.hadoop.hbase">Stoppable</a></code></dd>
801 <dt><span class="paramLabel">Parameters:</span></dt>
802 <dd><code>why</code> - Why we're stopping.</dd>
803 </dl>
804 </li>
805 </ul>
806 <a name="isStopped--">
807 <!-- -->
808 </a>
809 <ul class="blockList">
810 <li class="blockList">
811 <h4>isStopped</h4>
812 <pre>public&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html#line.438">isStopped</a>()</pre>
813 <dl>
814 <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
815 <dd><code><a href="../../../../../org/apache/hadoop/hbase/Stoppable.html#isStopped--">isStopped</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/Stoppable.html" title="interface in org.apache.hadoop.hbase">Stoppable</a></code></dd>
816 <dt><span class="returnLabel">Returns:</span></dt>
817 <dd>True if <a href="../../../../../org/apache/hadoop/hbase/Stoppable.html#stop-java.lang.String-"><code>Stoppable.stop(String)</code></a> has been closed.</dd>
818 </dl>
819 </li>
820 </ul>
821 <a name="setRsGroupInfoManager-org.apache.hadoop.hbase.rsgroup.RSGroupInfoManager-">
822 <!-- -->
823 </a>
824 <ul class="blockListLast">
825 <li class="blockList">
826 <h4>setRsGroupInfoManager</h4>
827 <pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html#line.443">setRsGroupInfoManager</a>(<a href="../../../../../org/apache/hadoop/hbase/rsgroup/RSGroupInfoManager.html" title="interface in org.apache.hadoop.hbase.rsgroup">RSGroupInfoManager</a>&nbsp;rsGroupInfoManager)</pre>
828 </li>
829 </ul>
830 </li>
831 </ul>
832 </li>
833 </ul>
834 </div>
835 </div>
836 <!-- ========= END OF CLASS DATA ========= -->
837 <!-- ======= START OF BOTTOM NAVBAR ====== -->
838 <div class="bottomNav"><a name="navbar.bottom">
839 <!-- -->
840 </a>
841 <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
842 <a name="navbar.bottom.firstrow">
843 <!-- -->
844 </a>
845 <ul class="navList" title="Navigation">
846 <li><a href="../../../../../overview-summary.html">Overview</a></li>
847 <li><a href="package-summary.html">Package</a></li>
848 <li class="navBarCell1Rev">Class</li>
849 <li><a href="class-use/RSGroupBasedLoadBalancer.html">Use</a></li>
850 <li><a href="package-tree.html">Tree</a></li>
851 <li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
852 <li><a href="../../../../../index-all.html">Index</a></li>
853 <li><a href="../../../../../help-doc.html">Help</a></li>
854 </ul>
855 </div>
856 <div class="subNav">
857 <ul class="navList">
858 <li><a href="../../../../../org/apache/hadoop/hbase/rsgroup/RSGroupAdminServer.html" title="class in org.apache.hadoop.hbase.rsgroup"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
859 <li><a href="../../../../../org/apache/hadoop/hbase/rsgroup/RSGroupInfo.html" title="class in org.apache.hadoop.hbase.rsgroup"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
860 </ul>
861 <ul class="navList">
862 <li><a href="../../../../../index.html?org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.html" target="_top">Frames</a></li>
863 <li><a href="RSGroupBasedLoadBalancer.html" target="_top">No&nbsp;Frames</a></li>
864 </ul>
865 <ul class="navList" id="allclasses_navbar_bottom">
866 <li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
867 </ul>
868 <div>
869 <script type="text/javascript"><!--
870 allClassesLink = document.getElementById("allclasses_navbar_bottom");
871 if(window==top) {
872 allClassesLink.style.display = "block";
873 }
874 else {
875 allClassesLink.style.display = "none";
876 }
877 //-->
878 </script>
879 </div>
880 <div>
881 <ul class="subNavList">
882 <li>Summary:&nbsp;</li>
883 <li>Nested&nbsp;|&nbsp;</li>
884 <li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
885 <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
886 <li><a href="#method.summary">Method</a></li>
887 </ul>
888 <ul class="subNavList">
889 <li>Detail:&nbsp;</li>
890 <li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
891 <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
892 <li><a href="#method.detail">Method</a></li>
893 </ul>
894 </div>
895 <a name="skip.navbar.bottom">
896 <!-- -->
897 </a></div>
898 <!-- ======== END OF BOTTOM NAVBAR ======= -->
899 <p class="legalCopy"><small>Copyright &#169; 2007&#x2013;2018 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
900 </body>
901 </html>