Package org.apache.hadoop.hbase.client
Class SimpleRequestController.RequestHeapSizeChecker
java.lang.Object
org.apache.hadoop.hbase.client.SimpleRequestController.RequestHeapSizeChecker
- All Implemented Interfaces:
SimpleRequestController.RowChecker
- Enclosing class:
- SimpleRequestController
static class SimpleRequestController.RequestHeapSizeChecker
extends Object
implements SimpleRequestController.RowChecker
limit the heap size for each request.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncanTakeOperation
(HRegionLocation loc, long heapSizeOfRow) void
notifyFinal
(RequestController.ReturnCode code, HRegionLocation loc, long heapSizeOfRow) Add the final ReturnCode to the checker.void
reset()
Reset the inner state.
-
Field Details
-
maxHeapSizePerRequest
-
serverRequestSizes
-
-
Constructor Details
-
RequestHeapSizeChecker
RequestHeapSizeChecker(long maxHeapSizePerRequest)
-
-
Method Details
-
reset
Description copied from interface:SimpleRequestController.RowChecker
Reset the inner state.- Specified by:
reset
in interfaceSimpleRequestController.RowChecker
-
canTakeOperation
- Specified by:
canTakeOperation
in interfaceSimpleRequestController.RowChecker
-
notifyFinal
Description copied from interface:SimpleRequestController.RowChecker
Add the final ReturnCode to the checker. The ReturnCode may be reversed, so the checker need the final decision to update the inner state.- Specified by:
notifyFinal
in interfaceSimpleRequestController.RowChecker
- Parameters:
code
- The final decisionloc
- the destination of dataheapSizeOfRow
- the data size
-