Package org.apache.hadoop.hbase.client
Class FastFailInterceptorContext
java.lang.Object
org.apache.hadoop.hbase.client.RetryingCallerInterceptorContext
org.apache.hadoop.hbase.client.FastFailInterceptorContext
-
Field Summary
Modifier and TypeFieldDescriptionprivate org.apache.commons.lang3.mutable.MutableBoolean
private boolean
private FailureInfo
private org.apache.commons.lang3.mutable.MutableBoolean
private boolean
private ServerName
private int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
This function clears the internal state of the context object.boolean
didTry()
org.apache.commons.lang3.mutable.MutableBoolean
org.apache.commons.lang3.mutable.MutableBoolean
int
getTries()
boolean
prepare
(RetryingCallable<?> callable) This prepares the context object by populating it with information specific to the implementation of theRetryingCallerInterceptor
along with which this will be used.prepare
(RetryingCallable<?> callable, int tries) Telescopic extension that takes which of the many retries we are currently in.void
setCouldNotCommunicateWithServer
(org.apache.commons.lang3.mutable.MutableBoolean couldNotCommunicateWithServer) void
setDidTry
(boolean didTry) void
setFailureInfo
(FailureInfo fInfo) void
setGuaranteedClientSideOnly
(org.apache.commons.lang3.mutable.MutableBoolean guaranteedClientSideOnly) void
setRetryDespiteFastFailMode
(boolean retryDespiteFastFailMode) void
setServer
(ServerName server) void
setTries
(int tries)
-
Field Details
-
couldNotCommunicateWithServer
-
guaranteedClientSideOnly
-
didTry
-
fInfo
-
retryDespiteFastFailMode
-
server
-
tries
-
-
Constructor Details
-
FastFailInterceptorContext
-
-
Method Details
-
getCouldNotCommunicateWithServer
-
getGuaranteedClientSideOnly
-
getFailureInfo
-
getServer
-
getTries
-
didTry
-
isRetryDespiteFastFailMode
-
setCouldNotCommunicateWithServer
public void setCouldNotCommunicateWithServer(org.apache.commons.lang3.mutable.MutableBoolean couldNotCommunicateWithServer) -
setGuaranteedClientSideOnly
public void setGuaranteedClientSideOnly(org.apache.commons.lang3.mutable.MutableBoolean guaranteedClientSideOnly) -
setDidTry
-
setFailureInfo
-
setRetryDespiteFastFailMode
-
setServer
-
setTries
-
clear
Description copied from class:RetryingCallerInterceptorContext
This function clears the internal state of the context object.- Specified by:
clear
in classRetryingCallerInterceptorContext
-
prepare
Description copied from class:RetryingCallerInterceptorContext
This prepares the context object by populating it with information specific to the implementation of theRetryingCallerInterceptor
along with which this will be used. : TheRetryingCallable
that contains the information about the call that is being made.- Specified by:
prepare
in classRetryingCallerInterceptorContext
- Returns:
- A new
RetryingCallerInterceptorContext
object that can be used for use in the current retrying call
-
prepare
Description copied from class:RetryingCallerInterceptorContext
Telescopic extension that takes which of the many retries we are currently in. : TheRetryingCallable
that contains the information about the call that is being made. : The retry number that we are currently in.- Specified by:
prepare
in classRetryingCallerInterceptorContext
- Returns:
- A new context object that can be used for use in the current retrying call
-