Package org.apache.hadoop.hbase.quotas
Class ThrottlingException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.apache.hadoop.hbase.HBaseIOException
org.apache.hadoop.hbase.DoNotRetryIOException
org.apache.hadoop.hbase.quotas.QuotaExceededException
org.apache.hadoop.hbase.quotas.ThrottlingException
- All Implemented Interfaces:
Serializable
Deprecated.
Describe the throttling result. TODO: At some point this will be handled on the client side to
prevent operation to go on the server if the waitInterval is grater than the one got as result of
this exception.
- See Also:
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final String[]
Deprecated.private static final String
Deprecated.private static final long
Deprecated.private ThrottlingException.Type
Deprecated.private long
Deprecated. -
Constructor Summary
ConstructorDescriptionDeprecated.ThrottlingException
(ThrottlingException.Type type, long waitInterval, String msg) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic String
formatTime
(long timeDiff) Deprecated.getType()
Deprecated.long
Deprecated.static void
throwNumReadRequestsExceeded
(long waitInterval) Deprecated.static void
throwNumRequestsExceeded
(long waitInterval) Deprecated.static void
throwNumWriteRequestsExceeded
(long waitInterval) Deprecated.static void
throwReadSizeExceeded
(long waitInterval) Deprecated.static void
throwRequestSizeExceeded
(long waitInterval) Deprecated.private static void
throwThrottlingException
(ThrottlingException.Type type, long waitInterval) Deprecated.static void
throwWriteSizeExceeded
(long waitInterval) Deprecated.private static long
timeFromString
(String timeDiff) Deprecated.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
Deprecated.- See Also:
-
MSG_TYPE
Deprecated. -
MSG_WAIT
Deprecated.- See Also:
-
waitInterval
Deprecated. -
type
Deprecated.
-
-
Constructor Details
-
ThrottlingException
Deprecated. -
ThrottlingException
Deprecated.
-
-
Method Details
-
getType
Deprecated. -
getWaitInterval
Deprecated. -
throwNumRequestsExceeded
Deprecated.- Throws:
ThrottlingException
-
throwRequestSizeExceeded
Deprecated.- Throws:
ThrottlingException
-
throwNumReadRequestsExceeded
Deprecated.- Throws:
ThrottlingException
-
throwNumWriteRequestsExceeded
Deprecated.- Throws:
ThrottlingException
-
throwWriteSizeExceeded
Deprecated.- Throws:
ThrottlingException
-
throwReadSizeExceeded
Deprecated.- Throws:
ThrottlingException
-
throwThrottlingException
private static void throwThrottlingException(ThrottlingException.Type type, long waitInterval) throws ThrottlingException Deprecated.- Throws:
ThrottlingException
-
formatTime
Deprecated. -
timeFromString
Deprecated.
-
RpcThrottlingException
since hbase-2.0.0.