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
Modifier and TypeClassDescriptionprivate static final class
Dynamic class loader to load filter/comparators -
Field Summary
Modifier and TypeFieldDescriptionprivate final boolean
private final String
private final int
private final boolean
-
Constructor Summary
ConstructorDescriptionRemoteWithExtrasException
(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 setint
getPort()
Returns -1 if not setprivate IOException
instantiateException
(Class<? extends IOException> cls) boolean
Returns True if origin exception was a do not retry type.boolean
Returns 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, valueOf
Methods 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:
unwrapRemoteException
in 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.
-