commit | author | age
|
a18bfa
|
1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
Z |
2 |
<!-- NewPage --> |
|
3 |
<html lang="zh"> |
|
4 |
<head> |
|
5 |
<!-- Generated by javadoc (1.8.0_65) on Mon May 18 20:38:46 CST 2020 --> |
|
6 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
|
7 |
<title>LocalFirstLoadBalanceProxy (transaction-motan 4.1.0 API)</title> |
|
8 |
<meta name="date" content="2020-05-18"> |
|
9 |
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> |
|
10 |
<script type="text/javascript" src="../../../../../script.js"></script> |
|
11 |
</head> |
|
12 |
<body> |
|
13 |
<script type="text/javascript"><!-- |
|
14 |
try { |
|
15 |
if (location.href.indexOf('is-external=true') == -1) { |
|
16 |
parent.document.title="LocalFirstLoadBalanceProxy (transaction-motan 4.1.0 API)"; |
|
17 |
} |
|
18 |
} |
|
19 |
catch(err) { |
|
20 |
} |
|
21 |
//--> |
|
22 |
var methods = {"i0":10,"i1":10}; |
|
23 |
var tabs = {65535:["t0","所有方法"],2:["t2","实例方法"],8:["t4","具体方法"]}; |
|
24 |
var altColor = "altColor"; |
|
25 |
var rowColor = "rowColor"; |
|
26 |
var tableTab = "tableTab"; |
|
27 |
var activeTableTab = "activeTableTab"; |
|
28 |
</script> |
|
29 |
<noscript> |
|
30 |
<div>您的浏览器已禁用 JavaScript。</div> |
|
31 |
</noscript> |
|
32 |
<!-- ========= START OF TOP NAVBAR ======= --> |
|
33 |
<div class="topNav"><a name="navbar.top"> |
|
34 |
<!-- --> |
|
35 |
</a> |
|
36 |
<div class="skipNav"><a href="#skip.navbar.top" title="跳过导航链接">跳过导航链接</a></div> |
|
37 |
<a name="navbar.top.firstrow"> |
|
38 |
<!-- --> |
|
39 |
</a> |
|
40 |
<ul class="navList" title="导航"> |
|
41 |
<li><a href="../../../../../overview-summary.html">概览</a></li> |
|
42 |
<li><a href="package-summary.html">程序包</a></li> |
|
43 |
<li class="navBarCell1Rev">类</li> |
|
44 |
<li><a href="class-use/LocalFirstLoadBalanceProxy.html">使用</a></li> |
|
45 |
<li><a href="package-tree.html">树</a></li> |
|
46 |
<li><a href="../../../../../deprecated-list.html">已过时</a></li> |
|
47 |
<li><a href="../../../../../index-all.html">索引</a></li> |
|
48 |
<li><a href="../../../../../help-doc.html">帮助</a></li> |
|
49 |
</ul> |
|
50 |
</div> |
|
51 |
<div class="subNav"> |
|
52 |
<ul class="navList"> |
|
53 |
<li><a href="../../../../../com/codingapi/tx/motan/balance/LCNBalanceProxy.html" title="com.codingapi.tx.motan.balance中的类"><span class="typeNameLink">上一个类</span></a></li> |
|
54 |
<li><a href="../../../../../com/codingapi/tx/motan/balance/RandomLoadBalanceProxy.html" title="com.codingapi.tx.motan.balance中的类"><span class="typeNameLink">下一个类</span></a></li> |
|
55 |
</ul> |
|
56 |
<ul class="navList"> |
|
57 |
<li><a href="../../../../../index.html?com/codingapi/tx/motan/balance/LocalFirstLoadBalanceProxy.html" target="_top">框架</a></li> |
|
58 |
<li><a href="LocalFirstLoadBalanceProxy.html" target="_top">无框架</a></li> |
|
59 |
</ul> |
|
60 |
<ul class="navList" id="allclasses_navbar_top"> |
|
61 |
<li><a href="../../../../../allclasses-noframe.html">所有类</a></li> |
|
62 |
</ul> |
|
63 |
<div> |
|
64 |
<script type="text/javascript"><!-- |
|
65 |
allClassesLink = document.getElementById("allclasses_navbar_top"); |
|
66 |
if(window==top) { |
|
67 |
allClassesLink.style.display = "block"; |
|
68 |
} |
|
69 |
else { |
|
70 |
allClassesLink.style.display = "none"; |
|
71 |
} |
|
72 |
//--> |
|
73 |
</script> |
|
74 |
</div> |
|
75 |
<div> |
|
76 |
<ul class="subNavList"> |
|
77 |
<li>概要: </li> |
|
78 |
<li>嵌套 | </li> |
|
79 |
<li><a href="#fields.inherited.from.class.com.weibo.api.motan.cluster.loadbalance.LocalFirstLoadBalance">字段</a> | </li> |
|
80 |
<li><a href="#constructor.summary">构造器</a> | </li> |
|
81 |
<li><a href="#method.summary">方法</a></li> |
|
82 |
</ul> |
|
83 |
<ul class="subNavList"> |
|
84 |
<li>详细资料: </li> |
|
85 |
<li>字段 | </li> |
|
86 |
<li><a href="#constructor.detail">构造器</a> | </li> |
|
87 |
<li><a href="#method.detail">方法</a></li> |
|
88 |
</ul> |
|
89 |
</div> |
|
90 |
<a name="skip.navbar.top"> |
|
91 |
<!-- --> |
|
92 |
</a></div> |
|
93 |
<!-- ========= END OF TOP NAVBAR ========= --> |
|
94 |
<!-- ======== START OF CLASS DATA ======== --> |
|
95 |
<div class="header"> |
|
96 |
<div class="subTitle">com.codingapi.tx.motan.balance</div> |
|
97 |
<h2 title="类 LocalFirstLoadBalanceProxy" class="title">类 LocalFirstLoadBalanceProxy</h2> |
|
98 |
</div> |
|
99 |
<div class="contentContainer"> |
|
100 |
<ul class="inheritance"> |
|
101 |
<li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="java.lang中的类或接口">java.lang.Object</a></li> |
|
102 |
<li> |
|
103 |
<ul class="inheritance"> |
|
104 |
<li>com.weibo.api.motan.cluster.loadbalance.AbstractLoadBalance<T></li> |
|
105 |
<li> |
|
106 |
<ul class="inheritance"> |
|
107 |
<li>com.weibo.api.motan.cluster.loadbalance.LocalFirstLoadBalance</li> |
|
108 |
<li> |
|
109 |
<ul class="inheritance"> |
|
110 |
<li>com.codingapi.tx.motan.balance.LocalFirstLoadBalanceProxy</li> |
|
111 |
</ul> |
|
112 |
</li> |
|
113 |
</ul> |
|
114 |
</li> |
|
115 |
</ul> |
|
116 |
</li> |
|
117 |
</ul> |
|
118 |
<div class="description"> |
|
119 |
<ul class="blockList"> |
|
120 |
<li class="blockList"> |
|
121 |
<dl> |
|
122 |
<dt>所有已实现的接口:</dt> |
|
123 |
<dd>com.weibo.api.motan.cluster.LoadBalance</dd> |
|
124 |
</dl> |
|
125 |
<hr> |
|
126 |
<br> |
|
127 |
<pre>@SpiMeta(name="localFirstLcn") |
|
128 |
@Activation(key={"service","referer"}) |
|
129 |
public class <span class="typeNameLabel">LocalFirstLoadBalanceProxy</span> |
|
130 |
extends com.weibo.api.motan.cluster.loadbalance.LocalFirstLoadBalance</pre> |
|
131 |
<div class="block"><p>"本地服务优先" 负载均衡代理</p></div> |
|
132 |
<dl> |
|
133 |
<dt><span class="simpleTagLabel">作者:</span></dt> |
|
134 |
<dd>张峰 zfvip_it@163.com |
|
135 |
2017/12/1 10:46</dd> |
|
136 |
</dl> |
|
137 |
</li> |
|
138 |
</ul> |
|
139 |
</div> |
|
140 |
<div class="summary"> |
|
141 |
<ul class="blockList"> |
|
142 |
<li class="blockList"> |
|
143 |
<!-- =========== FIELD SUMMARY =========== --> |
|
144 |
<ul class="blockList"> |
|
145 |
<li class="blockList"><a name="field.summary"> |
|
146 |
<!-- --> |
|
147 |
</a> |
|
148 |
<h3>字段概要</h3> |
|
149 |
<ul class="blockList"> |
|
150 |
<li class="blockList"><a name="fields.inherited.from.class.com.weibo.api.motan.cluster.loadbalance.LocalFirstLoadBalance"> |
|
151 |
<!-- --> |
|
152 |
</a> |
|
153 |
<h3>从类继承的字段 com.weibo.api.motan.cluster.loadbalance.LocalFirstLoadBalance</h3> |
|
154 |
<code>MAX_REFERER_COUNT</code></li> |
|
155 |
</ul> |
|
156 |
</li> |
|
157 |
</ul> |
|
158 |
<!-- ======== CONSTRUCTOR SUMMARY ======== --> |
|
159 |
<ul class="blockList"> |
|
160 |
<li class="blockList"><a name="constructor.summary"> |
|
161 |
<!-- --> |
|
162 |
</a> |
|
163 |
<h3>构造器概要</h3> |
|
164 |
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="构造器概要表, 列表构造器和解释"> |
|
165 |
<caption><span>构造器</span><span class="tabEnd"> </span></caption> |
|
166 |
<tr> |
|
167 |
<th class="colOne" scope="col">构造器和说明</th> |
|
168 |
</tr> |
|
169 |
<tr class="altColor"> |
|
170 |
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../com/codingapi/tx/motan/balance/LocalFirstLoadBalanceProxy.html#LocalFirstLoadBalanceProxy--">LocalFirstLoadBalanceProxy</a></span>()</code> </td> |
|
171 |
</tr> |
|
172 |
</table> |
|
173 |
</li> |
|
174 |
</ul> |
|
175 |
<!-- ========== METHOD SUMMARY =========== --> |
|
176 |
<ul class="blockList"> |
|
177 |
<li class="blockList"><a name="method.summary"> |
|
178 |
<!-- --> |
|
179 |
</a> |
|
180 |
<h3>方法概要</h3> |
|
181 |
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="方法概要表, 列表方法和解释"> |
|
182 |
<caption><span id="t0" class="activeTableTab"><span>所有方法</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">实例方法</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">具体方法</a></span><span class="tabEnd"> </span></span></caption> |
|
183 |
<tr> |
|
184 |
<th class="colFirst" scope="col">限定符和类型</th> |
|
185 |
<th class="colLast" scope="col">方法和说明</th> |
|
186 |
</tr> |
|
187 |
<tr id="i0" class="altColor"> |
|
188 |
<td class="colFirst"><code>protected com.weibo.api.motan.rpc.Referer</code></td> |
|
189 |
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/codingapi/tx/motan/balance/LocalFirstLoadBalanceProxy.html#doSelect-com.weibo.api.motan.rpc.Request-">doSelect</a></span>(com.weibo.api.motan.rpc.Request request)</code> </td> |
|
190 |
</tr> |
|
191 |
<tr id="i1" class="rowColor"> |
|
192 |
<td class="colFirst"><code>protected void</code></td> |
|
193 |
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/codingapi/tx/motan/balance/LocalFirstLoadBalanceProxy.html#doSelectToHolder-com.weibo.api.motan.rpc.Request-java.util.List-">doSelectToHolder</a></span>(com.weibo.api.motan.rpc.Request request, |
|
194 |
<a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="java.util中的类或接口">List</a> refersHolder)</code> </td> |
|
195 |
</tr> |
|
196 |
</table> |
|
197 |
<ul class="blockList"> |
|
198 |
<li class="blockList"><a name="methods.inherited.from.class.com.weibo.api.motan.cluster.loadbalance.LocalFirstLoadBalance"> |
|
199 |
<!-- --> |
|
200 |
</a> |
|
201 |
<h3>从类继承的方法 com.weibo.api.motan.cluster.loadbalance.LocalFirstLoadBalance</h3> |
|
202 |
<code>ipToLong</code></li> |
|
203 |
</ul> |
|
204 |
<ul class="blockList"> |
|
205 |
<li class="blockList"><a name="methods.inherited.from.class.com.weibo.api.motan.cluster.loadbalance.AbstractLoadBalance"> |
|
206 |
<!-- --> |
|
207 |
</a> |
|
208 |
<h3>从类继承的方法 com.weibo.api.motan.cluster.loadbalance.AbstractLoadBalance</h3> |
|
209 |
<code>getReferers, onRefresh, select, selectToHolder, setWeightString</code></li> |
|
210 |
</ul> |
|
211 |
<ul class="blockList"> |
|
212 |
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> |
|
213 |
<!-- --> |
|
214 |
</a> |
|
215 |
<h3>从类继承的方法 java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="java.lang中的类或接口">Object</a></h3> |
|
216 |
<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone--" title="java.lang中的类或接口">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="java.lang中的类或接口">equals</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize--" title="java.lang中的类或接口">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass--" title="java.lang中的类或接口">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="java.lang中的类或接口">hashCode</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify--" title="java.lang中的类或接口">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="java.lang中的类或接口">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString--" title="java.lang中的类或接口">toString</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait--" title="java.lang中的类或接口">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="java.lang中的类或接口">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="java.lang中的类或接口">wait</a></code></li> |
|
217 |
</ul> |
|
218 |
</li> |
|
219 |
</ul> |
|
220 |
</li> |
|
221 |
</ul> |
|
222 |
</div> |
|
223 |
<div class="details"> |
|
224 |
<ul class="blockList"> |
|
225 |
<li class="blockList"> |
|
226 |
<!-- ========= CONSTRUCTOR DETAIL ======== --> |
|
227 |
<ul class="blockList"> |
|
228 |
<li class="blockList"><a name="constructor.detail"> |
|
229 |
<!-- --> |
|
230 |
</a> |
|
231 |
<h3>构造器详细资料</h3> |
|
232 |
<a name="LocalFirstLoadBalanceProxy--"> |
|
233 |
<!-- --> |
|
234 |
</a> |
|
235 |
<ul class="blockListLast"> |
|
236 |
<li class="blockList"> |
|
237 |
<h4>LocalFirstLoadBalanceProxy</h4> |
|
238 |
<pre>public LocalFirstLoadBalanceProxy()</pre> |
|
239 |
</li> |
|
240 |
</ul> |
|
241 |
</li> |
|
242 |
</ul> |
|
243 |
<!-- ============ METHOD DETAIL ========== --> |
|
244 |
<ul class="blockList"> |
|
245 |
<li class="blockList"><a name="method.detail"> |
|
246 |
<!-- --> |
|
247 |
</a> |
|
248 |
<h3>方法详细资料</h3> |
|
249 |
<a name="doSelect-com.weibo.api.motan.rpc.Request-"> |
|
250 |
<!-- --> |
|
251 |
</a> |
|
252 |
<ul class="blockList"> |
|
253 |
<li class="blockList"> |
|
254 |
<h4>doSelect</h4> |
|
255 |
<pre>protected com.weibo.api.motan.rpc.Referer doSelect(com.weibo.api.motan.rpc.Request request)</pre> |
|
256 |
<dl> |
|
257 |
<dt><span class="overrideSpecifyLabel">覆盖:</span></dt> |
|
258 |
<dd><code>doSelect</code> 在类中 <code>com.weibo.api.motan.cluster.loadbalance.LocalFirstLoadBalance</code></dd> |
|
259 |
</dl> |
|
260 |
</li> |
|
261 |
</ul> |
|
262 |
<a name="doSelectToHolder-com.weibo.api.motan.rpc.Request-java.util.List-"> |
|
263 |
<!-- --> |
|
264 |
</a> |
|
265 |
<ul class="blockListLast"> |
|
266 |
<li class="blockList"> |
|
267 |
<h4>doSelectToHolder</h4> |
|
268 |
<pre>protected void doSelectToHolder(com.weibo.api.motan.rpc.Request request, |
|
269 |
<a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="java.util中的类或接口">List</a> refersHolder)</pre> |
|
270 |
<dl> |
|
271 |
<dt><span class="overrideSpecifyLabel">覆盖:</span></dt> |
|
272 |
<dd><code>doSelectToHolder</code> 在类中 <code>com.weibo.api.motan.cluster.loadbalance.LocalFirstLoadBalance</code></dd> |
|
273 |
</dl> |
|
274 |
</li> |
|
275 |
</ul> |
|
276 |
</li> |
|
277 |
</ul> |
|
278 |
</li> |
|
279 |
</ul> |
|
280 |
</div> |
|
281 |
</div> |
|
282 |
<!-- ========= END OF CLASS DATA ========= --> |
|
283 |
<!-- ======= START OF BOTTOM NAVBAR ====== --> |
|
284 |
<div class="bottomNav"><a name="navbar.bottom"> |
|
285 |
<!-- --> |
|
286 |
</a> |
|
287 |
<div class="skipNav"><a href="#skip.navbar.bottom" title="跳过导航链接">跳过导航链接</a></div> |
|
288 |
<a name="navbar.bottom.firstrow"> |
|
289 |
<!-- --> |
|
290 |
</a> |
|
291 |
<ul class="navList" title="导航"> |
|
292 |
<li><a href="../../../../../overview-summary.html">概览</a></li> |
|
293 |
<li><a href="package-summary.html">程序包</a></li> |
|
294 |
<li class="navBarCell1Rev">类</li> |
|
295 |
<li><a href="class-use/LocalFirstLoadBalanceProxy.html">使用</a></li> |
|
296 |
<li><a href="package-tree.html">树</a></li> |
|
297 |
<li><a href="../../../../../deprecated-list.html">已过时</a></li> |
|
298 |
<li><a href="../../../../../index-all.html">索引</a></li> |
|
299 |
<li><a href="../../../../../help-doc.html">帮助</a></li> |
|
300 |
</ul> |
|
301 |
</div> |
|
302 |
<div class="subNav"> |
|
303 |
<ul class="navList"> |
|
304 |
<li><a href="../../../../../com/codingapi/tx/motan/balance/LCNBalanceProxy.html" title="com.codingapi.tx.motan.balance中的类"><span class="typeNameLink">上一个类</span></a></li> |
|
305 |
<li><a href="../../../../../com/codingapi/tx/motan/balance/RandomLoadBalanceProxy.html" title="com.codingapi.tx.motan.balance中的类"><span class="typeNameLink">下一个类</span></a></li> |
|
306 |
</ul> |
|
307 |
<ul class="navList"> |
|
308 |
<li><a href="../../../../../index.html?com/codingapi/tx/motan/balance/LocalFirstLoadBalanceProxy.html" target="_top">框架</a></li> |
|
309 |
<li><a href="LocalFirstLoadBalanceProxy.html" target="_top">无框架</a></li> |
|
310 |
</ul> |
|
311 |
<ul class="navList" id="allclasses_navbar_bottom"> |
|
312 |
<li><a href="../../../../../allclasses-noframe.html">所有类</a></li> |
|
313 |
</ul> |
|
314 |
<div> |
|
315 |
<script type="text/javascript"><!-- |
|
316 |
allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
|
317 |
if(window==top) { |
|
318 |
allClassesLink.style.display = "block"; |
|
319 |
} |
|
320 |
else { |
|
321 |
allClassesLink.style.display = "none"; |
|
322 |
} |
|
323 |
//--> |
|
324 |
</script> |
|
325 |
</div> |
|
326 |
<div> |
|
327 |
<ul class="subNavList"> |
|
328 |
<li>概要: </li> |
|
329 |
<li>嵌套 | </li> |
|
330 |
<li><a href="#fields.inherited.from.class.com.weibo.api.motan.cluster.loadbalance.LocalFirstLoadBalance">字段</a> | </li> |
|
331 |
<li><a href="#constructor.summary">构造器</a> | </li> |
|
332 |
<li><a href="#method.summary">方法</a></li> |
|
333 |
</ul> |
|
334 |
<ul class="subNavList"> |
|
335 |
<li>详细资料: </li> |
|
336 |
<li>字段 | </li> |
|
337 |
<li><a href="#constructor.detail">构造器</a> | </li> |
|
338 |
<li><a href="#method.detail">方法</a></li> |
|
339 |
</ul> |
|
340 |
</div> |
|
341 |
<a name="skip.navbar.bottom"> |
|
342 |
<!-- --> |
|
343 |
</a></div> |
|
344 |
<!-- ======== END OF BOTTOM NAVBAR ======= --> |
|
345 |
<p class="legalCopy"><small>Copyright © 2020. All rights reserved.</small></p> |
|
346 |
</body> |
|
347 |
</html> |