hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mi...@apache.org
Subject [02/30] hbase-site git commit: Published site at 845d00a16bc22cced0a2eead3d0ba48989968fb6.
Date Wed, 27 Jan 2016 16:39:49 GMT
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/6d411951/xref/org/apache/hadoop/hbase/ipc/RpcServer.html
----------------------------------------------------------------------
diff --git a/xref/org/apache/hadoop/hbase/ipc/RpcServer.html b/xref/org/apache/hadoop/hbase/ipc/RpcServer.html
index a200fad..0b6b26c 100644
--- a/xref/org/apache/hadoop/hbase/ipc/RpcServer.html
+++ b/xref/org/apache/hadoop/hbase/ipc/RpcServer.html
@@ -195,2475 +195,2411 @@
 <a class="jxr_linenumber" name="185" href="#185">185</a> <em class="jxr_javadoccomment">   */</em>
 <a class="jxr_linenumber" name="186" href="#186">186</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> DEFAULT_MAX_CALLQUEUE_SIZE = 1024 * 1024 * 1024;
 <a class="jxr_linenumber" name="187" href="#187">187</a> 
-<a class="jxr_linenumber" name="188" href="#188">188</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String WARN_DELAYED_CALLS = <span class="jxr_string">"hbase.ipc.warn.delayedrpc.number"</span>;
+<a class="jxr_linenumber" name="188" href="#188">188</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/hadoop/hbase/ipc/IPCUtil.html">IPCUtil</a> ipcUtil;
 <a class="jxr_linenumber" name="189" href="#189">189</a> 
-<a class="jxr_linenumber" name="190" href="#190">190</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> DEFAULT_WARN_DELAYED_CALLS = 1000;
-<a class="jxr_linenumber" name="191" href="#191">191</a> 
-<a class="jxr_linenumber" name="192" href="#192">192</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> warnDelayedCalls;
-<a class="jxr_linenumber" name="193" href="#193">193</a> 
-<a class="jxr_linenumber" name="194" href="#194">194</a>   <strong class="jxr_keyword">private</strong> AtomicInteger delayedCalls;
-<a class="jxr_linenumber" name="195" href="#195">195</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/hadoop/hbase/ipc/IPCUtil.html">IPCUtil</a> ipcUtil;
+<a class="jxr_linenumber" name="190" href="#190">190</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String AUTH_FAILED_FOR = <span class="jxr_string">"Auth failed for "</span>;
+<a class="jxr_linenumber" name="191" href="#191">191</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String AUTH_SUCCESSFUL_FOR = <span class="jxr_string">"Auth successful for "</span>;
+<a class="jxr_linenumber" name="192" href="#192">192</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> Log AUDITLOG = LogFactory.getLog(<span class="jxr_string">"SecurityLogger."</span> +
+<a class="jxr_linenumber" name="193" href="#193">193</a>     Server.<strong class="jxr_keyword">class</strong>.getName());
+<a class="jxr_linenumber" name="194" href="#194">194</a>   <strong class="jxr_keyword">protected</strong> SecretManager&lt;TokenIdentifier&gt; secretManager;
+<a class="jxr_linenumber" name="195" href="#195">195</a>   <strong class="jxr_keyword">protected</strong> ServiceAuthorizationManager authManager;
 <a class="jxr_linenumber" name="196" href="#196">196</a> 
