Package org.apache.hadoop.hbase.ipc
Class RemoteWithExtrasException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.apache.hadoop.ipc.RemoteException
org.apache.hadoop.hbase.ipc.RemoteWithExtrasException
- All Implemented Interfaces:
Serializable
A
RemoteException with some extra information. If source exception was a
DoNotRetryIOException, isDoNotRetry() will return true.
A RemoteException hosts exceptions we got from the server.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final classDynamic class loader to load filter/comparators -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate final Stringprivate final intprivate final boolean -
Constructor Summary
ConstructorsConstructorDescriptionRemoteWithExtrasException(String className, String msg, boolean doNotRetry) RemoteWithExtrasException(String className, String msg, boolean doNotRetry, boolean serverOverloaded) RemoteWithExtrasException(String className, String msg, String hostname, int port, boolean doNotRetry) RemoteWithExtrasException(String className, String msg, String hostname, int port, boolean doNotRetry, boolean serverOverloaded) -
Method Summary
Modifier and TypeMethodDescriptionReturns null if not setintgetPort()Returns -1 if not setprivate IOExceptioninstantiateException(Class<? extends IOException> cls) booleanReturns True if origin exception was a do not retry type.booleanReturns True if the server was considered overloaded when the exception was thrown.Methods inherited from class org.apache.hadoop.ipc.RemoteException
getClassName, getErrorCode, toString, unwrapRemoteException, valueOfMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Field Details
-
hostname
-
port
-
doNotRetry
-
serverOverloaded
-
-
Constructor Details
-
RemoteWithExtrasException
-
RemoteWithExtrasException
public RemoteWithExtrasException(String className, String msg, boolean doNotRetry, boolean serverOverloaded) -
RemoteWithExtrasException
public RemoteWithExtrasException(String className, String msg, String hostname, int port, boolean doNotRetry) -
RemoteWithExtrasException
public RemoteWithExtrasException(String className, String msg, String hostname, int port, boolean doNotRetry, boolean serverOverloaded)
-
-
Method Details
-
unwrapRemoteException
- Overrides:
unwrapRemoteExceptionin classorg.apache.hadoop.ipc.RemoteException
-
instantiateException
- Throws:
Exception
-
getHostname
Returns null if not set -
getPort
Returns -1 if not set -
isDoNotRetry
Returns True if origin exception was a do not retry type. -
isServerOverloaded
Returns True if the server was considered overloaded when the exception was thrown.
-