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
FieldsModifier and TypeFieldDescriptionprivate org.apache.commons.lang3.mutable.MutableBooleanprivate booleanprivate FailureInfoprivate org.apache.commons.lang3.mutable.MutableBooleanprivate booleanprivate ServerNameprivate int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()This function clears the internal state of the context object.booleandidTry()org.apache.commons.lang3.mutable.MutableBooleanorg.apache.commons.lang3.mutable.MutableBooleanintgetTries()booleanprepare(RetryingCallable<?> callable) This prepares the context object by populating it with information specific to the implementation of theRetryingCallerInterceptoralong with which this will be used.prepare(RetryingCallable<?> callable, int tries) Telescopic extension that takes which of the many retries we are currently in.voidsetCouldNotCommunicateWithServer(org.apache.commons.lang3.mutable.MutableBoolean couldNotCommunicateWithServer) voidsetDidTry(boolean didTry) voidsetFailureInfo(FailureInfo fInfo) voidsetGuaranteedClientSideOnly(org.apache.commons.lang3.mutable.MutableBoolean guaranteedClientSideOnly) voidsetRetryDespiteFastFailMode(boolean retryDespiteFastFailMode) voidsetServer(ServerName server) voidsetTries(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:RetryingCallerInterceptorContextThis function clears the internal state of the context object.- Specified by:
clearin classRetryingCallerInterceptorContext
-
prepare
Description copied from class:RetryingCallerInterceptorContextThis prepares the context object by populating it with information specific to the implementation of theRetryingCallerInterceptoralong with which this will be used. : TheRetryingCallablethat contains the information about the call that is being made.- Specified by:
preparein classRetryingCallerInterceptorContext- Returns:
- A new
RetryingCallerInterceptorContextobject that can be used for use in the current retrying call
-
prepare
Description copied from class:RetryingCallerInterceptorContextTelescopic extension that takes which of the many retries we are currently in. : TheRetryingCallablethat contains the information about the call that is being made. : The retry number that we are currently in.- Specified by:
preparein classRetryingCallerInterceptorContext- Returns:
- A new context object that can be used for use in the current retrying call
-