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 SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
RequestHeapSizeCheckerRequestHeapSizeChecker(long maxHeapSizePerRequest) 
 
- 
- 
Method Details- 
resetDescription copied from interface:SimpleRequestController.RowCheckerReset the inner state.- Specified by:
- resetin interface- SimpleRequestController.RowChecker
 
- 
canTakeOperation- Specified by:
- canTakeOperationin interface- SimpleRequestController.RowChecker
 
- 
notifyFinalDescription 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 interface- SimpleRequestController.RowChecker
- Parameters:
- code- The final decision
- loc- the destination of data
- heapSizeOfRow- the data size
 
 
-