http://git-wip-us.apache.org/repos/asf/hbase-site/blob/58f51408/devapidocs/org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html ---------------------------------------------------------------------- diff --git a/devapidocs/org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html b/devapidocs/org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html index c006e05..44a90e5 100644 --- a/devapidocs/org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html +++ b/devapidocs/org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html @@ -101,7 +101,7 @@ <hr> <br> <pre><a href="../../../../../org/apache/hadoop/hbase/classification/InterfaceAudience.Private.html" title="annotation in org.apache.hadoop.hbase.classification">@InterfaceAudience.Private</a> - class <a href="../../../../../src-html/org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html#line.74">PreemptiveFastFailInterceptor</a> + class <a href="../../../../../src-html/org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html#line.68">PreemptiveFastFailInterceptor</a> extends <a href="../../../../../org/apache/hadoop/hbase/client/RetryingCallerInterceptor.html" title="class in org.apache.hadoop.hbase.client">RetryingCallerInterceptor</a></pre> <div class="block">The concrete <a href="../../../../../org/apache/hadoop/hbase/client/RetryingCallerInterceptor.html" title="class in org.apache.hadoop.hbase.client"><code>RetryingCallerInterceptor</code></a> class that implements the preemptive fast fail feature. @@ -230,7 +230,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/client/RetryingCallerInt </td> </tr> <tr class="altColor"> -<td class="colFirst"><code>private void</code></td> +<td class="colFirst"><code>protected void</code></td> <td class="colLast"><code><strong><a href="../../../../../org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html#handleFailureToServer(org.apache.hadoop.hbase.ServerName,%20java.lang.Throwable)">handleFailureToServer</a></strong>(<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a> serverName, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> t)</code> <div class="block">Handles failures encountered when communicating with a server.</div> @@ -238,9 +238,10 @@ extends <a href="../../../../../org/apache/hadoop/hbase/client/RetryingCallerInt </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> -<td class="colLast"><code><strong><a href="../../../../../org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html#handleThrowable(java.lang.Throwable,%20org.apache.hadoop.hbase.ServerName,%20org.apache.commons.lang.mutable.MutableBoolean)">handleThrowable</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> t1, +<td class="colLast"><code><strong><a href="../../../../../org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html#handleThrowable(java.lang.Throwable,%20org.apache.hadoop.hbase.ServerName,%20org.apache.commons.lang.mutable.MutableBoolean,%20org.apache.commons.lang.mutable.MutableBoolean)">handleThrowable</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> t1, <a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a> serverName, - org.apache.commons.lang.mutable.MutableBoolean couldNotCommunicateWithServer)</code> </td> + org.apache.commons.lang.mutable.MutableBoolean couldNotCommunicateWithServer, + org.apache.commons.lang.mutable.MutableBoolean guaranteedClientSideOnly)</code> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>private boolean</code></td> @@ -259,37 +260,26 @@ extends <a href="../../../../../org/apache/hadoop/hbase/client/RetryingCallerInt </td> </tr> <tr class="rowColor"> -<td class="colFirst"><code>private boolean</code></td> -<td class="colLast"><code><strong><a href="../../../../../org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html#isConnectionException(java.lang.Throwable)">isConnectionException</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> e)</code> -<div class="block">Check if the exception is something that indicates that we cannot - contact/communicate with the server.</div> -</td> -</tr> -<tr class="altColor"> <td class="colFirst"><code>protected boolean</code></td> <td class="colLast"><code><strong><a href="../../../../../org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html#isServerInFailureMap(org.apache.hadoop.hbase.ServerName)">isServerInFailureMap</a></strong>(<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a> serverName)</code> </td> </tr> -<tr class="rowColor"> +<tr class="altColor"> <td class="colFirst"><code>protected void</code></td> <td class="colLast"><code><strong><a href="../../../../../org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html#occasionallyCleanupFailureInformation()">occasionallyCleanupFailureInformation</a></strong>()</code> <div class="block">Occasionally cleans up unused information in repeatedFailuresMap.</div> </td> </tr> -<tr class="altColor"> +<tr class="rowColor"> <td class="colFirst"><code>protected boolean</code></td> <td class="colLast"><code><strong><a href="../../../../../org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html#shouldRetryInspiteOfFastFail(org.apache.hadoop.hbase.client.FailureInfo)">shouldRetryInspiteOfFastFail</a></strong>(<a href="../../../../../org/apache/hadoop/hbase/client/FailureInfo.html" title="class in org.apache.hadoop.hbase.client">FailureInfo</a> fInfo)</code> <div class="block">Check to see if the client should try to connnect to the server, inspite of knowing that it is in the fast fail mode.</div> </td> </tr> -<tr class="rowColor"> +<tr class="altColor"> <td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> <td class="colLast"><code><strong><a href="../../../../../org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html#toString()">toString</a></strong>()</code> </td> </tr> -<tr class="altColor"> -<td class="colFirst"><code>private <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a></code></td> -<td class="colLast"><code><strong><a href="../../../../../org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html#translateException(java.lang.Throwable)">translateException</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> t)</code> </td> -</tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../../../org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html#updateFailureInfo(org.apache.hadoop.hbase.client.FastFailInterceptorContext)">updateFailureInfo</a></strong>(<a href="../../../../../org/apache/hadoop/hbase/client/FastFailInterceptorContext.html" title="class in org.apache.hadoop.hbase.client">FastFailInterceptorContext</a> context)</code> </td> @@ -339,7 +329,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/client/RetryingCallerInt <ul class="blockList"> <li class="blockList"> <h4>LOG</h4> -<pre>private static final org.apache.commons.logging.Log <a href="../../../../../src-html/org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html#line.76">LOG</a></pre> +<pre>private static final org.apache.commons.logging.Log <a href="../../../../../src-html/org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html#line.70">LOG</a></pre> </li> </ul> <a name="fastFailThresholdMilliSec"> @@ -348,7 +338,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/client/RetryingCallerInt <ul class="blockList"> <li class="blockList"> <h4>fastFailThresholdMilliSec</h4> -<pre>protected final long <a href="../../../../../src-html/org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html#line.81">fastFailThresholdMilliSec</a></pre> +<pre>protected final long <a href="../../../../../src-html/org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html#line.75">fastFailThresholdMilliSec</a></pre> </li> </ul> <a name="repeatedFailuresMap"> @@ -357,7 +347,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/client/RetryingCallerInt <ul class="blockList"> <li class="blockList"> <h4>repeatedFailuresMap</h4> -<pre>protected final <a href="http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/ConcurrentMap.html?is-external=true" title="class or interface in java.util.concurrent">ConcurrentMap</a><<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a>,<a href="../../../../../org/apache/hadoop/hbase/client/FailureInfo.html" title="class in org.apache.hadoop.hbase.client">FailureInfo</a>> <a href="../../../../../src-html/org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html#line.85">repeatedFailuresMap</a></pre> +<pre>protected final <a href="http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/ConcurrentMap.html?is-external=true" title="class or interface in java.util.concurrent">ConcurrentMap</a><<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a>,<a href="../../../../../org/apache/hadoop/hbase/client/FailureInfo.html" title="class in org.apache.hadoop.hbase.client">FailureInfo</a>> <a href="../../../../../src-html/org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html#line.79">repeatedFailuresMap</a></pre> </li> </ul> <a name="failureMapCleanupIntervalMilliSec"> @@ -366,7 +356,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/client/RetryingCallerInt <ul class="blockList"> <li class="blockList"> <h4>failureMapCleanupIntervalMilliSec</h4> -<pre>protected final long <a href="../../../../../src-html/org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html#line.91">failureMapCleanupIntervalMilliSec</a></pre> +<pre>protected final long <a href="../../../../../src-html/org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html#line.85">failureMapCleanupIntervalMilliSec</a></pre> </li> </ul> <a name="lastFailureMapCleanupTimeMilliSec"> @@ -375,7 +365,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/client/RetryingCallerInt <ul class="blockList"> <li class="blockList"> <h4>lastFailureMapCleanupTimeMilliSec</h4> -<pre>protected volatile long <a href="../../../../../src-html/org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html#line.93">lastFailureMapCleanupTimeMilliSec</a></pre> +<pre>protected volatile long <a href="../../../../../src-html/org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html#line.87">lastFailureMapCleanupTimeMilliSec</a></pre> </li> </ul> <a name="fastFailClearingTimeMilliSec"> @@ -384,7 +374,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/client/RetryingCallerInt <ul class="blockList"> <li class="blockList"> <h4>fastFailClearingTimeMilliSec</h4> -<pre>private long <a href="../../../../../src-html/org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html#line.98">fastFailClearingTimeMilliSec</a></pre> +<pre>private long <a href="../../../../../src-html/org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html#line.92">fastFailClearingTimeMilliSec</a></pre> </li> </ul> <a name="threadRetryingInFastFailMode"> @@ -393,7 +383,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/client/RetryingCallerInt <ul class="blockListLast"> <li class="blockList"> <h4>threadRetryingInFastFailMode</h4> -<pre>private final <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/ThreadLocal.html?is-external=true" title="class or interface in java.lang">ThreadLocal</a><org.apache.commons.lang.mutable.MutableBoolean> <a href="../../../../../src-html/org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html#line.100">threadRetryingInFastFailMode</a></pre> +<pre>private final <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/ThreadLocal.html?is-external=true" title="class or interface in java.lang">ThreadLocal</a><org.apache.commons.lang.mutable.MutableBoolean> <a href="../../../../../src-html/org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html#line.94">threadRetryingInFastFailMode</a></pre> </li> </ul> </li> @@ -410,7 +400,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/client/RetryingCallerInt <ul class="blockListLast"> <li class="blockList"> <h4>PreemptiveFastFailInterceptor</h4> -<pre>public <a href="../../../../../src-html/org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html#line.103">PreemptiveFastFailInterceptor</a>(org.apache.hadoop.conf.Configuration conf)</pre> +<pre>public <a href="../../../../../src-html/org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html#line.97">PreemptiveFastFailInterceptor</a>(org.apache.hadoop.conf.Configuration conf)</pre> </li> </ul> </li> @@ -427,7 +417,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/client/RetryingCallerInt <ul class="blockList"> <li class="blockList"> <h4>intercept</h4> -<pre>public void <a href="../../../../../src-html/org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html#line.113">intercept</a>(<a href="../../../../../org/apache/hadoop/hbase/client/FastFailInterceptorContext.html" title="class in org.apache.hadoop.hbase.client">FastFailInterceptorContext</a> context) +<pre>public void <a href="../../../../../src-html/org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html#line.107">intercept</a>(<a href="../../../../../org/apache/hadoop/hbase/client/FastFailInterceptorContext.html" title="class in org.apache.hadoop.hbase.client">FastFailInterceptorContext</a> context) throws <a href="../../../../../org/apache/hadoop/hbase/exceptions/PreemptiveFastFailException.html" title="class in org.apache.hadoop.hbase.exceptions">PreemptiveFastFailException</a></pre> <dl><dt><span class="strong">Throws:</span></dt> <dd><code><a href="../../../../../org/apache/hadoop/hbase/exceptions/PreemptiveFastFailException.html" title="class in org.apache.hadoop.hbase.exceptions">PreemptiveFastFailException</a></code></dd></dl> @@ -439,7 +429,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/client/RetryingCallerInt <ul class="blockList"> <li class="blockList"> <h4>handleFailure</h4> -<pre>public void <a href="../../../../../src-html/org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html#line.133">handleFailure</a>(<a href="../../../../../org/apache/hadoop/hbase/client/FastFailInterceptorContext.html" title="class in org.apache.hadoop.hbase.client">FastFailInterceptorContext</a> context, +<pre>public void <a href="../../../../../src-html/org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html#line.128">handleFailure</a>(<a href="../../../../../org/apache/hadoop/hbase/client/FastFailInterceptorContext.html" title="class in org.apache.hadoop.hbase.client">FastFailInterceptorContext</a> context, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> t) throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> <dl><dt><span class="strong">Throws:</span></dt> @@ -452,7 +442,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/client/RetryingCallerInt <ul class="blockList"> <li class="blockList"> <h4>updateFailureInfo</h4> -<pre>public void <a href="../../../../../src-html/org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html#line.139">updateFailureInfo</a>(<a href="../../../../../org/apache/hadoop/hbase/client/FastFailInterceptorContext.html" title="class in org.apache.hadoop.hbase.client">FastFailInterceptorContext</a> context)</pre> +<pre>public void <a href="../../../../../src-html/org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html#line.135">updateFailureInfo</a>(<a href="../../../../../org/apache/hadoop/hbase/client/FastFailInterceptorContext.html" title="class in org.apache.hadoop.hbase.client">FastFailInterceptorContext</a> context)</pre> </li> </ul> <a name="handleFailureToServer(org.apache.hadoop.hbase.ServerName, java.lang.Throwable)"> @@ -461,7 +451,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/client/RetryingCallerInt <ul class="blockList"> <li class="blockList"> <h4>handleFailureToServer</h4> -<pre>private void <a href="../../../../../src-html/org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html#line.156">handleFailureToServer</a>(<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a> serverName, +<pre>protected void <a href="../../../../../src-html/org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html#line.153">handleFailureToServer</a>(<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a> serverName, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> t)</pre> <div class="block">Handles failures encountered when communicating with a server. @@ -472,52 +462,28 @@ extends <a href="../../../../../org/apache/hadoop/hbase/client/RetryingCallerInt <dd><code><a href="../../../../../org/apache/hadoop/hbase/exceptions/PreemptiveFastFailException.html" title="class in org.apache.hadoop.hbase.exceptions">PreemptiveFastFailException</a></code></dd></dl> </li> </ul> -<a name="handleThrowable(java.lang.Throwable, org.apache.hadoop.hbase.ServerName, org.apache.commons.lang.mutable.MutableBoolean)"> +<a name="handleThrowable(java.lang.Throwable, org.apache.hadoop.hbase.ServerName, org.apache.commons.lang.mutable.MutableBoolean, org.apache.commons.lang.mutable.MutableBoolean)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>handleThrowable</h4> -<pre>public void <a href="../../../../../src-html/org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html#line.174">handleThrowable</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> t1, +<pre>public void <a href="../../../../../src-html/org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html#line.171">handleThrowable</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> t1, <a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a> serverName, - org.apache.commons.lang.mutable.MutableBoolean couldNotCommunicateWithServer) + org.apache.commons.lang.mutable.MutableBoolean couldNotCommunicateWithServer, + org.apache.commons.lang.mutable.MutableBoolean guaranteedClientSideOnly) throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> <dl><dt><span class="strong">Throws:</span></dt> <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd></dl> </li> </ul> -<a name="translateException(java.lang.Throwable)"> -<!-- --> -</a> -<ul class="blockList"> -<li class="blockList"> -<h4>translateException</h4> -<pre>private <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html#line.184">translateException</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> t) - throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> -<dl><dt><span class="strong">Throws:</span></dt> -<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd></dl> -</li> -</ul> -<a name="isConnectionException(java.lang.Throwable)"> -<!-- --> -</a> -<ul class="blockList"> -<li class="blockList"> -<h4>isConnectionException</h4> -<pre>private boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html#line.219">isConnectionException</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> e)</pre> -<div class="block">Check if the exception is something that indicates that we cannot - contact/communicate with the server.</div> -<dl><dt><span class="strong">Parameters:</span></dt><dd><code>e</code> - </dd> -<dt><span class="strong">Returns:</span></dt><dd>true when exception indicates that the client wasn't able to make contact with server</dd></dl> -</li> -</ul> <a name="occasionallyCleanupFailureInformation()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>occasionallyCleanupFailureInformation</h4> -<pre>protected void <a href="../../../../../src-html/org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html#line.240">occasionallyCleanupFailureInformation</a>()</pre> +<pre>protected void <a href="../../../../../src-html/org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html#line.193">occasionallyCleanupFailureInformation</a>()</pre> <div class="block">Occasionally cleans up unused information in repeatedFailuresMap. repeatedFailuresMap stores the failure information for all remote hosts @@ -532,7 +498,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/client/RetryingCallerInt <ul class="blockList"> <li class="blockList"> <h4>inFastFailMode</h4> -<pre>private boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html#line.281">inFastFailMode</a>(<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a> server)</pre> +<pre>private boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html#line.234">inFastFailMode</a>(<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a> server)</pre> <div class="block">Checks to see if we are in the Fast fail mode for requests to the server. If a client is unable to contact a server for more than @@ -547,7 +513,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/client/RetryingCallerInt <ul class="blockList"> <li class="blockList"> <h4>currentThreadInFastFailMode</h4> -<pre>private boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html#line.297">currentThreadInFastFailMode</a>()</pre> +<pre>private boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html#line.250">currentThreadInFastFailMode</a>()</pre> <div class="block">Checks to see if the current thread is already in FastFail mode for *some* server.</div> <dl><dt><span class="strong">Returns:</span></dt><dd>true, if the thread is already in FF mode.</dd></dl> @@ -559,7 +525,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/client/RetryingCallerInt <ul class="blockList"> <li class="blockList"> <h4>shouldRetryInspiteOfFastFail</h4> -<pre>protected boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html#line.313">shouldRetryInspiteOfFastFail</a>(<a href="../../../../../org/apache/hadoop/hbase/client/FailureInfo.html" title="class in org.apache.hadoop.hbase.client">FailureInfo</a> fInfo)</pre> +<pre>protected boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html#line.266">shouldRetryInspiteOfFastFail</a>(<a href="../../../../../org/apache/hadoop/hbase/client/FailureInfo.html" title="class in org.apache.hadoop.hbase.client">FailureInfo</a> fInfo)</pre> <div class="block">Check to see if the client should try to connnect to the server, inspite of knowing that it is in the fast fail mode. @@ -576,7 +542,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/client/RetryingCallerInt <ul class="blockList"> <li class="blockList"> <h4>updateFailureInfoForServer</h4> -<pre>private void <a href="../../../../../src-html/org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html#line.343">updateFailureInfoForServer</a>(<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a> server, +<pre>private void <a href="../../../../../src-html/org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html#line.296">updateFailureInfoForServer</a>(<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a> server, <a href="../../../../../org/apache/hadoop/hbase/client/FailureInfo.html" title="class in org.apache.hadoop.hbase.client">FailureInfo</a> fInfo, boolean didTry, boolean couldNotCommunicate, @@ -592,7 +558,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/client/RetryingCallerInt <ul class="blockList"> <li class="blockList"> <h4>intercept</h4> -<pre>public void <a href="../../../../../src-html/org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html#line.370">intercept</a>(<a href="../../../../../org/apache/hadoop/hbase/client/RetryingCallerInterceptorContext.html" title="class in org.apache.hadoop.hbase.client">RetryingCallerInterceptorContext</a> context) +<pre>public void <a href="../../../../../src-html/org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html#line.323">intercept</a>(<a href="../../../../../org/apache/hadoop/hbase/client/RetryingCallerInterceptorContext.html" title="class in org.apache.hadoop.hbase.client">RetryingCallerInterceptorContext</a> context) throws <a href="../../../../../org/apache/hadoop/hbase/exceptions/PreemptiveFastFailException.html" title="class in org.apache.hadoop.hbase.exceptions">PreemptiveFastFailException</a></pre> <div class="block"><strong>Description copied from class: <code><a href="../../../../../org/apache/hadoop/hbase/client/RetryingCallerInterceptor.html#intercept(org.apache.hadoop.hbase.client.RetryingCallerInterceptorContext)">RetryingCallerInterceptor</a></code></strong></div> <div class="block">Call this function alongside the actual call done on the callable.</div> @@ -609,7 +575,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/client/RetryingCallerInt <ul class="blockList"> <li class="blockList"> <h4>handleFailure</h4> -<pre>public void <a href="../../../../../src-html/org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html#line.378">handleFailure</a>(<a href="../../../../../org/apache/hadoop/hbase/client/RetryingCallerInterceptorContext.html" title="class in org.apache.hadoop.hbase.client">RetryingCallerInterceptorContext</a> context, +<pre>public void <a href="../../../../../src-html/org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html#line.331">handleFailure</a>(<a href="../../../../../org/apache/hadoop/hbase/client/RetryingCallerInterceptorContext.html" title="class in org.apache.hadoop.hbase.client">RetryingCallerInterceptorContext</a> context, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> t) throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> <div class="block"><strong>Description copied from class: <code><a href="../../../../../org/apache/hadoop/hbase/client/RetryingCallerInterceptor.html#handleFailure(org.apache.hadoop.hbase.client.RetryingCallerInterceptorContext,%20java.lang.Throwable)">RetryingCallerInterceptor</a></code></strong></div> @@ -628,7 +594,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/client/RetryingCallerInt <ul class="blockList"> <li class="blockList"> <h4>updateFailureInfo</h4> -<pre>public void <a href="../../../../../src-html/org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html#line.386">updateFailureInfo</a>(<a href="../../../../../org/apache/hadoop/hbase/client/RetryingCallerInterceptorContext.html" title="class in org.apache.hadoop.hbase.client">RetryingCallerInterceptorContext</a> context)</pre> +<pre>public void <a href="../../../../../src-html/org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html#line.339">updateFailureInfo</a>(<a href="../../../../../org/apache/hadoop/hbase/client/RetryingCallerInterceptorContext.html" title="class in org.apache.hadoop.hbase.client">RetryingCallerInterceptorContext</a> context)</pre> <div class="block"><strong>Description copied from class: <code><a href="../../../../../org/apache/hadoop/hbase/client/RetryingCallerInterceptor.html#updateFailureInfo(org.apache.hadoop.hbase.client.RetryingCallerInterceptorContext)">RetryingCallerInterceptor</a></code></strong></div> <div class="block">Call this function to update at the end of the retry. This is not necessary to happen.</div> @@ -644,7 +610,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/client/RetryingCallerInt <ul class="blockList"> <li class="blockList"> <h4>createEmptyContext</h4> -<pre>public <a href="../../../../../org/apache/hadoop/hbase/client/RetryingCallerInterceptorContext.html" title="class in org.apache.hadoop.hbase.client">RetryingCallerInterceptorContext</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html#line.393">createEmptyContext</a>()</pre> +<pre>public <a href="../../../../../org/apache/hadoop/hbase/client/RetryingCallerInterceptorContext.html" title="class in org.apache.hadoop.hbase.client">RetryingCallerInterceptorContext</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html#line.346">createEmptyContext</a>()</pre> <div class="block"><strong>Description copied from class: <code><a href="../../../../../org/apache/hadoop/hbase/client/RetryingCallerInterceptor.html#createEmptyContext()">RetryingCallerInterceptor</a></code></strong></div> <div class="block">This returns the context object for the current call.</div> <dl> @@ -659,7 +625,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/client/RetryingCallerInt <ul class="blockList"> <li class="blockList"> <h4>isServerInFailureMap</h4> -<pre>protected boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html#line.397">isServerInFailureMap</a>(<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a> serverName)</pre> +<pre>protected boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html#line.350">isServerInFailureMap</a>(<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a> serverName)</pre> </li> </ul> <a name="toString()"> @@ -668,7 +634,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/client/RetryingCallerInt <ul class="blockListLast"> <li class="blockList"> <h4>toString</h4> -<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html#line.402">toString</a>()</pre> +<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/client/PreemptiveFastFailInterceptor.html#line.355">toString</a>()</pre> <dl> <dt><strong>Specified by:</strong></dt> <dd><code><a href="../../../../../org/apache/hadoop/hbase/client/RetryingCallerInterceptor.html#toString()">toString</a></code> in class <code><a href="../../../../../org/apache/hadoop/hbase/client/RetryingCallerInterceptor.html" title="class in org.apache.hadoop.hbase.client">RetryingCallerInterceptor</a></code></dd>
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/58f51408/devapidocs/org/apache/hadoop/hbase/exceptions/ClientExceptionsUtil.html ---------------------------------------------------------------------- diff --git a/devapidocs/org/apache/hadoop/hbase/exceptions/ClientExceptionsUtil.html b/devapidocs/org/apache/hadoop/hbase/exceptions/ClientExceptionsUtil.html index d9210c9..91c89b5 100644 --- a/devapidocs/org/apache/hadoop/hbase/exceptions/ClientExceptionsUtil.html +++ b/devapidocs/org/apache/hadoop/hbase/exceptions/ClientExceptionsUtil.html @@ -97,7 +97,7 @@ <br> <pre><a href="../../../../../org/apache/hadoop/hbase/classification/InterfaceAudience.Private.html" title="annotation in org.apache.hadoop.hbase.classification">@InterfaceAudience.Private</a> <a href="../../../../../org/apache/hadoop/hbase/classification/InterfaceStability.Evolving.html" title="annotation in org.apache.hadoop.hbase.classification">@InterfaceStability.Evolving</a> -public final class <a href="../../../../../src-html/org/apache/hadoop/hbase/exceptions/ClientExceptionsUtil.html#line.34">ClientExceptionsUtil</a> +public final class <a href="../../../../../src-html/org/apache/hadoop/hbase/exceptions/ClientExceptionsUtil.html#line.47">ClientExceptionsUtil</a> extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre> </li> </ul> @@ -149,12 +149,32 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html? </tr> <tr class="rowColor"> <td class="colFirst"><code>static boolean</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/hadoop/hbase/exceptions/ClientExceptionsUtil.html#isCallQueueTooBigException(java.lang.Throwable)">isCallQueueTooBigException</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> t)</code> +<div class="block">Checks if the exception is CallQueueTooBig exception, or tries to unwrap + <a href="../../../../../org/apache/hadoop/hbase/ipc/RemoteWithExtrasException.html" title="class in org.apache.hadoop.hbase.ipc"><code>RemoteWithExtrasException</code></a> to see if we've got <a href="../../../../../org/apache/hadoop/hbase/CallQueueTooBigException.html" title="class in org.apache.hadoop.hbase"><code>CallQueueTooBigException</code></a>.</div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>static boolean</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/hadoop/hbase/exceptions/ClientExceptionsUtil.html#isConnectionException(java.lang.Throwable)">isConnectionException</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> e)</code> +<div class="block">Check if the exception is something that indicates that we cannot + contact/communicate with the server.</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>static boolean</code></td> <td class="colLast"><code><strong><a href="../../../../../org/apache/hadoop/hbase/exceptions/ClientExceptionsUtil.html#isMetaClearingException(java.lang.Throwable)">isMetaClearingException</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> cur)</code> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>static boolean</code></td> <td class="colLast"><code><strong><a href="../../../../../org/apache/hadoop/hbase/exceptions/ClientExceptionsUtil.html#isSpecialException(java.lang.Throwable)">isSpecialException</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> cur)</code> </td> </tr> +<tr class="rowColor"> +<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a></code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/hadoop/hbase/exceptions/ClientExceptionsUtil.html#translatePFFE(java.lang.Throwable)">translatePFFE</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> t)</code> +<div class="block">Translates exception for preemptive fast fail checks.</div> +</td> +</tr> </table> <ul class="blockList"> <li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> @@ -183,7 +203,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html? <ul class="blockListLast"> <li class="blockList"> <h4>ClientExceptionsUtil</h4> -<pre>private <a href="../../../../../src-html/org/apache/hadoop/hbase/exceptions/ClientExceptionsUtil.html#line.36">ClientExceptionsUtil</a>()</pre> +<pre>private <a href="../../../../../src-html/org/apache/hadoop/hbase/exceptions/ClientExceptionsUtil.html#line.49">ClientExceptionsUtil</a>()</pre> </li> </ul> </li> @@ -200,7 +220,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>isMetaClearingException</h4> -<pre>public static boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/exceptions/ClientExceptionsUtil.html#line.38">isMetaClearingException</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> cur)</pre> +<pre>public static boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/exceptions/ClientExceptionsUtil.html#line.51">isMetaClearingException</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> cur)</pre> </li> </ul> <a name="isSpecialException(java.lang.Throwable)"> @@ -209,16 +229,16 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>isSpecialException</h4> -<pre>public static boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/exceptions/ClientExceptionsUtil.html#line.48">isSpecialException</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> cur)</pre> +<pre>public static boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/exceptions/ClientExceptionsUtil.html#line.61">isSpecialException</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> cur)</pre> </li> </ul> <a name="findException(java.lang.Object)"> <!-- --> </a> -<ul class="blockListLast"> +<ul class="blockList"> <li class="blockList"> <h4>findException</h4> -<pre>public static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/exceptions/ClientExceptionsUtil.html#line.65">findException</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> exception)</pre> +<pre>public static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/exceptions/ClientExceptionsUtil.html#line.78">findException</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> exception)</pre> <div class="block">Look for an exception we know in the remote exception: - hadoop.ipc wrapped exceptions - nested exceptions @@ -228,6 +248,47 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html? <dl><dt><span class="strong">Returns:</span></dt><dd>null if we didn't find the exception, the exception otherwise.</dd></dl> </li> </ul> +<a name="isCallQueueTooBigException(java.lang.Throwable)"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>isCallQueueTooBigException</h4> +<pre>public static boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/exceptions/ClientExceptionsUtil.html#line.117">isCallQueueTooBigException</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> t)</pre> +<div class="block">Checks if the exception is CallQueueTooBig exception, or tries to unwrap + <a href="../../../../../org/apache/hadoop/hbase/ipc/RemoteWithExtrasException.html" title="class in org.apache.hadoop.hbase.ipc"><code>RemoteWithExtrasException</code></a> to see if we've got <a href="../../../../../org/apache/hadoop/hbase/CallQueueTooBigException.html" title="class in org.apache.hadoop.hbase"><code>CallQueueTooBigException</code></a>.</div> +<dl><dt><span class="strong">Parameters:</span></dt><dd><code>t</code> - exception to check</dd> +<dt><span class="strong">Returns:</span></dt><dd>true if it's a CQTBE, false otherwise</dd></dl> +</li> +</ul> +<a name="isConnectionException(java.lang.Throwable)"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>isConnectionException</h4> +<pre>public static boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/exceptions/ClientExceptionsUtil.html#line.136">isConnectionException</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> e)</pre> +<div class="block">Check if the exception is something that indicates that we cannot + contact/communicate with the server.</div> +<dl><dt><span class="strong">Parameters:</span></dt><dd><code>e</code> - exception to check</dd> +<dt><span class="strong">Returns:</span></dt><dd>true when exception indicates that the client wasn't able to make contact with server</dd></dl> +</li> +</ul> +<a name="translatePFFE(java.lang.Throwable)"> +<!-- --> +</a> +<ul class="blockListLast"> +<li class="blockList"> +<h4>translatePFFE</h4> +<pre>public static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/exceptions/ClientExceptionsUtil.html#line.156">translatePFFE</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> t) + throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> +<div class="block">Translates exception for preemptive fast fail checks.</div> +<dl><dt><span class="strong">Parameters:</span></dt><dd><code>t</code> - exception to check</dd> +<dt><span class="strong">Returns:</span></dt><dd>translated exception</dd> +<dt><span class="strong">Throws:</span></dt> +<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd></dl> +</li> +</ul> </li> </ul> </li> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/58f51408/devapidocs/org/apache/hadoop/hbase/exceptions/PreemptiveFastFailException.html ---------------------------------------------------------------------- diff --git a/devapidocs/org/apache/hadoop/hbase/exceptions/PreemptiveFastFailException.html b/devapidocs/org/apache/hadoop/hbase/exceptions/PreemptiveFastFailException.html index c10bc60..a39a044 100644 --- a/devapidocs/org/apache/hadoop/hbase/exceptions/PreemptiveFastFailException.html +++ b/devapidocs/org/apache/hadoop/hbase/exceptions/PreemptiveFastFailException.html @@ -157,14 +157,18 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/net/ConnectExcept <td class="colLast"><code><strong><a href="../../../../../org/apache/hadoop/hbase/exceptions/PreemptiveFastFailException.html#failureCount">failureCount</a></strong></code> </td> </tr> <tr class="rowColor"> +<td class="colFirst"><code>private boolean</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/hadoop/hbase/exceptions/PreemptiveFastFailException.html#guaranteedClientSideOnly">guaranteedClientSideOnly</a></strong></code> </td> +</tr> +<tr class="altColor"> <td class="colFirst"><code>private static long</code></td> <td class="colLast"><code><strong><a href="../../../../../org/apache/hadoop/hbase/exceptions/PreemptiveFastFailException.html#serialVersionUID">serialVersionUID</a></strong></code> </td> </tr> -<tr class="altColor"> +<tr class="rowColor"> <td class="colFirst"><code>private long</code></td> <td class="colLast"><code><strong><a href="../../../../../org/apache/hadoop/hbase/exceptions/PreemptiveFastFailException.html#timeOfFirstFailureMilliSec">timeOfFirstFailureMilliSec</a></strong></code> </td> </tr> -<tr class="rowColor"> +<tr class="altColor"> <td class="colFirst"><code>private long</code></td> <td class="colLast"><code><strong><a href="../../../../../org/apache/hadoop/hbase/exceptions/PreemptiveFastFailException.html#timeOfLatestAttemptMilliSec">timeOfLatestAttemptMilliSec</a></strong></code> </td> </tr> @@ -188,6 +192,13 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/net/ConnectExcept long timeOfLatestAttemptMilliSec, <a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a> serverName)</code> </td> </tr> +<tr class="rowColor"> +<td class="colOne"><code><strong><a href="../../../../../org/apache/hadoop/hbase/exceptions/PreemptiveFastFailException.html#PreemptiveFastFailException(long,%20long,%20long,%20org.apache.hadoop.hbase.ServerName,%20boolean)">PreemptiveFastFailException</a></strong>(long count, + long timeOfFirstFailureMilliSec, + long timeOfLatestAttemptMilliSec, + <a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a> serverName, + boolean guaranteedClientSideOnly)</code> </td> +</tr> </table> </li> </ul> @@ -217,6 +228,10 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/net/ConnectExcept </tr> <tr class="rowColor"> <td class="colFirst"><code>boolean</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/hadoop/hbase/exceptions/PreemptiveFastFailException.html#isGuaranteedClientSideOnly()">isGuaranteedClientSideOnly</a></strong>()</code> </td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><strong><a href="../../../../../org/apache/hadoop/hbase/exceptions/PreemptiveFastFailException.html#wasOperationAttemptedByServer()">wasOperationAttemptedByServer</a></strong>()</code> </td> </tr> </table> @@ -279,12 +294,21 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/net/ConnectExcept <a name="timeOfLatestAttemptMilliSec"> <!-- --> </a> -<ul class="blockListLast"> +<ul class="blockList"> <li class="blockList"> <h4>timeOfLatestAttemptMilliSec</h4> <pre>private long <a href="../../../../../src-html/org/apache/hadoop/hbase/exceptions/PreemptiveFastFailException.html#line.39">timeOfLatestAttemptMilliSec</a></pre> </li> </ul> +<a name="guaranteedClientSideOnly"> +<!-- --> +</a> +<ul class="blockListLast"> +<li class="blockList"> +<h4>guaranteedClientSideOnly</h4> +<pre>private boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/exceptions/PreemptiveFastFailException.html#line.42">guaranteedClientSideOnly</a></pre> +</li> +</ul> </li> </ul> <!-- ========= CONSTRUCTOR DETAIL ======== --> @@ -296,14 +320,29 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/net/ConnectExcept <a name="PreemptiveFastFailException(long, long, long, org.apache.hadoop.hbase.ServerName)"> <!-- --> </a> -<ul class="blockListLast"> +<ul class="blockList"> <li class="blockList"> <h4>PreemptiveFastFailException</h4> -<pre>public <a href="../../../../../src-html/org/apache/hadoop/hbase/exceptions/PreemptiveFastFailException.html#line.47">PreemptiveFastFailException</a>(long count, +<pre>public <a href="../../../../../src-html/org/apache/hadoop/hbase/exceptions/PreemptiveFastFailException.html#line.50">PreemptiveFastFailException</a>(long count, long timeOfFirstFailureMilliSec, long timeOfLatestAttemptMilliSec, <a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a> serverName)</pre> -<dl><dt><span class="strong">Parameters:</span></dt><dd><code>count</code> - </dd><dd><code>timeOfFirstFailureMilliSec</code> - </dd><dd><code>timeOfLatestAttemptMilliSec</code> - </dd><dd><code>serverName</code> - </dd></dl> +<dl><dt><span class="strong">Parameters:</span></dt><dd><code>count</code> - num of consecutive failures</dd><dd><code>timeOfFirstFailureMilliSec</code> - when first failure happened</dd><dd><code>timeOfLatestAttemptMilliSec</code> - when last attempt happened</dd><dd><code>serverName</code> - server we failed to connect to</dd></dl> +</li> +</ul> +<a name="PreemptiveFastFailException(long, long, long, org.apache.hadoop.hbase.ServerName, boolean)"> +<!-- --> +</a> +<ul class="blockListLast"> +<li class="blockList"> +<h4>PreemptiveFastFailException</h4> +<pre>public <a href="../../../../../src-html/org/apache/hadoop/hbase/exceptions/PreemptiveFastFailException.html#line.66">PreemptiveFastFailException</a>(long count, + long timeOfFirstFailureMilliSec, + long timeOfLatestAttemptMilliSec, + <a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a> serverName, + boolean guaranteedClientSideOnly)</pre> +<dl><dt><span class="strong">Parameters:</span></dt><dd><code>count</code> - num of consecutive failures</dd><dd><code>timeOfFirstFailureMilliSec</code> - when first failure happened</dd><dd><code>timeOfLatestAttemptMilliSec</code> - when last attempt happened</dd><dd><code>serverName</code> - server we failed to connect to</dd><dd><code>guaranteedClientSideOnly</code> - if true, guarantees that no mutations + have been applied on the server</dd></dl> </li> </ul> </li> @@ -320,7 +359,8 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/net/ConnectExcept <ul class="blockList"> <li class="blockList"> <h4>getFirstFailureAt</h4> -<pre>public long <a href="../../../../../src-html/org/apache/hadoop/hbase/exceptions/PreemptiveFastFailException.html#line.55">getFirstFailureAt</a>()</pre> +<pre>public long <a href="../../../../../src-html/org/apache/hadoop/hbase/exceptions/PreemptiveFastFailException.html#line.79">getFirstFailureAt</a>()</pre> +<dl><dt><span class="strong">Returns:</span></dt><dd>time of the fist failure</dd></dl> </li> </ul> <a name="getLastAttemptAt()"> @@ -329,7 +369,8 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/net/ConnectExcept <ul class="blockList"> <li class="blockList"> <h4>getLastAttemptAt</h4> -<pre>public long <a href="../../../../../src-html/org/apache/hadoop/hbase/exceptions/PreemptiveFastFailException.html#line.59">getLastAttemptAt</a>()</pre> +<pre>public long <a href="../../../../../src-html/org/apache/hadoop/hbase/exceptions/PreemptiveFastFailException.html#line.86">getLastAttemptAt</a>()</pre> +<dl><dt><span class="strong">Returns:</span></dt><dd>time of the latest attempt</dd></dl> </li> </ul> <a name="getFailureCount()"> @@ -338,16 +379,28 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/net/ConnectExcept <ul class="blockList"> <li class="blockList"> <h4>getFailureCount</h4> -<pre>public long <a href="../../../../../src-html/org/apache/hadoop/hbase/exceptions/PreemptiveFastFailException.html#line.63">getFailureCount</a>()</pre> +<pre>public long <a href="../../../../../src-html/org/apache/hadoop/hbase/exceptions/PreemptiveFastFailException.html#line.93">getFailureCount</a>()</pre> +<dl><dt><span class="strong">Returns:</span></dt><dd>failure count</dd></dl> </li> </ul> <a name="wasOperationAttemptedByServer()"> <!-- --> </a> -<ul class="blockListLast"> +<ul class="blockList"> <li class="blockList"> <h4>wasOperationAttemptedByServer</h4> -<pre>public boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/exceptions/PreemptiveFastFailException.html#line.67">wasOperationAttemptedByServer</a>()</pre> +<pre>public boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/exceptions/PreemptiveFastFailException.html#line.100">wasOperationAttemptedByServer</a>()</pre> +<dl><dt><span class="strong">Returns:</span></dt><dd>true if operation was attempted by server, false otherwise.</dd></dl> +</li> +</ul> +<a name="isGuaranteedClientSideOnly()"> +<!-- --> +</a> +<ul class="blockListLast"> +<li class="blockList"> +<h4>isGuaranteedClientSideOnly</h4> +<pre>public boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/exceptions/PreemptiveFastFailException.html#line.107">isGuaranteedClientSideOnly</a>()</pre> +<dl><dt><span class="strong">Returns:</span></dt><dd>true if we know no mutation made it to the server, false otherwise.</dd></dl> </li> </ul> </li> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/58f51408/devapidocs/org/apache/hadoop/hbase/filter/FilterList.html ---------------------------------------------------------------------- diff --git a/devapidocs/org/apache/hadoop/hbase/filter/FilterList.html b/devapidocs/org/apache/hadoop/hbase/filter/FilterList.html index 3384154..10f4864 100644 --- a/devapidocs/org/apache/hadoop/hbase/filter/FilterList.html +++ b/devapidocs/org/apache/hadoop/hbase/filter/FilterList.html @@ -731,7 +731,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/filter/Filter.html" titl <ul class="blockList"> <li class="blockList"> <h4>filterRowCells</h4> -<pre>public void <a href="../../../../../src-html/org/apache/hadoop/hbase/filter/FilterList.html#line.321">filterRowCells</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../../org/apache/hadoop/hbase/Cell.html" title="interface in org.apache.hadoop.hbase">Cell</a>> cells) +<pre>public void <a href="../../../../../src-html/org/apache/hadoop/hbase/filter/FilterList.html#line.341">filterRowCells</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../../org/apache/hadoop/hbase/Cell.html" title="interface in org.apache.hadoop.hbase">Cell</a>> cells) throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> <div class="block">Filters that never filter by modifying the returned List of Cells can inherit this implementation that does nothing. @@ -754,7 +754,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/filter/Filter.html" titl <ul class="blockList"> <li class="blockList"> <h4>hasFilterRow</h4> -<pre>public boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/filter/FilterList.html#line.329">hasFilterRow</a>()</pre> +<pre>public boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/filter/FilterList.html#line.349">hasFilterRow</a>()</pre> <div class="block"><strong>Description copied from class: <code><a href="../../../../../org/apache/hadoop/hbase/filter/Filter.html#hasFilterRow()">Filter</a></code></strong></div> <div class="block">Primarily used to check for conflicts with scans(such as scans that do not read a full row at a time).</div> @@ -770,7 +770,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/filter/Filter.html" titl <ul class="blockList"> <li class="blockList"> <h4>filterRow</h4> -<pre>public boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/filter/FilterList.html#line.340">filterRow</a>() +<pre>public boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/filter/FilterList.html#line.360">filterRow</a>() throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> <div class="block"><strong>Description copied from class: <code><a href="../../../../../org/apache/hadoop/hbase/filter/Filter.html#filterRow()">Filter</a></code></strong></div> <div class="block">Last chance to veto row based on previous <a href="../../../../../org/apache/hadoop/hbase/filter/Filter.html#filterKeyValue(org.apache.hadoop.hbase.Cell)"><code>Filter.filterKeyValue(Cell)</code></a> calls. The filter @@ -793,7 +793,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/filter/Filter.html" titl <ul class="blockList"> <li class="blockList"> <h4>toByteArray</h4> -<pre>public byte[] <a href="../../../../../src-html/org/apache/hadoop/hbase/filter/FilterList.html#line.360">toByteArray</a>() +<pre>public byte[] <a href="../../../../../src-html/org/apache/hadoop/hbase/filter/FilterList.html#line.380">toByteArray</a>() throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> <div class="block"><strong>Description copied from class: <code><a href="../../../../../org/apache/hadoop/hbase/filter/Filter.html#toByteArray()">Filter</a></code></strong></div> <div class="block">TODO: JAVADOC @@ -814,7 +814,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/filter/Filter.html" titl <ul class="blockList"> <li class="blockList"> <h4>parseFrom</h4> -<pre>public static <a href="../../../../../org/apache/hadoop/hbase/filter/FilterList.html" title="class in org.apache.hadoop.hbase.filter">FilterList</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/filter/FilterList.html#line.377">parseFrom</a>(byte[] pbBytes) +<pre>public static <a href="../../../../../org/apache/hadoop/hbase/filter/FilterList.html" title="class in org.apache.hadoop.hbase.filter">FilterList</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/filter/FilterList.html#line.397">parseFrom</a>(byte[] pbBytes) throws <a href="../../../../../org/apache/hadoop/hbase/exceptions/DeserializationException.html" title="class in org.apache.hadoop.hbase.exceptions">DeserializationException</a></pre> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>pbBytes</code> - A pb serialized <a href="../../../../../org/apache/hadoop/hbase/filter/FilterList.html" title="class in org.apache.hadoop.hbase.filter"><code>FilterList</code></a> instance</dd> <dt><span class="strong">Returns:</span></dt><dd>An instance of <a href="../../../../../org/apache/hadoop/hbase/filter/FilterList.html" title="class in org.apache.hadoop.hbase.filter"><code>FilterList</code></a> made from <code>bytes</code></dd> @@ -828,7 +828,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/filter/Filter.html" titl <ul class="blockList"> <li class="blockList"> <h4>areSerializedFieldsEqual</h4> -<pre>boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/filter/FilterList.html#line.405">areSerializedFieldsEqual</a>(<a href="../../../../../org/apache/hadoop/hbase/filter/Filter.html" title="class in org.apache.hadoop.hbase.filter">Filter</a> other)</pre> +<pre>boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/filter/FilterList.html#line.425">areSerializedFieldsEqual</a>(<a href="../../../../../org/apache/hadoop/hbase/filter/Filter.html" title="class in org.apache.hadoop.hbase.filter">Filter</a> other)</pre> <div class="block"><strong>Description copied from class: <code><a href="../../../../../org/apache/hadoop/hbase/filter/Filter.html#areSerializedFieldsEqual(org.apache.hadoop.hbase.filter.Filter)">Filter</a></code></strong></div> <div class="block">Concrete implementers can signal a failure condition in their code by throwing an <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io"><code>IOException</code></a>.</div> @@ -846,7 +846,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/filter/Filter.html" titl <ul class="blockList"> <li class="blockList"> <h4>getNextCellHint</h4> -<pre>public <a href="../../../../../org/apache/hadoop/hbase/Cell.html" title="interface in org.apache.hadoop.hbase">Cell</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/filter/FilterList.html#line.416">getNextCellHint</a>(<a href="../../../../../org/apache/hadoop/hbase/Cell.html" title="interface in org.apache.hadoop.hbase">Cell</a> currentCell) +<pre>public <a href="../../../../../org/apache/hadoop/hbase/Cell.html" title="interface in org.apache.hadoop.hbase">Cell</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/filter/FilterList.html#line.436">getNextCellHint</a>(<a href="../../../../../org/apache/hadoop/hbase/Cell.html" title="interface in org.apache.hadoop.hbase">Cell</a> currentCell) throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> <div class="block"><strong>Description copied from class: <code><a href="../../../../../org/apache/hadoop/hbase/filter/Filter.html#getNextCellHint(org.apache.hadoop.hbase.Cell)">Filter</a></code></strong></div> <div class="block">If the filter returns the match code SEEK_NEXT_USING_HINT, then it should also tell which is @@ -870,7 +870,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/filter/Filter.html" titl <ul class="blockList"> <li class="blockList"> <h4>isFamilyEssential</h4> -<pre>public boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/filter/FilterList.html#line.446">isFamilyEssential</a>(byte[] name) +<pre>public boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/filter/FilterList.html#line.469">isFamilyEssential</a>(byte[] name) throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> <div class="block"><strong>Description copied from class: <code><a href="../../../../../org/apache/hadoop/hbase/filter/Filter.html#isFamilyEssential(byte[])">Filter</a></code></strong></div> <div class="block">Check that given column family is essential for filter to check row. Most filters always return @@ -893,7 +893,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/filter/Filter.html" titl <ul class="blockList"> <li class="blockList"> <h4>setReversed</h4> -<pre>public void <a href="../../../../../src-html/org/apache/hadoop/hbase/filter/FilterList.html#line.457">setReversed</a>(boolean reversed)</pre> +<pre>public void <a href="../../../../../src-html/org/apache/hadoop/hbase/filter/FilterList.html#line.480">setReversed</a>(boolean reversed)</pre> <div class="block"><strong>Description copied from class: <code><a href="../../../../../org/apache/hadoop/hbase/filter/Filter.html#setReversed(boolean)">Filter</a></code></strong></div> <div class="block">alter the reversed scan flag</div> <dl> @@ -908,7 +908,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/filter/Filter.html" titl <ul class="blockList"> <li class="blockList"> <h4>toString</h4> -<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/filter/FilterList.html#line.466">toString</a>()</pre> +<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/filter/FilterList.html#line.489">toString</a>()</pre> <dl> <dt><strong>Overrides:</strong></dt> <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a></code> in class <code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd> @@ -921,7 +921,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/filter/Filter.html" titl <ul class="blockListLast"> <li class="blockList"> <h4>toString</h4> -<pre>protected <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/filter/FilterList.html#line.470">toString</a>(int maxFilters)</pre> +<pre>protected <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/filter/FilterList.html#line.493">toString</a>(int maxFilters)</pre> </li> </ul> </li> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/58f51408/devapidocs/org/apache/hadoop/hbase/regionserver/SplitTransactionImpl.DaughterOpener.html ---------------------------------------------------------------------- diff --git a/devapidocs/org/apache/hadoop/hbase/regionserver/SplitTransactionImpl.DaughterOpener.html b/devapidocs/org/apache/hadoop/hbase/regionserver/SplitTransactionImpl.DaughterOpener.html index ac6fc67..193adab 100644 --- a/devapidocs/org/apache/hadoop/hbase/regionserver/SplitTransactionImpl.DaughterOpener.html +++ b/devapidocs/org/apache/hadoop/hbase/regionserver/SplitTransactionImpl.DaughterOpener.html @@ -234,7 +234,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/util/HasThread.html" tit <ul class="blockListLast"> <li class="blockList"> <h4>t</h4> -<pre>private <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/regionserver/SplitTransactionImpl.DaughterOpener.html#line.567">t</a></pre> +<pre>private volatile <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/regionserver/SplitTransactionImpl.DaughterOpener.html#line.567">t</a></pre> </li> </ul> </li>