-<a class="jxr_linenumber" name="197" href="#197">197</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String AUTH_FAILED_FOR = <span class="jxr_string">"Auth failed for "</span>;
-<a class="jxr_linenumber" name="198" href="#198">198</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String AUTH_SUCCESSFUL_FOR = <span class="jxr_string">"Auth successful for "</span>;
-<a class="jxr_linenumber" name="199" href="#199">199</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> Log AUDITLOG = LogFactory.getLog(<span class="jxr_string">"SecurityLogger."</span> +
-<a class="jxr_linenumber" name="200" href="#200">200</a>     Server.<strong class="jxr_keyword">class</strong>.getName());
-<a class="jxr_linenumber" name="201" href="#201">201</a>   <strong class="jxr_keyword">protected</strong> SecretManager&lt;TokenIdentifier&gt; secretManager;
-<a class="jxr_linenumber" name="202" href="#202">202</a>   <strong class="jxr_keyword">protected</strong> ServiceAuthorizationManager authManager;
-<a class="jxr_linenumber" name="203" href="#203">203</a> 
-<a class="jxr_linenumber" name="204" href="#204">204</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> This is set to Call object before Handler invokes an RPC and ybdie</em>
-<a class="jxr_linenumber" name="205" href="#205">205</a> <em class="jxr_javadoccomment">   * after the call returns.</em>
-<a class="jxr_linenumber" name="206" href="#206">206</a> <em class="jxr_javadoccomment">   */</em>
-<a class="jxr_linenumber" name="207" href="#207">207</a>   <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> ThreadLocal&lt;Call&gt; CurCall = <strong class="jxr_keyword">new</strong> ThreadLocal&lt;Call&gt;();
-<a class="jxr_linenumber" name="208" href="#208">208</a> 
-<a class="jxr_linenumber" name="209" href="#209">209</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Keeps <a href="../../../../../org/apache/hadoop/hbase/monitoring/MonitoredRPCHandler.html">MonitoredRPCHandler</a> per handler thread. */</em>
-<a class="jxr_linenumber" name="210" href="#210">210</a>   <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> ThreadLocal&lt;MonitoredRPCHandler&gt; MONITORED_RPC
-<a class="jxr_linenumber" name="211" href="#211">211</a>       = <strong class="jxr_keyword">new</strong> ThreadLocal&lt;MonitoredRPCHandler&gt;();
-<a class="jxr_linenumber" name="212" href="#212">212</a> 
-<a class="jxr_linenumber" name="213" href="#213">213</a>   <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">final</strong> InetSocketAddress bindAddress;
-<a class="jxr_linenumber" name="214" href="#214">214</a>   <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">int</strong> port;                             <em class="jxr_comment">// port we listen on</em>
-<a class="jxr_linenumber" name="215" href="#215">215</a>   <strong class="jxr_keyword">protected</strong> InetSocketAddress address;            <em class="jxr_comment">// inet address we listen on</em>
-<a class="jxr_linenumber" name="216" href="#216">216</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">int</strong> readThreads;                        <em class="jxr_comment">// number of read threads</em>
-<a class="jxr_linenumber" name="217" href="#217">217</a>   <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">int</strong> maxIdleTime;                      <em class="jxr_comment">// the maximum idle time after</em>
-<a class="jxr_linenumber" name="218" href="#218">218</a>                                                   <em class="jxr_comment">// which a client may be</em>
-<a class="jxr_linenumber" name="219" href="#219">219</a>                                                   <em class="jxr_comment">// disconnected</em>
-<a class="jxr_linenumber" name="220" href="#220">220</a>   <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">int</strong> thresholdIdleConnections;         <em class="jxr_comment">// the number of idle</em>
-<a class="jxr_linenumber" name="221" href="#221">221</a>                                                   <em class="jxr_comment">// connections after which we</em>
-<a class="jxr_linenumber" name="222" href="#222">222</a>                                                   <em class="jxr_comment">// will start cleaning up idle</em>
-<a class="jxr_linenumber" name="223" href="#223">223</a>                                                   <em class="jxr_comment">// connections</em>
-<a class="jxr_linenumber" name="224" href="#224">224</a>   <strong class="jxr_keyword">int</strong> maxConnectionsToNuke;                       <em class="jxr_comment">// the max number of</em>
-<a class="jxr_linenumber" name="225" href="#225">225</a>                                                   <em class="jxr_comment">// connections to nuke</em>
-<a class="jxr_linenumber" name="226" href="#226">226</a>                                                   <em class="jxr_comment">// during a cleanup</em>
-<a class="jxr_linenumber" name="227" href="#227">227</a> 
-<a class="jxr_linenumber" name="228" href="#228">228</a>   <strong class="jxr_keyword">protected</strong> <a href="../../../../../org/apache/hadoop/hbase/ipc/MetricsHBaseServer.html">MetricsHBaseServer</a> metrics;
-<a class="jxr_linenumber" name="229" href="#229">229</a> 
-<a class="jxr_linenumber" name="230" href="#230">230</a>   <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">final</strong> Configuration conf;
-<a class="jxr_linenumber" name="231" href="#231">231</a> 
-<a class="jxr_linenumber" name="232" href="#232">232</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">int</strong> maxQueueSize;
-<a class="jxr_linenumber" name="233" href="#233">233</a>   <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">int</strong> socketSendBufferSize;
-<a class="jxr_linenumber" name="234" href="#234">234</a>   <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">boolean</strong> tcpNoDelay;   <em class="jxr_comment">// if T then disable Nagle's Algorithm</em>
-<a class="jxr_linenumber" name="235" href="#235">235</a>   <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">boolean</strong> tcpKeepAlive; <em class="jxr_comment">// if T then use keepalives</em>
-<a class="jxr_linenumber" name="236" href="#236">236</a>   <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">long</strong> purgeTimeout;    <em class="jxr_comment">// in milliseconds</em>
+<a class="jxr_linenumber" name="197" href="#197">197</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> This is set to Call object before Handler invokes an RPC and ybdie</em>
+<a class="jxr_linenumber" name="198" href="#198">198</a> <em class="jxr_javadoccomment">   * after the call returns.</em>
+<a class="jxr_linenumber" name="199" href="#199">199</a> <em class="jxr_javadoccomment">   */</em>
+<a class="jxr_linenumber" name="200" href="#200">200</a>   <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> ThreadLocal&lt;Call&gt; CurCall = <strong class="jxr_keyword">new</strong> ThreadLocal&lt;Call&gt;();
+<a class="jxr_linenumber" name="201" href="#201">201</a> 
+<a class="jxr_linenumber" name="202" href="#202">202</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Keeps <a href="../../../../../org/apache/hadoop/hbase/monitoring/MonitoredRPCHandler.html">MonitoredRPCHandler</a> per handler thread. */</em>
+<a class="jxr_linenumber" name="203" href="#203">203</a>   <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> ThreadLocal&lt;MonitoredRPCHandler&gt; MONITORED_RPC
+<a class="jxr_linenumber" name="204" href="#204">204</a>       = <strong class="jxr_keyword">new</strong> ThreadLocal&lt;MonitoredRPCHandler&gt;();
+<a class="jxr_linenumber" name="205" href="#205">205</a> 
+<a class="jxr_linenumber" name="206" href="#206">206</a>   <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">final</strong> InetSocketAddress bindAddress;
+<a class="jxr_linenumber" name="207" href="#207">207</a>   <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">int</strong> port;                             <em class="jxr_comment">// port we listen on</em>
+<a class="jxr_linenumber" name="208" href="#208">208</a>   <strong class="jxr_keyword">protected</strong> InetSocketAddress address;            <em class="jxr_comment">// inet address we listen on</em>
+<a class="jxr_linenumber" name="209" href="#209">209</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">int</strong> readThreads;                        <em class="jxr_comment">// number of read threads</em>
+<a class="jxr_linenumber" name="210" href="#210">210</a>   <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">int</strong> maxIdleTime;                      <em class="jxr_comment">// the maximum idle time after</em>
+<a class="jxr_linenumber" name="211" href="#211">211</a>                                                   <em class="jxr_comment">// which a client may be</em>
+<a class="jxr_linenumber" name="212" href="#212">212</a>                                                   <em class="jxr_comment">// disconnected</em>
+<a class="jxr_linenumber" name="213" href="#213">213</a>   <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">int</strong> thresholdIdleConnections;         <em class="jxr_comment">// the number of idle</em>
+<a class="jxr_linenumber" name="214" href="#214">214</a>                                                   <em class="jxr_comment">// connections after which we</em>
+<a class="jxr_linenumber" name="215" href="#215">215</a>                                                   <em class="jxr_comment">// will start cleaning up idle</em>
+<a class="jxr_linenumber" name="216" href="#216">216</a>                                                   <em class="jxr_comment">// connections</em>
+<a class="jxr_linenumber" name="217" href="#217">217</a>   <strong class="jxr_keyword">int</strong> maxConnectionsToNuke;                       <em class="jxr_comment">// the max number of</em>
+<a class="jxr_linenumber" name="218" href="#218">218</a>                                                   <em class="jxr_comment">// connections to nuke</em>
+<a class="jxr_linenumber" name="219" href="#219">219</a>                                                   <em class="jxr_comment">// during a cleanup</em>
+<a class="jxr_linenumber" name="220" href="#220">220</a> 
+<a class="jxr_linenumber" name="221" href="#221">221</a>   <strong class="jxr_keyword">protected</strong> <a href="../../../../../org/apache/hadoop/hbase/ipc/MetricsHBaseServer.html">MetricsHBaseServer</a> metrics;
+<a class="jxr_linenumber" name="222" href="#222">222</a> 
+<a class="jxr_linenumber" name="223" href="#223">223</a>   <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">final</strong> Configuration conf;
+<a class="jxr_linenumber" name="224" href="#224">224</a> 
+<a class="jxr_linenumber" name="225" href="#225">225</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">int</strong> maxQueueSize;
+<a class="jxr_linenumber" name="226" href="#226">226</a>   <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">int</strong> socketSendBufferSize;
+<a class="jxr_linenumber" name="227" href="#227">227</a>   <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">boolean</strong> tcpNoDelay;   <em class="jxr_comment">// if T then disable Nagle's Algorithm</em>
+<a class="jxr_linenumber" name="228" href="#228">228</a>   <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">boolean</strong> tcpKeepAlive; <em class="jxr_comment">// if T then use keepalives</em>
+<a class="jxr_linenumber" name="229" href="#229">229</a>   <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">long</strong> purgeTimeout;    <em class="jxr_comment">// in milliseconds</em>
+<a class="jxr_linenumber" name="230" href="#230">230</a> 
+<a class="jxr_linenumber" name="231" href="#231">231</a>   <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="232" href="#232">232</a> <em class="jxr_javadoccomment">   * This flag is used to indicate to sub threads when they should go down.  When we call</em>
+<a class="jxr_linenumber" name="233" href="#233">233</a> <em class="jxr_javadoccomment">   * {@link #start()}, all threads started will consult this flag on whether they should</em>
+<a class="jxr_linenumber" name="234" href="#234">234</a> <em class="jxr_javadoccomment">   * keep going.  It is set to false when {@link #stop()} is called.</em>
+<a class="jxr_linenumber" name="235" href="#235">235</a> <em class="jxr_javadoccomment">   */</em>
+<a class="jxr_linenumber" name="236" href="#236">236</a>   <strong class="jxr_keyword">volatile</strong> <strong class="jxr_keyword">boolean</strong> running = <strong class="jxr_keyword">true</strong>;
 <a class="jxr_linenumber" name="237" href="#237">237</a> 
 <a class="jxr_linenumber" name="238" href="#238">238</a>   <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="239" href="#239">239</a> <em class="jxr_javadoccomment">   * This flag is used to indicate to sub threads when they should go down.  When we call</em>
-<a class="jxr_linenumber" name="240" href="#240">240</a> <em class="jxr_javadoccomment">   * {@link #start()}, all threads started will consult this flag on whether they should</em>
-<a class="jxr_linenumber" name="241" href="#241">241</a> <em class="jxr_javadoccomment">   * keep going.  It is set to false when {@link #stop()} is called.</em>
-<a class="jxr_linenumber" name="242" href="#242">242</a> <em class="jxr_javadoccomment">   */</em>
-<a class="jxr_linenumber" name="243" href="#243">243</a>   <strong class="jxr_keyword">volatile</strong> <strong class="jxr_keyword">boolean</strong> running = <strong class="jxr_keyword">true</strong>;
-<a class="jxr_linenumber" name="244" href="#244">244</a> 
-<a class="jxr_linenumber" name="245" href="#245">245</a>   <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="246" href="#246">246</a> <em class="jxr_javadoccomment">   * This flag is set to true after all threads are up and 'running' and the server is then opened</em>
-<a class="jxr_linenumber" name="247" href="#247">247</a> <em class="jxr_javadoccomment">   * for business by the call to {@link #start()}.</em>
-<a class="jxr_linenumber" name="248" href="#248">248</a> <em class="jxr_javadoccomment">   */</em>
-<a class="jxr_linenumber" name="249" href="#249">249</a>   <strong class="jxr_keyword">volatile</strong> <strong class="jxr_keyword">boolean</strong> started = false;
-<a class="jxr_linenumber" name="250" href="#250">250</a> 
-<a class="jxr_linenumber" name="251" href="#251">251</a>   <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="252" href="#252">252</a> <em class="jxr_javadoccomment">   * This is a running count of the size of all outstanding calls by size.</em>
-<a class="jxr_linenumber" name="253" href="#253">253</a> <em class="jxr_javadoccomment">   */</em>
-<a class="jxr_linenumber" name="254" href="#254">254</a>   <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/hadoop/hbase/util/Counter.html">Counter</a> callQueueSize = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/hadoop/hbase/util/Counter.html">Counter</a>();
-<a class="jxr_linenumber" name="255" href="#255">255</a> 
-<a class="jxr_linenumber" name="256" href="#256">256</a>   <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">final</strong> List&lt;Connection&gt; connectionList =
-<a class="jxr_linenumber" name="257" href="#257">257</a>     Collections.synchronizedList(<strong class="jxr_keyword">new</strong> LinkedList&lt;Connection&gt;());
-<a class="jxr_linenumber" name="258" href="#258">258</a>   <em class="jxr_comment">//maintain a list</em>
-<a class="jxr_linenumber" name="259" href="#259">259</a>   <em class="jxr_comment">//of client connections</em>
-<a class="jxr_linenumber" name="260" href="#260">260</a>   <strong class="jxr_keyword">private</strong> <a href="../../../../../org/apache/hadoop/hbase/client/ClusterStatusListener.html">Listener</a> listener = <strong class="jxr_keyword">null</strong>;
-<a class="jxr_linenumber" name="261" href="#261">261</a>   <strong class="jxr_keyword">protected</strong> <a href="../../../../../org/apache/hadoop/hbase/ipc/RpcServer.html">Responder</a> responder = <strong class="jxr_keyword">null</strong>;
-<a class="jxr_linenumber" name="262" href="#262">262</a>   <strong class="jxr_keyword">protected</strong> <a href="../../../../../org/apache/hadoop/hbase/security/token/AuthenticationTokenSecretManager.html">AuthenticationTokenSecretManager</a> authTokenSecretMgr = <strong class="jxr_keyword">null</strong>;
-<a class="jxr_linenumber" name="263" href="#263">263</a>   <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">int</strong> numConnections = 0;
-<a class="jxr_linenumber" name="264" href="#264">264</a> 
-<a class="jxr_linenumber" name="265" href="#265">265</a>   <strong class="jxr_keyword">protected</strong> <a href="../../../../../org/apache/hadoop/hbase/ipc/HBaseRPCErrorHandler.html">HBaseRPCErrorHandler</a> errorHandler = <strong class="jxr_keyword">null</strong>;
+<a class="jxr_linenumber" name="239" href="#239">239</a> <em class="jxr_javadoccomment">   * This flag is set to true after all threads are up and 'running' and the server is then opened</em>
+<a class="jxr_linenumber" name="240" href="#240">240</a> <em class="jxr_javadoccomment">   * for business by the call to {@link #start()}.</em>
+<a class="jxr_linenumber" name="241" href="#241">241</a> <em class="jxr_javadoccomment">   */</em>
+<a class="jxr_linenumber" name="242" href="#242">242</a>   <strong class="jxr_keyword">volatile</strong> <strong class="jxr_keyword">boolean</strong> started = false;
+<a class="jxr_linenumber" name="243" href="#243">243</a> 
+<a class="jxr_linenumber" name="244" href="#244">244</a>   <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="245" href="#245">245</a> <em class="jxr_javadoccomment">   * This is a running count of the size of all outstanding calls by size.</em>
+<a class="jxr_linenumber" name="246" href="#246">246</a> <em class="jxr_javadoccomment">   */</em>
+<a class="jxr_linenumber" name="247" href="#247">247</a>   <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/hadoop/hbase/util/Counter.html">Counter</a> callQueueSize = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/hadoop/hbase/util/Counter.html">Counter</a>();
+<a class="jxr_linenumber" name="248" href="#248">248</a> 
+<a class="jxr_linenumber" name="249" href="#249">249</a>   <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">final</strong> List&lt;Connection&gt; connectionList =
+<a class="jxr_linenumber" name="250" href="#250">250</a>     Collections.synchronizedList(<strong class="jxr_keyword">new</strong> LinkedList&lt;Connection&gt;());
+<a class="jxr_linenumber" name="251" href="#251">251</a>   <em class="jxr_comment">//maintain a list</em>
+<a class="jxr_linenumber" name="252" href="#252">252</a>   <em class="jxr_comment">//of client connections</em>
+<a class="jxr_linenumber" name="253" href="#253">253</a>   <strong class="jxr_keyword">private</strong> <a href="../../../../../org/apache/hadoop/hbase/client/ClusterStatusListener.html">Listener</a> listener = <strong class="jxr_keyword">null</strong>;
+<a class="jxr_linenumber" name="254" href="#254">254</a>   <strong class="jxr_keyword">protected</strong> <a href="../../../../../org/apache/hadoop/hbase/ipc/RpcServer.html">Responder</a> responder = <strong class="jxr_keyword">null</strong>;
+<a class="jxr_linenumber" name="255" href="#255">255</a>   <strong class="jxr_keyword">protected</strong> <a href="../../../../../org/apache/hadoop/hbase/security/token/AuthenticationTokenSecretManager.html">AuthenticationTokenSecretManager</a> authTokenSecretMgr = <strong class="jxr_keyword">null</strong>;
+<a class="jxr_linenumber" name="256" href="#256">256</a>   <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">int</strong> numConnections = 0;
+<a class="jxr_linenumber" name="257" href="#257">257</a> 
+<a class="jxr_linenumber" name="258" href="#258">258</a>   <strong class="jxr_keyword">protected</strong> <a href="../../../../../org/apache/hadoop/hbase/ipc/HBaseRPCErrorHandler.html">HBaseRPCErrorHandler</a> errorHandler = <strong class="jxr_keyword">null</strong>;
+<a class="jxr_linenumber" name="259" href="#259">259</a> 
+<a class="jxr_linenumber" name="260" href="#260">260</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String WARN_RESPONSE_TIME = <span class="jxr_string">"hbase.ipc.warn.response.time"</span>;
+<a class="jxr_linenumber" name="261" href="#261">261</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String WARN_RESPONSE_SIZE = <span class="jxr_string">"hbase.ipc.warn.response.size"</span>;
+<a class="jxr_linenumber" name="262" href="#262">262</a> 
+<a class="jxr_linenumber" name="263" href="#263">263</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Default value for above params */</em>
+<a class="jxr_linenumber" name="264" href="#264">264</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> DEFAULT_WARN_RESPONSE_TIME = 10000; <em class="jxr_comment">// milliseconds</em>
+<a class="jxr_linenumber" name="265" href="#265">265</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> DEFAULT_WARN_RESPONSE_SIZE = 100 * 1024 * 1024;
 <a class="jxr_linenumber" name="266" href="#266">266</a> 
-<a class="jxr_linenumber" name="267" href="#267">267</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String WARN_RESPONSE_TIME = <span class="jxr_string">"hbase.ipc.warn.response.time"</span>;
-<a class="jxr_linenumber" name="268" href="#268">268</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String WARN_RESPONSE_SIZE = <span class="jxr_string">"hbase.ipc.warn.response.size"</span>;
-<a class="jxr_linenumber" name="269" href="#269">269</a> 
-<a class="jxr_linenumber" name="270" href="#270">270</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Default value for above params */</em>
-<a class="jxr_linenumber" name="271" href="#271">271</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> DEFAULT_WARN_RESPONSE_TIME = 10000; <em class="jxr_comment">// milliseconds</em>
-<a class="jxr_linenumber" name="272" href="#272">272</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> DEFAULT_WARN_RESPONSE_SIZE = 100 * 1024 * 1024;
+<a class="jxr_linenumber" name="267" href="#267">267</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> ObjectMapper MAPPER = <strong class="jxr_keyword">new</strong> ObjectMapper();
+<a class="jxr_linenumber" name="268" href="#268">268</a> 
+<a class="jxr_linenumber" name="269" href="#269">269</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> warnResponseTime;
+<a class="jxr_linenumber" name="270" href="#270">270</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> warnResponseSize;
+<a class="jxr_linenumber" name="271" href="#271">271</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/hadoop/hbase/Server.html">Server</a> server;
+<a class="jxr_linenumber" name="272" href="#272">272</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> List&lt;BlockingServiceAndInterface&gt; services;
 <a class="jxr_linenumber" name="273" href="#273">273</a> 
-<a class="jxr_linenumber" name="274" href="#274">274</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> ObjectMapper MAPPER = <strong class="jxr_keyword">new</strong> ObjectMapper();
+<a class="jxr_linenumber" name="274" href="#274">274</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/hadoop/hbase/ipc/RpcScheduler.html">RpcScheduler</a> scheduler;
 <a class="jxr_linenumber" name="275" href="#275">275</a> 
-<a class="jxr_linenumber" name="276" href="#276">276</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> warnResponseTime;
-<a class="jxr_linenumber" name="277" href="#277">277</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> warnResponseSize;
-<a class="jxr_linenumber" name="278" href="#278">278</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/hadoop/hbase/Server.html">Server</a> server;
-<a class="jxr_linenumber" name="279" href="#279">279</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> List&lt;BlockingServiceAndInterface&gt; services;
-<a class="jxr_linenumber" name="280" href="#280">280</a> 
-<a class="jxr_linenumber" name="281" href="#281">281</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/hadoop/hbase/ipc/RpcScheduler.html">RpcScheduler</a> scheduler;
-<a class="jxr_linenumber" name="282" href="#282">282</a> 
-<a class="jxr_linenumber" name="283" href="#283">283</a>   <strong class="jxr_keyword">private</strong> <a href="../../../../../org/apache/hadoop/hbase/security/UserProvider.html">UserProvider</a> userProvider;
-<a class="jxr_linenumber" name="284" href="#284">284</a> 
-<a class="jxr_linenumber" name="285" href="#285">285</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/hadoop/hbase/io/BoundedByteBufferPool.html">BoundedByteBufferPool</a> reservoir;
-<a class="jxr_linenumber" name="286" href="#286">286</a> 
-<a class="jxr_linenumber" name="287" href="#287">287</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">volatile</strong> <strong class="jxr_keyword">boolean</strong> allowFallbackToSimpleAuth;
-<a class="jxr_linenumber" name="288" href="#288">288</a> 
-<a class="jxr_linenumber" name="289" href="#289">289</a>   <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="290" href="#290">290</a> <em class="jxr_javadoccomment">   * Datastructure that holds all necessary to a method invocation and then afterward, carries</em>
-<a class="jxr_linenumber" name="291" href="#291">291</a> <em class="jxr_javadoccomment">   * the result.</em>
-<a class="jxr_linenumber" name="292" href="#292">292</a> <em class="jxr_javadoccomment">   */</em>
-<a class="jxr_linenumber" name="293" href="#293">293</a>   <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/hadoop/hbase/ipc/RpcServer.html">Call</a> <strong class="jxr_keyword">implements</strong> <a href="../../../../../org/apache/hadoop/hbase/ipc/RpcCallContext.html">RpcCallContext</a> {
-<a class="jxr_linenumber" name="294" href="#294">294</a>     <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">int</strong> id;                             <em class="jxr_comment">// the client's call id</em>
-<a class="jxr_linenumber" name="295" href="#295">295</a>     <strong class="jxr_keyword">protected</strong> BlockingService service;
-<a class="jxr_linenumber" name="296" href="#296">296</a>     <strong class="jxr_keyword">protected</strong> MethodDescriptor md;
-<a class="jxr_linenumber" name="297" href="#297">297</a>     <strong class="jxr_keyword">protected</strong> RequestHeader header;
-<a class="jxr_linenumber" name="298" href="#298">298</a>     <strong class="jxr_keyword">protected</strong> Message param;                      <em class="jxr_comment">// the parameter passed</em>
-<a class="jxr_linenumber" name="299" href="#299">299</a>     <em class="jxr_comment">// Optional cell data passed outside of protobufs.</em>
-<a class="jxr_linenumber" name="300" href="#300">300</a>     <strong class="jxr_keyword">protected</strong> <a href="../../../../../org/apache/hadoop/hbase/CellScanner.html">CellScanner</a> cellScanner;
-<a class="jxr_linenumber" name="301" href="#301">301</a>     <strong class="jxr_keyword">protected</strong> <a href="../../../../../org/apache/hadoop/hbase/client/Connection.html">Connection</a> connection;              <em class="jxr_comment">// connection to client</em>
-<a class="jxr_linenumber" name="302" href="#302">302</a>     <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">long</strong> timestamp;      <em class="jxr_comment">// the time received when response is null</em>
-<a class="jxr_linenumber" name="303" href="#303">303</a>                                    <em class="jxr_comment">// the time served when response is not null</em>
-<a class="jxr_linenumber" name="304" href="#304">304</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="305" href="#305">305</a> <em class="jxr_javadoccomment">     * Chain of buffers to send as response.</em>
-<a class="jxr_linenumber" name="306" href="#306">306</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="307" href="#307">307</a>     <strong class="jxr_keyword">protected</strong> <a href="../../../../../org/apache/hadoop/hbase/ipc/BufferChain.html">BufferChain</a> response;
-<a class="jxr_linenumber" name="308" href="#308">308</a>     <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">boolean</strong> delayResponse;
-<a class="jxr_linenumber" name="309" href="#309">309</a>     <strong class="jxr_keyword">protected</strong> <a href="../../../../../org/apache/hadoop/hbase/ipc/RpcServer.html">Responder</a> responder;
-<a class="jxr_linenumber" name="310" href="#310">310</a>     <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">boolean</strong> delayReturnValue;           <em class="jxr_comment">// if the return value should be</em>
-<a class="jxr_linenumber" name="311" href="#311">311</a>                                                   <em class="jxr_comment">// set at call completion</em>
-<a class="jxr_linenumber" name="312" href="#312">312</a>     <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">long</strong> size;                          <em class="jxr_comment">// size of current call</em>
-<a class="jxr_linenumber" name="313" href="#313">313</a>     <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">boolean</strong> isError;
-<a class="jxr_linenumber" name="314" href="#314">314</a>     <strong class="jxr_keyword">protected</strong> TraceInfo tinfo;
-<a class="jxr_linenumber" name="315" href="#315">315</a>     <strong class="jxr_keyword">private</strong> ByteBuffer cellBlock = <strong class="jxr_keyword">null</strong>;
-<a class="jxr_linenumber" name="316" href="#316">316</a> 
-<a class="jxr_linenumber" name="317" href="#317">317</a>     <strong class="jxr_keyword">private</strong> <a href="../../../../../org/apache/hadoop/hbase/security/User.html">User</a> user;
-<a class="jxr_linenumber" name="318" href="#318">318</a>     <strong class="jxr_keyword">private</strong> InetAddress remoteAddress;
-<a class="jxr_linenumber" name="319" href="#319">319</a>     <strong class="jxr_keyword">private</strong> <a href="../../../../../org/apache/hadoop/hbase/ipc/RpcCallback.html">RpcCallback</a> callback;
-<a class="jxr_linenumber" name="320" href="#320">320</a> 
-<a class="jxr_linenumber" name="321" href="#321">321</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">long</strong> responseCellSize = 0;
-<a class="jxr_linenumber" name="322" href="#322">322</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">long</strong> responseBlockSize = 0;
-<a class="jxr_linenumber" name="323" href="#323">323</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">boolean</strong> retryImmediatelySupported;
-<a class="jxr_linenumber" name="324" href="#324">324</a> 
-<a class="jxr_linenumber" name="325" href="#325">325</a>     @edu.umd.cs.findbugs.annotations.SuppressWarnings(value=<span class="jxr_string">"NP_NULL_ON_SOME_PATH"</span>,
-<a class="jxr_linenumber" name="326" href="#326">326</a>         justification=<span class="jxr_string">"Can't figure why this complaint is happening... see below"</span>)
-<a class="jxr_linenumber" name="327" href="#327">327</a>     <a href="../../../../../org/apache/hadoop/hbase/ipc/RpcServer.html">Call</a>(<strong class="jxr_keyword">int</strong> id, <strong class="jxr_keyword">final</strong> BlockingService service, <strong class="jxr_keyword">final</strong> MethodDescriptor md, RequestHeader header,
-<a class="jxr_linenumber" name="328" href="#328">328</a>          Message param, <a href="../../../../../org/apache/hadoop/hbase/CellScanner.html">CellScanner</a> cellScanner, <a href="../../../../../org/apache/hadoop/hbase/client/Connection.html">Connection</a> connection, <a href="../../../../../org/apache/hadoop/hbase/ipc/RpcServer.html">Responder</a> responder,
-<a class="jxr_linenumber" name="329" href="#329">329</a>          <strong class="jxr_keyword">long</strong> size, TraceInfo tinfo, <strong class="jxr_keyword">final</strong> InetAddress remoteAddress) {
-<a class="jxr_linenumber" name="330" href="#330">330</a>       <strong class="jxr_keyword">this</strong>.id = id;
-<a class="jxr_linenumber" name="331" href="#331">331</a>       <strong class="jxr_keyword">this</strong>.service = service;
-<a class="jxr_linenumber" name="332" href="#332">332</a>       <strong class="jxr_keyword">this</strong>.md = md;
-<a class="jxr_linenumber" name="333" href="#333">333</a>       <strong class="jxr_keyword">this</strong>.header = header;
-<a class="jxr_linenumber" name="334" href="#334">334</a>       <strong class="jxr_keyword">this</strong>.param = param;
-<a class="jxr_linenumber" name="335" href="#335">335</a>       <strong class="jxr_keyword">this</strong>.cellScanner = cellScanner;
-<a class="jxr_linenumber" name="336" href="#336">336</a>       <strong class="jxr_keyword">this</strong>.connection = connection;
-<a class="jxr_linenumber" name="337" href="#337">337</a>       <strong class="jxr_keyword">this</strong>.timestamp = System.currentTimeMillis();
-<a class="jxr_linenumber" name="338" href="#338">338</a>       <strong class="jxr_keyword">this</strong>.response = <strong class="jxr_keyword">null</strong>;
-<a class="jxr_linenumber" name="339" href="#339">339</a>       <strong class="jxr_keyword">this</strong>.delayResponse = false;
-<a class="jxr_linenumber" name="340" href="#340">340</a>       <strong class="jxr_keyword">this</strong>.responder = responder;
-<a class="jxr_linenumber" name="341" href="#341">341</a>       <strong class="jxr_keyword">this</strong>.isError = false;
-<a class="jxr_linenumber" name="342" href="#342">342</a>       <strong class="jxr_keyword">this</strong>.size = size;
-<a class="jxr_linenumber" name="343" href="#343">343</a>       <strong class="jxr_keyword">this</strong>.tinfo = tinfo;
-<a class="jxr_linenumber" name="344" href="#344">344</a>       <strong class="jxr_keyword">this</strong>.user = connection == <strong class="jxr_keyword">null</strong>? <strong class="jxr_keyword">null</strong>: connection.user; <em class="jxr_comment">// FindBugs: NP_NULL_ON_SOME_PATH</em>
-<a class="jxr_linenumber" name="345" href="#345">345</a>       <strong class="jxr_keyword">this</strong>.remoteAddress = remoteAddress;
-<a class="jxr_linenumber" name="346" href="#346">346</a>       <strong class="jxr_keyword">this</strong>.retryImmediatelySupported =
-<a class="jxr_linenumber" name="347" href="#347">347</a>           connection == <strong class="jxr_keyword">null</strong>? <strong class="jxr_keyword">null</strong>: connection.retryImmediatelySupported;
-<a class="jxr_linenumber" name="348" href="#348">348</a>     }
-<a class="jxr_linenumber" name="349" href="#349">349</a> 
-<a class="jxr_linenumber" name="350" href="#350">350</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="351" href="#351">351</a> <em class="jxr_javadoccomment">     * Call is done. Execution happened and we returned results to client. It is now safe to</em>
-<a class="jxr_linenumber" name="352" href="#352">352</a> <em class="jxr_javadoccomment">     * cleanup.</em>
-<a class="jxr_linenumber" name="353" href="#353">353</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="354" href="#354">354</a>     @edu.umd.cs.findbugs.annotations.SuppressWarnings(value=<span class="jxr_string">"IS2_INCONSISTENT_SYNC"</span>,
-<a class="jxr_linenumber" name="355" href="#355">355</a>         justification=<span class="jxr_string">"Presume the lock on processing request held by caller is protection enough"</span>)
-<a class="jxr_linenumber" name="356" href="#356">356</a>     <strong class="jxr_keyword">void</strong> done() {
-<a class="jxr_linenumber" name="357" href="#357">357</a>       <strong class="jxr_keyword">if</strong> (<strong class="jxr_keyword">this</strong>.cellBlock != <strong class="jxr_keyword">null</strong> &amp;&amp; reservoir != <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="358" href="#358">358</a>         <em class="jxr_comment">// Return buffer to reservoir now we are done with it.</em>
-<a class="jxr_linenumber" name="359" href="#359">359</a>         reservoir.putBuffer(<strong class="jxr_keyword">this</strong>.cellBlock);
-<a class="jxr_linenumber" name="360" href="#360">360</a>         <strong class="jxr_keyword">this</strong>.cellBlock = <strong class="jxr_keyword">null</strong>;
-<a class="jxr_linenumber" name="361" href="#361">361</a>       }
-<a class="jxr_linenumber" name="362" href="#362">362</a>       <strong class="jxr_keyword">this</strong>.connection.decRpcCount();  <em class="jxr_comment">// Say that we're done with this call.</em>
-<a class="jxr_linenumber" name="363" href="#363">363</a>     }
-<a class="jxr_linenumber" name="364" href="#364">364</a> 
-<a class="jxr_linenumber" name="365" href="#365">365</a>     @Override
-<a class="jxr_linenumber" name="366" href="#366">366</a>     <strong class="jxr_keyword">public</strong> String toString() {
-<a class="jxr_linenumber" name="367" href="#367">367</a>       <strong class="jxr_keyword">return</strong> toShortString() + <span class="jxr_string">" param: "</span> +
-<a class="jxr_linenumber" name="368" href="#368">368</a>         (<strong class="jxr_keyword">this</strong>.param != <strong class="jxr_keyword">null</strong>? ProtobufUtil.getShortTextFormat(<strong class="jxr_keyword">this</strong>.param): <span class="jxr_string">""</span>) +
-<a class="jxr_linenumber" name="369" href="#369">369</a>         <span class="jxr_string">" connection: "</span> + connection.toString();
-<a class="jxr_linenumber" name="370" href="#370">370</a>     }
-<a class="jxr_linenumber" name="371" href="#371">371</a> 
-<a class="jxr_linenumber" name="372" href="#372">372</a>     <strong class="jxr_keyword">protected</strong> RequestHeader getHeader() {
-<a class="jxr_linenumber" name="373" href="#373">373</a>       <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>.header;
-<a class="jxr_linenumber" name="374" href="#374">374</a>     }
-<a class="jxr_linenumber" name="375" href="#375">375</a> 
-<a class="jxr_linenumber" name="376" href="#376">376</a>     <em class="jxr_comment">/*</em>
-<a class="jxr_linenumber" name="377" href="#377">377</a> <em class="jxr_comment">     * Short string representation without param info because param itself could be huge depends on</em>
-<a class="jxr_linenumber" name="378" href="#378">378</a> <em class="jxr_comment">     * the payload of a command</em>
-<a class="jxr_linenumber" name="379" href="#379">379</a> <em class="jxr_comment">     */</em>
-<a class="jxr_linenumber" name="380" href="#380">380</a>     String toShortString() {
-<a class="jxr_linenumber" name="381" href="#381">381</a>       String serviceName = <strong class="jxr_keyword">this</strong>.connection.service != <strong class="jxr_keyword">null</strong> ?
-<a class="jxr_linenumber" name="382" href="#382">382</a>           <strong class="jxr_keyword">this</strong>.connection.service.getDescriptorForType().getName() : <span class="jxr_string">"null"</span>;
-<a class="jxr_linenumber" name="383" href="#383">383</a>       <strong class="jxr_keyword">return</strong> <span class="jxr_string">"callId: "</span> + <strong class="jxr_keyword">this</strong>.id + <span class="jxr_string">" service: "</span> + serviceName +
-<a class="jxr_linenumber" name="384" href="#384">384</a>           <span class="jxr_string">" methodName: "</span> + ((<strong class="jxr_keyword">this</strong>.md != <strong class="jxr_keyword">null</strong>) ? <strong class="jxr_keyword">this</strong>.md.getName() : <span class="jxr_string">"n/a"</span>) +
-<a class="jxr_linenumber" name="385" href="#385">385</a>           <span class="jxr_string">" size: "</span> + StringUtils.TraditionalBinaryPrefix.<strong class="jxr_keyword">long</strong>2String(<strong class="jxr_keyword">this</strong>.size, <span class="jxr_string">""</span>, 1) +
-<a class="jxr_linenumber" name="386" href="#386">386</a>           <span class="jxr_string">" connection: "</span> + connection.toString();
-<a class="jxr_linenumber" name="387" href="#387">387</a>     }
-<a class="jxr_linenumber" name="388" href="#388">388</a> 
-<a class="jxr_linenumber" name="389" href="#389">389</a>     String toTraceString() {
-<a class="jxr_linenumber" name="390" href="#390">390</a>       String serviceName = <strong class="jxr_keyword">this</strong>.connection.service != <strong class="jxr_keyword">null</strong> ?
-<a class="jxr_linenumber" name="391" href="#391">391</a>                            <strong class="jxr_keyword">this</strong>.connection.service.getDescriptorForType().getName() : <span class="jxr_string">""</span>;
-<a class="jxr_linenumber" name="392" href="#392">392</a>       String methodName = (<strong class="jxr_keyword">this</strong>.md != <strong class="jxr_keyword">null</strong>) ? <strong class="jxr_keyword">this</strong>.md.getName() : <span class="jxr_string">""</span>;
-<a class="jxr_linenumber" name="393" href="#393">393</a>       <strong class="jxr_keyword">return</strong> serviceName + <span class="jxr_string">"."</span> + methodName;
-<a class="jxr_linenumber" name="394" href="#394">394</a>     }
-<a class="jxr_linenumber" name="395" href="#395">395</a> 
-<a class="jxr_linenumber" name="396" href="#396">396</a>     <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">synchronized</strong> <strong class="jxr_keyword">void</strong> setSaslTokenResponse(ByteBuffer response) {
-<a class="jxr_linenumber" name="397" href="#397">397</a>       <strong class="jxr_keyword">this</strong>.response = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/hadoop/hbase/ipc/BufferChain.html">BufferChain</a>(response);
-<a class="jxr_linenumber" name="398" href="#398">398</a>     }
-<a class="jxr_linenumber" name="399" href="#399">399</a> 
-<a class="jxr_linenumber" name="400" href="#400">400</a>     <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">synchronized</strong> <strong class="jxr_keyword">void</strong> setResponse(Object m, <strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/hadoop/hbase/CellScanner.html">CellScanner</a> cells,
-<a class="jxr_linenumber" name="401" href="#401">401</a>         Throwable t, String errorMsg) {
-<a class="jxr_linenumber" name="402" href="#402">402</a>       <strong class="jxr_keyword">if</strong> (<strong class="jxr_keyword">this</strong>.isError) <strong class="jxr_keyword">return</strong>;
-<a class="jxr_linenumber" name="403" href="#403">403</a>       <strong class="jxr_keyword">if</strong> (t != <strong class="jxr_keyword">null</strong>) <strong class="jxr_keyword">this</strong>.isError = <strong class="jxr_keyword">true</strong>;
-<a class="jxr_linenumber" name="404" href="#404">404</a>       <a href="../../../../../org/apache/hadoop/hbase/ipc/BufferChain.html">BufferChain</a> bc = <strong class="jxr_keyword">null</strong>;
-<a class="jxr_linenumber" name="405" href="#405">405</a>       <strong class="jxr_keyword">try</strong> {
-<a class="jxr_linenumber" name="406" href="#406">406</a>         ResponseHeader.Builder headerBuilder = ResponseHeader.newBuilder();
-<a class="jxr_linenumber" name="407" href="#407">407</a>         <em class="jxr_comment">// Presume it a pb Message.  Could be null.</em>
-<a class="jxr_linenumber" name="408" href="#408">408</a>         Message result = (Message)m;
-<a class="jxr_linenumber" name="409" href="#409">409</a>         <em class="jxr_comment">// Call id.</em>
-<a class="jxr_linenumber" name="410" href="#410">410</a>         headerBuilder.setCallId(<strong class="jxr_keyword">this</strong>.id);
-<a class="jxr_linenumber" name="411" href="#411">411</a>         <strong class="jxr_keyword">if</strong> (t != <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="412" href="#412">412</a>           ExceptionResponse.Builder exceptionBuilder = ExceptionResponse.newBuilder();
-<a class="jxr_linenumber" name="413" href="#413">413</a>           exceptionBuilder.setExceptionClassName(t.getClass().getName());
-<a class="jxr_linenumber" name="414" href="#414">414</a>           exceptionBuilder.setStackTrace(errorMsg);
-<a class="jxr_linenumber" name="415" href="#415">415</a>           exceptionBuilder.setDoNotRetry(t instanceof <a href="../../../../../org/apache/hadoop/hbase/DoNotRetryIOException.html">DoNotRetryIOException</a>);
-<a class="jxr_linenumber" name="416" href="#416">416</a>           <strong class="jxr_keyword">if</strong> (t instanceof RegionMovedException) {
-<a class="jxr_linenumber" name="417" href="#417">417</a>             <em class="jxr_comment">// Special casing for this exception.  This is only one carrying a payload.</em>
-<a class="jxr_linenumber" name="418" href="#418">418</a>             <em class="jxr_comment">// Do this instead of build a generic system for allowing exceptions carry</em>
-<a class="jxr_linenumber" name="419" href="#419">419</a>             <em class="jxr_comment">// any kind of payload.</em>
-<a class="jxr_linenumber" name="420" href="#420">420</a>             <a href="../../../../../org/apache/hadoop/hbase/exceptions/RegionMovedException.html">RegionMovedException</a> rme = (RegionMovedException)t;
-<a class="jxr_linenumber" name="421" href="#421">421</a>             exceptionBuilder.setHostname(rme.getHostname());
-<a class="jxr_linenumber" name="422" href="#422">422</a>             exceptionBuilder.setPort(rme.getPort());
-<a class="jxr_linenumber" name="423" href="#423">423</a>           }
-<a class="jxr_linenumber" name="424" href="#424">424</a>           <em class="jxr_comment">// Set the exception as the result of the method invocation.</em>
-<a class="jxr_linenumber" name="425" href="#425">425</a>           headerBuilder.setException(exceptionBuilder.build());
-<a class="jxr_linenumber" name="426" href="#426">426</a>         }
-<a class="jxr_linenumber" name="427" href="#427">427</a>         <em class="jxr_comment">// Pass reservoir to buildCellBlock. Keep reference to returne so can add it back to the</em>
-<a class="jxr_linenumber" name="428" href="#428">428</a>         <em class="jxr_comment">// reservoir when finished. This is hacky and the hack is not contained but benefits are</em>
-<a class="jxr_linenumber" name="429" href="#429">429</a>         <em class="jxr_comment">// high when we can avoid a big buffer allocation on each rpc.</em>
-<a class="jxr_linenumber" name="430" href="#430">430</a>         <strong class="jxr_keyword">this</strong>.cellBlock = ipcUtil.buildCellBlock(<strong class="jxr_keyword">this</strong>.connection.codec,
-<a class="jxr_linenumber" name="431" href="#431">431</a>           <strong class="jxr_keyword">this</strong>.connection.compressionCodec, cells, reservoir);
-<a class="jxr_linenumber" name="432" href="#432">432</a>         <strong class="jxr_keyword">if</strong> (<strong class="jxr_keyword">this</strong>.cellBlock != <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="433" href="#433">433</a>           CellBlockMeta.Builder cellBlockBuilder = CellBlockMeta.newBuilder();
-<a class="jxr_linenumber" name="434" href="#434">434</a>           <em class="jxr_comment">// Presumes the cellBlock bytebuffer has been flipped so limit has total size in it.</em>
-<a class="jxr_linenumber" name="435" href="#435">435</a>           cellBlockBuilder.setLength(<strong class="jxr_keyword">this</strong>.cellBlock.limit());
-<a class="jxr_linenumber" name="436" href="#436">436</a>           headerBuilder.setCellBlockMeta(cellBlockBuilder.build());
-<a class="jxr_linenumber" name="437" href="#437">437</a>         }
-<a class="jxr_linenumber" name="438" href="#438">438</a>         Message header = headerBuilder.build();
-<a class="jxr_linenumber" name="439" href="#439">439</a> 
-<a class="jxr_linenumber" name="440" href="#440">440</a>         <em class="jxr_comment">// Organize the response as a set of bytebuffers rather than collect it all together inside</em>
-<a class="jxr_linenumber" name="441" href="#441">441</a>         <em class="jxr_comment">// one big byte array; save on allocations.</em>
-<a class="jxr_linenumber" name="442" href="#442">442</a>         ByteBuffer bbHeader = IPCUtil.getDelimitedMessageAsByteBuffer(header);
-<a class="jxr_linenumber" name="443" href="#443">443</a>         ByteBuffer bbResult = IPCUtil.getDelimitedMessageAsByteBuffer(result);
-<a class="jxr_linenumber" name="444" href="#444">444</a>         <strong class="jxr_keyword">int</strong> totalSize = bbHeader.capacity() + (bbResult == <strong class="jxr_keyword">null</strong>? 0: bbResult.limit()) +
-<a class="jxr_linenumber" name="445" href="#445">445</a>           (<strong class="jxr_keyword">this</strong>.cellBlock == <strong class="jxr_keyword">null</strong>? 0: <strong class="jxr_keyword">this</strong>.cellBlock.limit());
-<a class="jxr_linenumber" name="446" href="#446">446</a>         ByteBuffer bbTotalSize = ByteBuffer.wrap(Bytes.toBytes(totalSize));
-<a class="jxr_linenumber" name="447" href="#447">447</a>         bc = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/hadoop/hbase/ipc/BufferChain.html">BufferChain</a>(bbTotalSize, bbHeader, bbResult, <strong class="jxr_keyword">this</strong>.cellBlock);
-<a class="jxr_linenumber" name="448" href="#448">448</a>         <strong class="jxr_keyword">if</strong> (connection.useWrap) {
-<a class="jxr_linenumber" name="449" href="#449">449</a>           bc = wrapWithSasl(bc);
-<a class="jxr_linenumber" name="450" href="#450">450</a>         }
-<a class="jxr_linenumber" name="451" href="#451">451</a>       } <strong class="jxr_keyword">catch</strong> (IOException e) {
-<a class="jxr_linenumber" name="452" href="#452">452</a>         LOG.warn(<span class="jxr_string">"Exception while creating response "</span> + e);
-<a class="jxr_linenumber" name="453" href="#453">453</a>       }
-<a class="jxr_linenumber" name="454" href="#454">454</a>       <strong class="jxr_keyword">this</strong>.response = bc;
-<a class="jxr_linenumber" name="455" href="#455">455</a>       <em class="jxr_comment">// Once a response message is created and set to this.response, this Call can be treated as</em>
-<a class="jxr_linenumber" name="456" href="#456">456</a>       <em class="jxr_comment">// done. The Responder thread will do the n/w write of this message back to client.</em>
-<a class="jxr_linenumber" name="457" href="#457">457</a>       <strong class="jxr_keyword">if</strong> (<strong class="jxr_keyword">this</strong>.callback != <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="458" href="#458">458</a>         <strong class="jxr_keyword">try</strong> {
-<a class="jxr_linenumber" name="459" href="#459">459</a>           <strong class="jxr_keyword">this</strong>.callback.run();
-<a class="jxr_linenumber" name="460" href="#460">460</a>         } <strong class="jxr_keyword">catch</strong> (Exception e) {
-<a class="jxr_linenumber" name="461" href="#461">461</a>           <em class="jxr_comment">// Don't allow any exception here to kill this handler thread.</em>
-<a class="jxr_linenumber" name="462" href="#462">462</a>           LOG.warn(<span class="jxr_string">"Exception while running the Rpc Callback."</span>, e);
-<a class="jxr_linenumber" name="463" href="#463">463</a>         }
-<a class="jxr_linenumber" name="464" href="#464">464</a>       }
-<a class="jxr_linenumber" name="465" href="#465">465</a>     }
-<a class="jxr_linenumber" name="466" href="#466">466</a> 
-<a class="jxr_linenumber" name="467" href="#467">467</a>     <strong class="jxr_keyword">private</strong> <a href="../../../../../org/apache/hadoop/hbase/ipc/BufferChain.html">BufferChain</a> wrapWithSasl(<a href="../../../../../org/apache/hadoop/hbase/ipc/BufferChain.html">BufferChain</a> bc)
-<a class="jxr_linenumber" name="468" href="#468">468</a>         <strong class="jxr_keyword">throws</strong> IOException {
-<a class="jxr_linenumber" name="469" href="#469">469</a>       <strong class="jxr_keyword">if</strong> (!<strong class="jxr_keyword">this</strong>.connection.useSasl) <strong class="jxr_keyword">return</strong> bc;
-<a class="jxr_linenumber" name="470" href="#470">470</a>       <em class="jxr_comment">// Looks like no way around this; saslserver wants a byte array.  I have to make it one.</em>
-<a class="jxr_linenumber" name="471" href="#471">471</a>       <em class="jxr_comment">// THIS IS A BIG UGLY COPY.</em>
-<a class="jxr_linenumber" name="472" href="#472">472</a>       byte [] responseBytes = bc.getBytes();
-<a class="jxr_linenumber" name="473" href="#473">473</a>       byte [] token;
-<a class="jxr_linenumber" name="474" href="#474">474</a>       <em class="jxr_comment">// synchronization may be needed since there can be multiple Handler</em>
-<a class="jxr_linenumber" name="475" href="#475">475</a>       <em class="jxr_comment">// threads using saslServer to wrap responses.</em>
-<a class="jxr_linenumber" name="476" href="#476">476</a>       <strong class="jxr_keyword">synchronized</strong> (connection.saslServer) {
-<a class="jxr_linenumber" name="477" href="#477">477</a>         token = connection.saslServer.wrap(responseBytes, 0, responseBytes.length);
-<a class="jxr_linenumber" name="478" href="#478">478</a>       }
-<a class="jxr_linenumber" name="479" href="#479">479</a>       <strong class="jxr_keyword">if</strong> (LOG.isTraceEnabled()) {
-<a class="jxr_linenumber" name="480" href="#480">480</a>         LOG.trace(<span class="jxr_string">"Adding saslServer wrapped token of size "</span> + token.length
-<a class="jxr_linenumber" name="481" href="#481">481</a>             + <span class="jxr_string">" as call response."</span>);
-<a class="jxr_linenumber" name="482" href="#482">482</a>       }
+<a class="jxr_linenumber" name="276" href="#276">276</a>   <strong class="jxr_keyword">private</strong> <a href="../../../../../org/apache/hadoop/hbase/security/UserProvider.html">UserProvider</a> userProvider;
+<a class="jxr_linenumber" name="277" href="#277">277</a> 
+<a class="jxr_linenumber" name="278" href="#278">278</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/hadoop/hbase/io/BoundedByteBufferPool.html">BoundedByteBufferPool</a> reservoir;
+<a class="jxr_linenumber" name="279" href="#279">279</a> 
+<a class="jxr_linenumber" name="280" href="#280">280</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">volatile</strong> <strong class="jxr_keyword">boolean</strong> allowFallbackToSimpleAuth;
+<a class="jxr_linenumber" name="281" href="#281">281</a> 
+<a class="jxr_linenumber" name="282" href="#282">282</a>   <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="283" href="#283">283</a> <em class="jxr_javadoccomment">   * Datastructure that holds all necessary to a method invocation and then afterward, carries</em>
+<a class="jxr_linenumber" name="284" href="#284">284</a> <em class="jxr_javadoccomment">   * the result.</em>
+<a class="jxr_linenumber" name="285" href="#285">285</a> <em class="jxr_javadoccomment">   */</em>
+<a class="jxr_linenumber" name="286" href="#286">286</a>   <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/hadoop/hbase/ipc/RpcServer.html">Call</a> <strong class="jxr_keyword">implements</strong> <a href="../../../../../org/apache/hadoop/hbase/ipc/RpcCallContext.html">RpcCallContext</a> {
+<a class="jxr_linenumber" name="287" href="#287">287</a>     <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">int</strong> id;                             <em class="jxr_comment">// the client's call id</em>
+<a class="jxr_linenumber" name="288" href="#288">288</a>     <strong class="jxr_keyword">protected</strong> BlockingService service;
+<a class="jxr_linenumber" name="289" href="#289">289</a>     <strong class="jxr_keyword">protected</strong> MethodDescriptor md;
+<a class="jxr_linenumber" name="290" href="#290">290</a>     <strong class="jxr_keyword">protected</strong> RequestHeader header;
+<a class="jxr_linenumber" name="291" href="#291">291</a>     <strong class="jxr_keyword">protected</strong> Message param;                      <em class="jxr_comment">// the parameter passed</em>
+<a class="jxr_linenumber" name="292" href="#292">292</a>     <em class="jxr_comment">// Optional cell data passed outside of protobufs.</em>
+<a class="jxr_linenumber" name="293" href="#293">293</a>     <strong class="jxr_keyword">protected</strong> <a href="../../../../../org/apache/hadoop/hbase/CellScanner.html">CellScanner</a> cellScanner;
+<a class="jxr_linenumber" name="294" href="#294">294</a>     <strong class="jxr_keyword">protected</strong> <a href="../../../../../org/apache/hadoop/hbase/client/Connection.html">Connection</a> connection;              <em class="jxr_comment">// connection to client</em>
+<a class="jxr_linenumber" name="295" href="#295">295</a>     <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">long</strong> timestamp;      <em class="jxr_comment">// the time received when response is null</em>
+<a class="jxr_linenumber" name="296" href="#296">296</a>                                    <em class="jxr_comment">// the time served when response is not null</em>
+<a class="jxr_linenumber" name="297" href="#297">297</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="298" href="#298">298</a> <em class="jxr_javadoccomment">     * Chain of buffers to send as response.</em>
+<a class="jxr_linenumber" name="299" href="#299">299</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="300" href="#300">300</a>     <strong class="jxr_keyword">protected</strong> <a href="../../../../../org/apache/hadoop/hbase/ipc/BufferChain.html">BufferChain</a> response;
+<a class="jxr_linenumber" name="301" href="#301">301</a>     <strong class="jxr_keyword">protected</strong> <a href="../../../../../org/apache/hadoop/hbase/ipc/RpcServer.html">Responder</a> responder;
+<a class="jxr_linenumber" name="302" href="#302">302</a> 
+<a class="jxr_linenumber" name="303" href="#303">303</a>     <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">long</strong> size;                          <em class="jxr_comment">// size of current call</em>
+<a class="jxr_linenumber" name="304" href="#304">304</a>     <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">boolean</strong> isError;
+<a class="jxr_linenumber" name="305" href="#305">305</a>     <strong class="jxr_keyword">protected</strong> TraceInfo tinfo;
+<a class="jxr_linenumber" name="306" href="#306">306</a>     <strong class="jxr_keyword">private</strong> ByteBuffer cellBlock = <strong class="jxr_keyword">null</strong>;
+<a class="jxr_linenumber" name="307" href="#307">307</a> 
+<a class="jxr_linenumber" name="308" href="#308">308</a>     <strong class="jxr_keyword">private</strong> <a href="../../../../../org/apache/hadoop/hbase/security/User.html">User</a> user;
+<a class="jxr_linenumber" name="309" href="#309">309</a>     <strong class="jxr_keyword">private</strong> InetAddress remoteAddress;
+<a class="jxr_linenumber" name="310" href="#310">310</a>     <strong class="jxr_keyword">private</strong> <a href="../../../../../org/apache/hadoop/hbase/ipc/RpcCallback.html">RpcCallback</a> callback;
+<a class="jxr_linenumber" name="311" href="#311">311</a> 
+<a class="jxr_linenumber" name="312" href="#312">312</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">long</strong> responseCellSize = 0;
+<a class="jxr_linenumber" name="313" href="#313">313</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">long</strong> responseBlockSize = 0;
+<a class="jxr_linenumber" name="314" href="#314">314</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">boolean</strong> retryImmediatelySupported;
+<a class="jxr_linenumber" name="315" href="#315">315</a> 
+<a class="jxr_linenumber" name="316" href="#316">316</a>     @edu.umd.cs.findbugs.annotations.SuppressWarnings(value=<span class="jxr_string">"NP_NULL_ON_SOME_PATH"</span>,
+<a class="jxr_linenumber" name="317" href="#317">317</a>         justification=<span class="jxr_string">"Can't figure why this complaint is happening... see below"</span>)
+<a class="jxr_linenumber" name="318" href="#318">318</a>     <a href="../../../../../org/apache/hadoop/hbase/ipc/RpcServer.html">Call</a>(<strong class="jxr_keyword">int</strong> id, <strong class="jxr_keyword">final</strong> BlockingService service, <strong class="jxr_keyword">final</strong> MethodDescriptor md, RequestHeader header,
+<a class="jxr_linenumber" name="319" href="#319">319</a>          Message param, <a href="../../../../../org/apache/hadoop/hbase/CellScanner.html">CellScanner</a> cellScanner, <a href="../../../../../org/apache/hadoop/hbase/client/Connection.html">Connection</a> connection, <a href="../../../../../org/apache/hadoop/hbase/ipc/RpcServer.html">Responder</a> responder,
+<a class="jxr_linenumber" name="320" href="#320">320</a>          <strong class="jxr_keyword">long</strong> size, TraceInfo tinfo, <strong class="jxr_keyword">final</strong> InetAddress remoteAddress) {
+<a class="jxr_linenumber" name="321" href="#321">321</a>       <strong class="jxr_keyword">this</strong>.id = id;
+<a class="jxr_linenumber" name="322" href="#322">322</a>       <strong class="jxr_keyword">this</strong>.service = service;
+<a class="jxr_linenumber" name="323" href="#323">323</a>       <strong class="jxr_keyword">this</strong>.md = md;
+<a class="jxr_linenumber" name="324" href="#324">324</a>       <strong class="jxr_keyword">this</strong>.header = header;
+<a class="jxr_linenumber" name="325" href="#325">325</a>       <strong class="jxr_keyword">this</strong>.param = param;
+<a class="jxr_linenumber" name="326" href="#326">326</a>       <strong class="jxr_keyword">this</strong>.cellScanner = cellScanner;
+<a class="jxr_linenumber" name="327" href="#327">327</a>       <strong class="jxr_keyword">this</strong>.connection = connection;
+<a class="jxr_linenumber" name="328" href="#328">328</a>       <strong class="jxr_keyword">this</strong>.timestamp = System.currentTimeMillis();
+<a class="jxr_linenumber" name="329" href="#329">329</a>       <strong class="jxr_keyword">this</strong>.response = <strong class="jxr_keyword">null</strong>;
+<a class="jxr_linenumber" name="330" href="#330">330</a>       <strong class="jxr_keyword">this</strong>.responder = responder;
+<a class="jxr_linenumber" name="331" href="#331">331</a>       <strong class="jxr_keyword">this</strong>.isError = false;
+<a class="jxr_linenumber" name="332" href="#332">332</a>       <strong class="jxr_keyword">this</strong>.size = size;
+<a class="jxr_linenumber" name="333" href="#333">333</a>       <strong class="jxr_keyword">this</strong>.tinfo = tinfo;
+<a class="jxr_linenumber" name="334" href="#334">334</a>       <strong class="jxr_keyword">this</strong>.user = connection == <strong class="jxr_keyword">null</strong>? <strong class="jxr_keyword">null</strong>: connection.user; <em class="jxr_comment">// FindBugs: NP_NULL_ON_SOME_PATH</em>
+<a class="jxr_linenumber" name="335" href="#335">335</a>       <strong class="jxr_keyword">this</strong>.remoteAddress = remoteAddress;
+<a class="jxr_linenumber" name="336" href="#336">336</a>       <strong class="jxr_keyword">this</strong>.retryImmediatelySupported =
+<a class="jxr_linenumber" name="337" href="#337">337</a>           connection == <strong class="jxr_keyword">null</strong>? <strong class="jxr_keyword">null</strong>: connection.retryImmediatelySupported;
+<a class="jxr_linenumber" name="338" href="#338">338</a>     }
+<a class="jxr_linenumber" name="339" href="#339">339</a> 
+<a class="jxr_linenumber" name="340" href="#340">340</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="341" href="#341">341</a> <em class="jxr_javadoccomment">     * Call is done. Execution happened and we returned results to client. It is now safe to</em>
+<a class="jxr_linenumber" name="342" href="#342">342</a> <em class="jxr_javadoccomment">     * cleanup.</em>
+<a class="jxr_linenumber" name="343" href="#343">343</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="344" href="#344">344</a>     @edu.umd.cs.findbugs.annotations.SuppressWarnings(value=<span class="jxr_string">"IS2_INCONSISTENT_SYNC"</span>,
+<a class="jxr_linenumber" name="345" href="#345">345</a>         justification=<span class="jxr_string">"Presume the lock on processing request held by caller is protection enough"</span>)
+<a class="jxr_linenumber" name="346" href="#346">346</a>     <strong class="jxr_keyword">void</strong> done() {
+<a class="jxr_linenumber" name="347" href="#347">347</a>       <strong class="jxr_keyword">if</strong> (<strong class="jxr_keyword">this</strong>.cellBlock != <strong class="jxr_keyword">null</strong> &amp;&amp; reservoir != <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="348" href="#348">348</a>         <em class="jxr_comment">// Return buffer to reservoir now we are done with it.</em>
+<a class="jxr_linenumber" name="349" href="#349">349</a>         reservoir.putBuffer(<strong class="jxr_keyword">this</strong>.cellBlock);
+<a class="jxr_linenumber" name="350" href="#350">350</a>         <strong class="jxr_keyword">this</strong>.cellBlock = <strong class="jxr_keyword">null</strong>;
+<a class="jxr_linenumber" name="351" href="#351">351</a>       }
+<a class="jxr_linenumber" name="352" href="#352">352</a>       <strong class="jxr_keyword">this</strong>.connection.decRpcCount();  <em class="jxr_comment">// Say that we're done with this call.</em>
+<a class="jxr_linenumber" name="353" href="#353">353</a>     }
+<a class="jxr_linenumber" name="354" href="#354">354</a> 
+<a class="jxr_linenumber" name="355" href="#355">355</a>     @Override
+<a class="jxr_linenumber" name="356" href="#356">356</a>     <strong class="jxr_keyword">public</strong> String toString() {
+<a class="jxr_linenumber" name="357" href="#357">357</a>       <strong class="jxr_keyword">return</strong> toShortString() + <span class="jxr_string">" param: "</span> +
+<a class="jxr_linenumber" name="358" href="#358">358</a>         (<strong class="jxr_keyword">this</strong>.param != <strong class="jxr_keyword">null</strong>? ProtobufUtil.getShortTextFormat(<strong class="jxr_keyword">this</strong>.param): <span class="jxr_string">""</span>) +
+<a class="jxr_linenumber" name="359" href="#359">359</a>         <span class="jxr_string">" connection: "</span> + connection.toString();
+<a class="jxr_linenumber" name="360" href="#360">360</a>     }
+<a class="jxr_linenumber" name="361" href="#361">361</a> 
+<a class="jxr_linenumber" name="362" href="#362">362</a>     <strong class="jxr_keyword">protected</strong> RequestHeader getHeader() {
+<a class="jxr_linenumber" name="363" href="#363">363</a>       <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>.header;
+<a class="jxr_linenumber" name="364" href="#364">364</a>     }
+<a class="jxr_linenumber" name="365" href="#365">365</a> 
+<a class="jxr_linenumber" name="366" href="#366">366</a>     <em class="jxr_comment">/*</em>
+<a class="jxr_linenumber" name="367" href="#367">367</a> <em class="jxr_comment">     * Short string representation without param info because param itself could be huge depends on</em>
+<a class="jxr_linenumber" name="368" href="#368">368</a> <em class="jxr_comment">     * the payload of a command</em>
+<a class="jxr_linenumber" name="369" href="#369">369</a> <em class="jxr_comment">     */</em>
+<a class="jxr_linenumber" name="370" href="#370">370</a>     String toShortString() {
+<a class="jxr_linenumber" name="371" href="#371">371</a>       String serviceName = <strong class="jxr_keyword">this</strong>.connection.service != <strong class="jxr_keyword">null</strong> ?
+<a class="jxr_linenumber" name="372" href="#372">372</a>           <strong class="jxr_keyword">this</strong>.connection.service.getDescriptorForType().getName() : <span class="jxr_string">"null"</span>;
+<a class="jxr_linenumber" name="373" href="#373">373</a>       <strong class="jxr_keyword">return</strong> <span class="jxr_string">"callId: "</span> + <strong class="jxr_keyword">this</strong>.id + <span class="jxr_string">" service: "</span> + serviceName +
+<a class="jxr_linenumber" name="374" href="#374">374</a>           <span class="jxr_string">" methodName: "</span> + ((<strong class="jxr_keyword">this</strong>.md != <strong class="jxr_keyword">null</strong>) ? <strong class="jxr_keyword">this</strong>.md.getName() : <span class="jxr_string">"n/a"</span>) +
+<a class="jxr_linenumber" name="375" href="#375">375</a>           <span class="jxr_string">" size: "</span> + StringUtils.TraditionalBinaryPrefix.<strong class="jxr_keyword">long</strong>2String(<strong class="jxr_keyword">this</strong>.size, <span class="jxr_string">""</span>, 1) +
+<a class="jxr_linenumber" name="376" href="#376">376</a>           <span class="jxr_string">" connection: "</span> + connection.toString();
+<a class="jxr_linenumber" name="377" href="#377">377</a>     }
+<a class="jxr_linenumber" name="378" href="#378">378</a> 
+<a class="jxr_linenumber" name="379" href="#379">379</a>     String toTraceString() {
+<a class="jxr_linenumber" name="380" href="#380">380</a>       String serviceName = <strong class="jxr_keyword">this</strong>.connection.service != <strong class="jxr_keyword">null</strong> ?
+<a class="jxr_linenumber" name="381" href="#381">381</a>                            <strong class="jxr_keyword">this</strong>.connection.service.getDescriptorForType().getName() : <span class="jxr_string">""</span>;
+<a class="jxr_linenumber" name="382" href="#382">382</a>       String methodName = (<strong class="jxr_keyword">this</strong>.md != <strong class="jxr_keyword">null</strong>) ? <strong class="jxr_keyword">this</strong>.md.getName() : <span class="jxr_string">""</span>;
+<a class="jxr_linenumber" name="383" href="#383">383</a>       <strong class="jxr_keyword">return</strong> serviceName + <span class="jxr_string">"."</span> + methodName;
+<a class="jxr_linenumber" name="384" href="#384">384</a>     }
+<a class="jxr_linenumber" name="385" href="#385">385</a> 
+<a class="jxr_linenumber" name="386" href="#386">386</a>     <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">synchronized</strong> <strong class="jxr_keyword">void</strong> setSaslTokenResponse(ByteBuffer response) {
+<a class="jxr_linenumber" name="387" href="#387">387</a>       <strong class="jxr_keyword">this</strong>.response = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/hadoop/hbase/ipc/BufferChain.html">BufferChain</a>(response);
+<a class="jxr_linenumber" name="388" href="#388">388</a>     }
+<a class="jxr_linenumber" name="389" href="#389">389</a> 
+<a class="jxr_linenumber" name="390" href="#390">390</a>     <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">synchronized</strong> <strong class="jxr_keyword">void</strong> setResponse(Object m, <strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/hadoop/hbase/CellScanner.html">CellScanner</a> cells,
+<a class="jxr_linenumber" name="391" href="#391">391</a>         Throwable t, String errorMsg) {
+<a class="jxr_linenumber" name="392" href="#392">392</a>       <strong class="jxr_keyword">if</strong> (<strong class="jxr_keyword">this</strong>.isError) <strong class="jxr_keyword">return</strong>;
+<a class="jxr_linenumber" name="393" href="#393">393</a>       <strong class="jxr_keyword">if</strong> (t != <strong class="jxr_keyword">null</strong>) <strong class="jxr_keyword">this</strong>.isError = <strong class="jxr_keyword">true</strong>;
+<a class="jxr_linenumber" name="394" href="#394">394</a>       <a href="../../../../../org/apache/hadoop/hbase/ipc/BufferChain.html">BufferChain</a> bc = <strong class="jxr_keyword">null</strong>;
+<a class="jxr_linenumber" name="395" href="#395">395</a>       <strong class="jxr_keyword">try</strong> {
+<a class="jxr_linenumber" name="396" href="#396">396</a>         ResponseHeader.Builder headerBuilder = ResponseHeader.newBuilder();
+<a class="jxr_linenumber" name="397" href="#397">397</a>         <em class="jxr_comment">// Presume it a pb Message.  Could be null.</em>
+<a class="jxr_linenumber" name="398" href="#398">398</a>         Message result = (Message)m;
+<a class="jxr_linenumber" name="399" href="#399">399</a>         <em class="jxr_comment">// Call id.</em>
+<a class="jxr_linenumber" name="400" href="#400">400</a>         headerBuilder.setCallId(<strong class="jxr_keyword">this</strong>.id);
+<a class="jxr_linenumber" name="401" href="#401">401</a>         <strong class="jxr_keyword">if</strong> (t != <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="402" href="#402">402</a>           ExceptionResponse.Builder exceptionBuilder = ExceptionResponse.newBuilder();
+<a class="jxr_linenumber" name="403" href="#403">403</a>           exceptionBuilder.setExceptionClassName(t.getClass().getName());
+<a class="jxr_linenumber" name="404" href="#404">404</a>           exceptionBuilder.setStackTrace(errorMsg);
+<a class="jxr_linenumber" name="405" href="#405">405</a>           exceptionBuilder.setDoNotRetry(t instanceof <a href="../../../../../org/apache/hadoop/hbase/DoNotRetryIOException.html">DoNotRetryIOException</a>);
+<a class="jxr_linenumber" name="406" href="#406">406</a>           <strong class="jxr_keyword">if</strong> (t instanceof RegionMovedException) {
+<a class="jxr_linenumber" name="407" href="#407">407</a>             <em class="jxr_comment">// Special casing for this exception.  This is only one carrying a payload.</em>
+<a class="jxr_linenumber" name="408" href="#408">408</a>             <em class="jxr_comment">// Do this instead of build a generic system for allowing exceptions carry</em>
+<a class="jxr_linenumber" name="409" href="#409">409</a>             <em class="jxr_comment">// any kind of payload.</em>
+<a class="jxr_linenumber" name="410" href="#410">410</a>             <a href="../../../../../org/apache/hadoop/hbase/exceptions/RegionMovedException.html">RegionMovedException</a> rme = (RegionMovedException)t;
+<a class="jxr_linenumber" name="411" href="#411">411</a>             exceptionBuilder.setHostname(rme.getHostname());
+<a class="jxr_linenumber" name="412" href="#412">412</a>             exceptionBuilder.setPort(rme.getPort());
+<a class="jxr_linenumber" name="413" href="#413">413</a>           }
+<a class="jxr_linenumber" name="414" href="#414">414</a>           <em class="jxr_comment">// Set the exception as the result of the method invocation.</em>
+<a class="jxr_linenumber" name="415" href="#415">415</a>           headerBuilder.setException(exceptionBuilder.build());
+<a class="jxr_linenumber" name="416" href="#416">416</a>         }
+<a class="jxr_linenumber" name="417" href="#417">417</a>         <em class="jxr_comment">// Pass reservoir to buildCellBlock. Keep reference to returne so can add it back to the</em>
+<a class="jxr_linenumber" name="418" href="#418">418</a>         <em class="jxr_comment">// reservoir when finished. This is hacky and the hack is not contained but benefits are</em>
+<a class="jxr_linenumber" name="419" href="#419">419</a>         <em class="jxr_comment">// high when we can avoid a big buffer allocation on each rpc.</em>
+<a class="jxr_linenumber" name="420" href="#420">420</a>         <strong class="jxr_keyword">this</strong>.cellBlock = ipcUtil.buildCellBlock(<strong class="jxr_keyword">this</strong>.connection.codec,
+<a class="jxr_linenumber" name="421" href="#421">421</a>           <strong class="jxr_keyword">this</strong>.connection.compressionCodec, cells, reservoir);
+<a class="jxr_linenumber" name="422" href="#422">422</a>         <strong class="jxr_keyword">if</strong> (<strong class="jxr_keyword">this</strong>.cellBlock != <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="423" href="#423">423</a>           CellBlockMeta.Builder cellBlockBuilder = CellBlockMeta.newBuilder();
+<a class="jxr_linenumber" name="424" href="#424">424</a>           <em class="jxr_comment">// Presumes the cellBlock bytebuffer has been flipped so limit has total size in it.</em>
+<a class="jxr_linenumber" name="425" href="#425">425</a>           cellBlockBuilder.setLength(<strong class="jxr_keyword">this</strong>.cellBlock.limit());
+<a class="jxr_linenumber" name="426" href="#426">426</a>           headerBuilder.setCellBlockMeta(cellBlockBuilder.build());
+<a class="jxr_linenumber" name="427" href="#427">427</a>         }
+<a class="jxr_linenumber" name="428" href="#428">428</a>         Message header = headerBuilder.build();
+<a class="jxr_linenumber" name="429" href="#429">429</a> 
+<a class="jxr_linenumber" name="430" href="#430">430</a>         <em class="jxr_comment">// Organize the response as a set of bytebuffers rather than collect it all together inside</em>
+<a class="jxr_linenumber" name="431" href="#431">431</a>         <em class="jxr_comment">// one big byte array; save on allocations.</em>
+<a class="jxr_linenumber" name="432" href="#432">432</a>         ByteBuffer bbHeader = IPCUtil.getDelimitedMessageAsByteBuffer(header);
+<a class="jxr_linenumber" name="433" href="#433">433</a>         ByteBuffer bbResult = IPCUtil.getDelimitedMessageAsByteBuffer(result);
+<a class="jxr_linenumber" name="434" href="#434">434</a>         <strong class="jxr_keyword">int</strong> totalSize = bbHeader.capacity() + (bbResult == <strong class="jxr_keyword">null</strong>? 0: bbResult.limit()) +
+<a class="jxr_linenumber" name="435" href="#435">435</a>           (<strong class="jxr_keyword">this</strong>.cellBlock == <strong class="jxr_keyword">null</strong>? 0: <strong class="jxr_keyword">this</strong>.cellBlock.limit());
+<a class="jxr_linenumber" name="436" href="#436">436</a>         ByteBuffer bbTotalSize = ByteBuffer.wrap(Bytes.toBytes(totalSize));
+<a class="jxr_linenumber" name="437" href="#437">437</a>         bc = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/hadoop/hbase/ipc/BufferChain.html">BufferChain</a>(bbTotalSize, bbHeader, bbResult, <strong class="jxr_keyword">this</strong>.cellBlock);
+<a class="jxr_linenumber" name="438" href="#438">438</a>         <strong class="jxr_keyword">if</strong> (connection.useWrap) {
+<a class="jxr_linenumber" name="439" href="#439">439</a>           bc = wrapWithSasl(bc);
+<a class="jxr_linenumber" name="440" href="#440">440</a>         }
+<a class="jxr_linenumber" name="441" href="#441">441</a>       } <strong class="jxr_keyword">catch</strong> (IOException e) {
+<a class="jxr_linenumber" name="442" href="#442">442</a>         LOG.warn(<span class="jxr_string">"Exception while creating response "</span> + e);
+<a class="jxr_linenumber" name="443" href="#443">443</a>       }
+<a class="jxr_linenumber" name="444" href="#444">444</a>       <strong class="jxr_keyword">this</strong>.response = bc;
+<a class="jxr_linenumber" name="445" href="#445">445</a>       <em class="jxr_comment">// Once a response message is created and set to this.response, this Call can be treated as</em>
+<a class="jxr_linenumber" name="446" href="#446">446</a>       <em class="jxr_comment">// done. The Responder thread will do the n/w write of this message back to client.</em>
+<a class="jxr_linenumber" name="447" href="#447">447</a>       <strong class="jxr_keyword">if</strong> (<strong class="jxr_keyword">this</strong>.callback != <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="448" href="#448">448</a>         <strong class="jxr_keyword">try</strong> {
+<a class="jxr_linenumber" name="449" href="#449">449</a>           <strong class="jxr_keyword">this</strong>.callback.run();
+<a class="jxr_linenumber" name="450" href="#450">450</a>         } <strong class="jxr_keyword">catch</strong> (Exception e) {
+<a class="jxr_linenumber" name="451" href="#451">451</a>           <em class="jxr_comment">// Don't allow any exception here to kill this handler thread.</em>
+<a class="jxr_linenumber" name="452" href="#452">452</a>           LOG.warn(<span class="jxr_string">"Exception while running the Rpc Callback."</span>, e);
+<a class="jxr_linenumber" name="453" href="#453">453</a>         }
+<a class="jxr_linenumber" name="454" href="#454">454</a>       }
+<a class="jxr_linenumber" name="455" href="#455">455</a>     }
+<a class="jxr_linenumber" name="456" href="#456">456</a> 
+<a class="jxr_linenumber" name="457" href="#457">457</a>     <strong class="jxr_keyword">private</strong> <a href="../../../../../org/apache/hadoop/hbase/ipc/BufferChain.html">BufferChain</a> wrapWithSasl(<a href="../../../../../org/apache/hadoop/hbase/ipc/BufferChain.html">BufferChain</a> bc)
+<a class="jxr_linenumber" name="458" href="#458">458</a>         <strong class="jxr_keyword">throws</strong> IOException {
+<a class="jxr_linenumber" name="459" href="#459">459</a>       <strong class="jxr_keyword">if</strong> (!<strong class="jxr_keyword">this</strong>.connection.useSasl) <strong class="jxr_keyword">return</strong> bc;
+<a class="jxr_linenumber" name="460" href="#460">460</a>       <em class="jxr_comment">// Looks like no way around this; saslserver wants a byte array.  I have to make it one.</em>
+<a class="jxr_linenumber" name="461" href="#461">461</a>       <em class="jxr_comment">// THIS IS A BIG UGLY COPY.</em>
+<a class="jxr_linenumber" name="462" href="#462">462</a>       byte [] responseBytes = bc.getBytes();
+<a class="jxr_linenumber" name="463" href="#463">463</a>       byte [] token;
+<a class="jxr_linenum

<TRUNCATED>

Mime
View raw message