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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncanTakeOperation(HRegionLocation loc, long heapSizeOfRow) voidnotifyFinal(RequestController.ReturnCode code, HRegionLocation loc, long heapSizeOfRow) Add the final ReturnCode to the checker.voidreset()Reset the inner state.
-
Field Details
-
maxHeapSizePerRequest
-
serverRequestSizes
-
-
Constructor Details
-
RequestHeapSizeChecker
RequestHeapSizeChecker(long maxHeapSizePerRequest)
-
-
Method Details
-
reset
Description copied from interface:SimpleRequestController.RowCheckerReset the inner state.- Specified by:
resetin interfaceSimpleRequestController.RowChecker
-
canTakeOperation
- Specified by:
canTakeOperationin interfaceSimpleRequestController.RowChecker
-
notifyFinal
Description copied from interface:SimpleRequestController.RowCheckerAdd 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:
notifyFinalin interfaceSimpleRequestController.RowChecker- Parameters:
code- The final decisionloc- the destination of dataheapSizeOfRow- the data size
-